Browse Source
Merge pull request #5154 from AvaloniaUI/fixes/fix-win32-shadow-border-on-fluent-menus
fix win32 square shadow border appearing on fluent menus.
pull/5155/head
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
10 additions and
0 deletions
-
src/Avalonia.Controls/ContextMenu.cs
|
|
@ -233,6 +233,16 @@ namespace Avalonia.Controls |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override void OnPropertyChanged<T>(AvaloniaPropertyChangedEventArgs<T> change) |
|
|
|
|
|
{ |
|
|
|
|
|
base.OnPropertyChanged(change); |
|
|
|
|
|
|
|
|
|
|
|
if (change.Property == WindowManagerAddShadowHintProperty && _popup != null) |
|
|
|
|
|
{ |
|
|
|
|
|
_popup.WindowManagerAddShadowHint = change.NewValue.GetValueOrDefault<bool>(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Opens the menu.
|
|
|
/// Opens the menu.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|