0

I am using the AvalonDock component for my application. I have defined the views for my view models in xaml like this via data templates:

            <xcad:DockingManager.Resources>
            <DataTemplate DataType="{x:Type vm:ImageViewModel}">
                <v:ImageView />
            </DataTemplate>
        </xcad:DockingManager.Resources>

The views show up as expected and the views are currently implemented as WPF user controls. The user controls are resizable and the content will resize accordingly. This works fine when the view is docked in the application. When I undock a view so that it becomes a floating window, the content (e.g. my user control) does not resize with the window. Is there a special setting which I have to apply in order to resize the content as well?

enter image description here

Franz Gsell
  • 1,425
  • 2
  • 13
  • 22
  • Do you have any style or any xml file for loading defined in your application ? – Abin Oct 28 '19 at 20:40
  • There is no special setting for this. You can see that it work if you look at other [sample applications](https://github.com/Dirkster99/AvalonDock/tree/master/source/MLibTest/MLibTest). Replace your control with a 'simple' control like a textbox and see if this works. If it does there is something in your control thats not working to resize as expected. Without complete sample code this is really hard to answer :-( – user8276908 May 07 '20 at 00:08

0 Answers0