Download presentation
Presentation is loading. Please wait.
Published byMarcus Ronald McBride Modified over 9 years ago
5
Using standard controls gets you a long way
6
Windows XAML layout controls Grid Stack Panel Canvas Scroll Viewer BorderView BoxWrap Grid Relative Panel
10
Rows/columns – 3 types of sizing: star sizing proportional: 1*/3* = 25%/75% auto sizing sized to content content can also have Max/Min widths and heights as limits pixel sizing hard-coded size – avoid in most situations auto 1* 2* auto 1* 4* 7*
11
Grid auto 1* 400 711 600 1067
15
Relative Panel is a XAML layout control. It arranges children by declaring relationships between them. Introducing the Relative Panel Windows XAML layout controls Grid Stack Panel Canvas Scroll Viewer BorderView BoxWrap Grid Relative Panel
17
Align with panel <Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red" RelativePanel.AlignHorizontalCenterWithPanel="True" RelativePanel.AlignVerticalCenterWithPanel="True" /> <Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red" RelativePanel.AlignHorizontalCenterWithPanel="True" RelativePanel.AlignVerticalCenterWithPanel="True" />
18
Align with sibling (below, center) <Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red" RelativePanel.Below="BlueRect" RelativePanel.AlignHorizontalCenterWith="BlueRect" /> <Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red" RelativePanel.Below="BlueRect" RelativePanel.AlignHorizontalCenterWith="BlueRect" />
20
IsPaneOpen="True" IsPaneOpen="False" DisplayMode= "Inline" DisplayMode= "Overlay" DisplayMode= "CompactInline" DisplayMode= "CompactOverlay"
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.