Both Xamarin.Forms and UWP can utilize declarative UI pages with the EXtensible Application Markup Language (XAML). It was initially introduced as part of Windows Presentation Foundation and has been extensively used in .NET applications, starting with .NET 3.0.
While both development platforms offer similar UI elements, they use a slightly different set of controls and layouts, which might cause UI inconsistencies while you are creating cross-platform applications that target iOS/Android (with Xamarin.Forms) and UWP.
Let's take a look at the layout structures:
UWP | Xamarin.Forms |
Notes |
StackPanel | StackLayout | Left-to-right or top-to-bottom infinite stacking |
Grid | Grid | Tabular format (rows and columns) |
Canvas | AbsoluteLayout | Pixel/coordinate positioning |
WrapPanel | FlexLayout | Wrapping stack |
RelativePanel... |