From 374225624b5adf21f02795717e6bce0ab9680199 Mon Sep 17 00:00:00 2001 From: John Tasler Date: Sun, 16 Feb 2025 05:09:03 -0800 Subject: [PATCH] fix: #1341: MenuItem template binding error (#1343) * fix: #1341 Use more efficient `{TemplateBinding}` for `MenuItem` templates, which also fixes the incorrect `{Binding Path}` syntax for attached properties. * fix: set `StaysOpenOnClick` on screen-reader `TextBlock` * fix: Remove unnecessary TextBlock from MenuItem template --- src/Wpf.Ui/Controls/Menu/MenuItem.xaml | 42 -------------------------- 1 file changed, 42 deletions(-) diff --git a/src/Wpf.Ui/Controls/Menu/MenuItem.xaml b/src/Wpf.Ui/Controls/Menu/MenuItem.xaml index da8cb5f73..61a176453 100644 --- a/src/Wpf.Ui/Controls/Menu/MenuItem.xaml +++ b/src/Wpf.Ui/Controls/Menu/MenuItem.xaml @@ -74,16 +74,6 @@ ContentSource="Header" RecognizesAccessKey="True" TextElement.Foreground="{TemplateBinding Foreground}" /> - - - - @@ -284,17 +264,6 @@ FontSize="11" Foreground="{DynamicResource TextFillColorDisabledBrush}" Text="{TemplateBinding InputGestureText}" /> - - - @@ -365,17 +334,6 @@ FontSize="{TemplateBinding FontSize}" Symbol="ChevronRight20" /> - - -