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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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.
|
|
|
|
|