1 / 7

Layout With Panels

Layout With Panels. Canvas. Most basic panel Position with explicit coordinates Attach ed properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment could not be used inside ZIndex. StackPanel. Stacks its children sequentially

Download Presentation

Layout With Panels

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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

More Related