Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties:...
-
Upload
dayna-morgan -
Category
Documents
-
view
215 -
download
0
Transcript of Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties:...
![Page 1: Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.](https://reader036.fdocuments.in/reader036/viewer/2022081813/56649f2c5503460f94c4775e/html5/thumbnails/1.jpg)
Layout With Panels
![Page 2: Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.](https://reader036.fdocuments.in/reader036/viewer/2022081813/56649f2c5503460f94c4775e/html5/thumbnails/2.jpg)
Canvas
• Most basic panel• Position with explicit coordinates• Attached properties: Left, Top, Right, Bottom• HorizontalAlignment and VerticalAlignment could not be used inside• ZIndex
![Page 3: Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.](https://reader036.fdocuments.in/reader036/viewer/2022081813/56649f2c5503460f94c4775e/html5/thumbnails/3.jpg)
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
![Page 4: Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.](https://reader036.fdocuments.in/reader036/viewer/2022081813/56649f2c5503460f94c4775e/html5/thumbnails/4.jpg)
WrapPanel
• No attached properties fro controlling element positions• Properties for controlling its behavior• Orientation• ItemHeight• ItemWidth
![Page 5: Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.](https://reader036.fdocuments.in/reader036/viewer/2022081813/56649f2c5503460f94c4775e/html5/thumbnails/5.jpg)
DockPanel
• Attacked property• System.Windows.Controls.Dock
• Top• Left• Right• Bottom
![Page 6: Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.](https://reader036.fdocuments.in/reader036/viewer/2022081813/56649f2c5503460f94c4775e/html5/thumbnails/6.jpg)
Grid
• Most versatile panel• Sizing the rows and columns• Absolute sizing• Autosizing• Proportional sizing (star sizing)
• GridSplitter• SharedSizeGroup
![Page 7: Layout With Panels. Canvas Most basic panel Position with explicit coordinates Attached properties: Left, Top, Right, Bottom HorizontalAlignment and VerticalAlignment.](https://reader036.fdocuments.in/reader036/viewer/2022081813/56649f2c5503460f94c4775e/html5/thumbnails/7.jpg)
Handling Content Overflow
• Clipping (before RenderTransforms applied)• Scrolling (ScrollViewer)• Scaling• Wrapping• Trimming