11

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

J4N
  • 19,480
  • 39
  • 187
  • 340

2 Answers2

6

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.

Ronny Brendel
  • 4,777
  • 5
  • 35
  • 55
AlexDrenea
  • 7,981
  • 1
  • 32
  • 49
  • Can you do the "LastChildFill" ? – J4N Jun 14 '16 at 04:52
  • 1
    there is no "LastChildFill" property, but you can have an element "fill" the space by using RelativePanel.AlignLeftWithPanel or RelativePanel.AlignRightWithPanel, etc. Like I said, it's not completely the same, but can ultimately achieve the same result. If you have an example of layout you want to create, I will post a sample code to achieve that. – AlexDrenea Jun 14 '16 at 11:33
1

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

Alexej Sommer
  • 2,677
  • 1
  • 14
  • 25
  • I didn't know this toolkit. I checked the video and there seems to have a lot of unexpected behavior in it. Is this still maintained? – J4N Jun 14 '16 at 04:52
  • Some of controls from this toolkit are already embedded in Win10, but some of them are still actual (and some depricated). As you can find this tolkit was updated last time in march. – Alexej Sommer Jun 14 '16 at 05:41