这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,22 @@ public Style AnchorableStyle

#endregion AnchorableStyle

#region AnchorableGridStyle

/// <summary><see cref="AnchorableGridStyle"/> dependency property.</summary>
public static readonly DependencyProperty AnchorableGridStyleProperty = DependencyProperty.Register(nameof(AnchorableGridStyle), typeof(Style), typeof(LayoutAutoHideWindowControl),
new FrameworkPropertyMetadata(null));

/// <summary>Gets/sets the style to apply to the parent Grid of the <see cref="LayoutAnchorableControl"/> hosted in this auto hide window.</summary>
[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

/// <summary><see cref="Background"/> dependency property.</summary>
Expand Down Expand Up @@ -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 });
Expand Down