Browse Source
Merge pull request #7954 from AvaloniaUI/fixes/7780-nativemenuitemseparator-exception
Fix NativeMenuBar exception.
pull/7957/head
Steven Kirk
4 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.Themes.Fluent/Controls/NativeMenuBar.xaml
|
|
|
@ -12,7 +12,7 @@ |
|
|
|
IsVisible="{Binding $parent[TopLevel].(NativeMenu.IsNativeMenuExported), Converter={StaticResource AvaloniaThemesDefaultNativeMenuBarInverseBooleanValueConverter}}" |
|
|
|
Items="{Binding $parent[TopLevel].(NativeMenu.Menu).Items}"> |
|
|
|
<Menu.Styles> |
|
|
|
<Style x:DataType="NativeMenuItem" Selector="MenuItem"> |
|
|
|
<Style x:CompileBindings="False" Selector="MenuItem"> |
|
|
|
<Setter Property="Header" Value="{Binding Header}"/> |
|
|
|
<Setter Property="InputGesture" Value="{Binding Gesture}"/> |
|
|
|
<Setter Property="Items" Value="{Binding Menu.Items}"/> |
|
|
|
|