xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.89k stars 877 forks source link

AvalonDock FloatingWindow Fill #1541

Open gnimor opened 5 years ago

gnimor commented 5 years ago

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?

XceedBoucherS commented 5 years ago

Hi, Can you attach a complete sample so we can test the same application as you ? Thank you

gnimor commented 5 years ago

Hi, as a sample you can use the contained LiveExplorer. When you undock a window from the AvalonDock sample you can see that the content doesn't fill the complete window. The content only stretches vertical.

XceedBoucherS commented 5 years ago

Hi, This is already fixed in v3.7 and up.

Until you get it, you can go in file a) Xceed.Wpf.AvalonDock/Controls/LayoutDocumentPaneGroupControl.cs b) Xceed.Wpf.AvalonDock/Controls/LayoutAnchorablePaneGroupControl.cs and uncomment the content of methods "OnFixChildrenDockLengths()". Thank you.

You can have the latest v3.8 version of Xceed Toolkit for free for 45 days here : https://xceed.com/xceed-toolkit-plus-for-wpf/. It will offer you more features and controls, fast support and always the latest version.