
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
My WPF Page doesnt "anchor" to the right and botton edge of the dockable pane.
It works flawlessly on my testbench which is a WPF Window and I just assign an instance of my derived page class to the content property of the Window and it just works.
I have a treeview that is stretchable to the right and bottom and I can never see the end of it (no scrollbar, which is very annoying). No matter how I flex the dockable pane.
One solution is to set the size to fixed, but that just doesnt seem right...
Any ideas?
Thanks
/Erik
Edit: I just added a scrollbar to the page and with that I adjust the right border of the treeview. I can get it go exactly where I want to be, but when I resize the dockable pane it seems like the border adjusts unproportional so that if I decrease the width of the dockable pane my border increases and the opposite.
Furthermore I checked the size that the page thinks it has during runtime and if I set the width of the dockable pane to where I know what I should have as width I get 550 pixels, but In the editor in visual studio the width should be 370. So it thinks its much wider than it is.
This could be me not understanding the workings of WPF Page, but it seems like its working flawlessly in a Window. Is there something special you need to do to get it to figure out the correct width?
Solved! Go to Solution.