diff --git a/source/Components/AvalonDock/Controls/LayoutAutoHideWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutAutoHideWindowControl.cs
index 0ad64dbf..d02cf19e 100644
--- a/source/Components/AvalonDock/Controls/LayoutAutoHideWindowControl.cs
+++ b/source/Components/AvalonDock/Controls/LayoutAutoHideWindowControl.cs
@@ -86,6 +86,22 @@ public Style AnchorableStyle
#endregion AnchorableStyle
+ #region AnchorableGridStyle
+
+ /// dependency property.
+ public static readonly DependencyProperty AnchorableGridStyleProperty = DependencyProperty.Register(nameof(AnchorableGridStyle), typeof(Style), typeof(LayoutAutoHideWindowControl),
+ new FrameworkPropertyMetadata(null));
+
+ /// Gets/sets the style to apply to the parent Grid of the hosted in this auto hide window.
+ [Bindable(true), Description("Gets/sets the style to apply to the parent Grid of the LayoutAnchorableControl hosted in this auto hide window."), Category("Style")]
+ public Style AnchorableGridStyle
+ {
+ get => (Style)GetValue(AnchorableGridStyleProperty);
+ set => SetValue(AnchorableGridStyleProperty, value);
+ }
+
+ #endregion AnchorableGridStyle
+
#region Background
/// dependency property.
@@ -280,8 +296,9 @@ private void ViewboxZoomChanged(object sender, SizeChangedEventArgs e)
private void CreateInternalGrid()
{
- _internalGrid = new Grid { FlowDirection = FlowDirection.LeftToRight };
+ _internalGrid = new Grid { FlowDirection = FlowDirection.LeftToRight, Style = AnchorableGridStyle };
_internalGrid.SetBinding(Panel.BackgroundProperty, new Binding(nameof(Grid.Background)) { Source = this });
+ _internalGrid.SizeChanged += (e, s) => InvalidateMeasure();
_internalHost = new LayoutAnchorableControl { Model = _model, Style = AnchorableStyle };
_internalHost.SetBinding(FlowDirectionProperty, new Binding("Model.Root.Manager.FlowDirection") { Source = this });