Browse Source

Throw NotSupportedException inside ContextMenu.Open(null)

Luis von der Eltz 5 years ago
parent
commit
a28dc2b9e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Controls/ContextMenu.cs

+ 1 - 1
src/Avalonia.Controls/ContextMenu.cs

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