Jump to: navigation, search

Changes


HowTo:Convert Xamarin XAMLs to Maui

763 bytes added, 09:15, 11 November 2025
/* Frame to Border */
== Information ==
=== Frame to Border ===
'''Use [https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/border?view=net-maui-9.0 Border ] instead of Frame.''' Frame is deprecated in MAUI. Use Border with `Attributes;* Stroke` instead of `(previously BorderColor`)* Use StrokeShape (previously CornerRadius) to define the corners. Eg. <nowiki>StrokeShape="RoundRectangle 8,8,8,8"</nowiki> where the corner curve can be written as 1 value (all the same), 2 values (horizontal and vertical), or 4 values (each corner defined seperately). The default StrokeShape is 'Rectangle', which effectively equals a CornerRadius of 0.* StrokeThickness can be used to define the thickness of the border.* Other properties documented in the link above can be used to define the look of the border.
{| class="wikitable"
| <Border ... />
|}
 
[[Category:How-To|Convert Xamarin XAMLs to Maui]]
[[Category:Mobile|Convert Xamarin XAMLs to Maui]]
[[Category:XAML|Convert Xamarin XAMLs to Maui]]
=== LayoutOptions with "...AndExpand" ===
728
edits