Presentation is loading. Please wait.

Presentation is loading. Please wait.

Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.

Similar presentations


Presentation on theme: "Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment."— Presentation transcript:

1 Layout With Panels

2 Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment could not be used inside ZIndex

3 StackPanel Stacks its children sequentially System.Windows.Controls.Orientation: Horizontal, Vertical No own attached properties System.Windows.Controls.VirtualizingPanel VirtualizingStackPanel -> data binding to a really large number of child elements

4 WrapPanel No attached properties fro controlling element positions Properties for controlling its behavior Orientation ItemHeight ItemWidth

5 DockPanel Attacked property System.Windows.Controls.Dock Top Left Right Bottom

6 Grid Most versatile panel Sizing the rows and columns Absolute sizing Autosizing Proportional sizing (star sizing) GridSplitter SharedSizeGroup

7 Handling Content Overflow Clipping (before RenderTransforms applied) Scrolling (ScrollViewer) Scaling Wrapping Trimming


Download ppt "Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment."

Similar presentations


Ads by Google