Skip to content

Commit

Permalink
WinGui: Fix some binding errors trigged by generated menu items.
Browse files Browse the repository at this point in the history
  • Loading branch information
sr55 committed Aug 3, 2016
1 parent b8b1700 commit 724e74f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions win/CS/HandBrakeWPF/Views/Styles/Styles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 724e74f

Please sign in to comment.