diff --git a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs index b6805938..5c2d4b44 100644 --- a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs @@ -69,7 +69,10 @@ protected LayoutFloatingWindowControl(ILayoutElement model) Closing += OnClosing; SizeChanged += OnSizeChanged; _model = model; - } + // Since this control is not part of the visual tree DockingManager the resources (such as styles) are not used in this control. + // By manually merging these resources the behaviour is what the user would expect. + Resources.MergedDictionaries.Add(model.Root.Manager.Resources); + } protected LayoutFloatingWindowControl(ILayoutElement model, bool isContentImmutable) : this(model)