From af7ad6071693437347a4154240907cb04652492d Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sat, 9 Apr 2022 15:24:36 +0200 Subject: [PATCH] Fix NativeMenuBar exception. The `x:DataType="NativeMenuItem"` directive is incorrect as the items can also be `NativeMenuItemSeparator`s which don't have the bound properties. Turn off compiled bindings here for now. Fixes #7780 --- src/Avalonia.Themes.Fluent/Controls/NativeMenuBar.xaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Themes.Fluent/Controls/NativeMenuBar.xaml b/src/Avalonia.Themes.Fluent/Controls/NativeMenuBar.xaml index 243095c004..7860e08ef5 100644 --- a/src/Avalonia.Themes.Fluent/Controls/NativeMenuBar.xaml +++ b/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}"> -