I have a XAML file using Xamarin.Forms which is connected to logic in a .cs-file. Whenever the screen orientation changes, the GUI looks horrible. Thus, I would like to create two different XAMLs with the same components (except that they are placed differently), and upon orientation change render the most fitting XAML. At the moment, I use InitializeComponent (); to render the XAML but that only works with one of the XAMLs. Is there a way to render a XAML into a View object?
↧