Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DockPanel in UWP app?

I would like to know if there is anyway to reproduce the same behavior than with the DockPanel in WPF but in UWP app?

I would like to have some container docked, and the last one filling the userinterface?

Thank you

like image 994
J4N Avatar asked Apr 19 '16 16:04

J4N


People also ask

What is a DockPanel?

DockPanel defines an area to arrange child elements relative to each other, either horizontally or vertically. With DockPanel you can easily dock child elements to top, bottom, right, left and center using the Dock property.

What is the difference between StackPanel and DockPanel?

For example, the order of child elements can affect their size in a DockPanel but not in a StackPanel. This is because StackPanel measures in the direction of stacking at PositiveInfinity, whereas DockPanel measures only the available size. The following example demonstrates this key difference.


2 Answers

You can find DockPanel in XAML Toolkit
It's not documented well, but in this video you can see DockPanel

like image 133
Alexej Sommer Avatar answered Oct 26 '22 16:10

Alexej Sommer


I would recommend RelativePanel. It's not exactly like a DockPanel, but you can make it behave like one pretty easily using the RelativePanel.Align* attached properties.

like image 30
AlexDrenea Avatar answered Oct 26 '22 17:10

AlexDrenea