diff options
author | sr55 <[email protected]> | 2016-08-03 21:11:19 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2016-08-03 21:11:19 +0100 |
commit | 724e74ffaf3b370df8798a9d7efd424c8266230c (patch) | |
tree | 486c9bb636b5fe3d4764b3b7e95577857c7dd54e /win/CS/HandBrakeWPF | |
parent | b8b17003905eac946dfdfc0528f042bdfc8c6667 (diff) |
WinGui: Fix some binding errors trigged by generated menu items.
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/Styles/Styles.xaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/Styles/Styles.xaml b/win/CS/HandBrakeWPF/Views/Styles/Styles.xaml index c121190a5..c4a4273e2 100644 --- a/win/CS/HandBrakeWPF/Views/Styles/Styles.xaml +++ b/win/CS/HandBrakeWPF/Views/Styles/Styles.xaml @@ -88,4 +88,11 @@ </Setter>
</Style>
+ <!-- Fixes HorizontalContentAlignment and VerticalContentAlignment binding errors that you get when you setup MenuItems by binding their ItemSource property -->
+ <!-- https://social.msdn.microsoft.com/Forums/vstudio/en-US/42cd1554-de7a-473b-b977-ddbd6298b3d0/binding-error-when-using-compositecollection-for-menuitems?forum=wpf -->
+ <Style TargetType="MenuItem">
+ <Setter Property="HorizontalContentAlignment" Value="Left"/>
+ <Setter Property="VerticalContentAlignment" Value="Center"/>
+ </Style>
+
</ResourceDictionary>
\ No newline at end of file |