Browse Source

Use AddOwner for PlacementRectProperty

pull/8114/head
Wiesław Šoltés 4 years ago
parent
commit
c6eb413844
  1. 2
      src/Avalonia.Controls/ContextMenu.cs

2
src/Avalonia.Controls/ContextMenu.cs

@ -63,7 +63,7 @@ namespace Avalonia.Controls
/// Defines the <see cref="PlacementRect"/> property.
/// </summary>
public static readonly StyledProperty<Rect?> PlacementRectProperty =
AvaloniaProperty.Register<Popup, Rect?>(nameof(PlacementRect));
Popup.PlacementRectProperty.AddOwner<ContextMenu>();
/// <summary>
/// Defines the <see cref="WindowManagerAddShadowHint"/> property.

Loading…
Cancel
Save