From 85baf7ed3920f36ebadfb2a56a0d0a4e35e5ada2 Mon Sep 17 00:00:00 2001 From: kornman00 Date: Sun, 13 Sep 2020 00:05:31 -0700 Subject: [PATCH] Fix VS2013 MenuItem styles Based on the recommendation by @BHandle here https://github.com/tgjones/gemini/issues/291#issuecomment-443011486 Avoids WPF generating traces like: System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is 'MenuItemEx' (Name=''); target property is 'HorizontalContentAlignment' (type 'HorizontalAlignment') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=VerticalContentAlignment; DataItem=null; target element is 'MenuItemEx' (Name=''); target property is 'VerticalContentAlignment' (type 'VerticalAlignment') Note: VS2019 seems to have removed the UTF8 BOM header and the file is now strictly ANSI --- src/Gemini/Themes/VS2013/Controls/Menu.xaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Gemini/Themes/VS2013/Controls/Menu.xaml b/src/Gemini/Themes/VS2013/Controls/Menu.xaml index 0682deb31..ddc5ec056 100644 --- a/src/Gemini/Themes/VS2013/Controls/Menu.xaml +++ b/src/Gemini/Themes/VS2013/Controls/Menu.xaml @@ -1,4 +1,4 @@ - +