문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top