Browse Source

Merge pull request #4973 from pr8x/hotfix-ctx-menu2

Throw NotSupportedException inside ContextMenu.Open(null)
fixes/grcontext-options
Dan Walmsley 6 years ago
committed by GitHub
parent
commit
c575283ae3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/ContextMenu.cs

2
src/Avalonia.Controls/ContextMenu.cs

@ -236,7 +236,7 @@ namespace Avalonia.Controls
/// <summary> /// <summary>
/// Opens the menu. /// Opens the menu.
/// </summary> /// </summary>
public override void Open() => Open(null); public override void Open() => throw new NotSupportedException();
/// <summary> /// <summary>
/// Opens a context menu on the specified control. /// Opens a context menu on the specified control.

Loading…
Cancel
Save