Question

I have a dock panel of 2 elements, a Map and an editing panel. The Editing panel goes on the bottom, so that the map when docked at the top "Fill"s the rest of the area. I want this bottom editing panel Height to be modififable based on what editing user contrl gets added to it.

Thank you very much for any assistance.

Was it helpful?

Solution

You would just need to set the ItemsControl's Height property to auto, and each time you add or remove a View from the ItemsControl region, the Region would get resized to fit the displayed Views.

I've made a small sample so that you could find the configuration easy to understand:

Notice that the EditRegion docked at the bottom has a border set in order to differentiate both Regions.

I hope this helped you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top