Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Create View object from XAML

$
0
0

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?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>