Explorar o código

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

Throw NotSupportedException inside ContextMenu.Open(null)
Dan Walmsley %!s(int64=5) %!d(string=hai) anos
pai
achega
c575283ae3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.