Skip to content

Commit

Permalink
Continuation (missed one combo box):
Browse files Browse the repository at this point in the history
Add horizontal and vertical default alignment on the combo boxes to avoid an
error generated when trying to style the contained items.
  • Loading branch information
Kinematics committed Jul 21, 2015
1 parent b2e202c commit de6fe87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NetTally/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
<ComboBox x:Name="questList" Height="30" Margin="10,10,297,0" VerticalAlignment="Top" VerticalContentAlignment="Center" FontSize="13.333" Padding="8,2,4,4"
ItemsSource="{Binding Path=SourceCollection}" IsSynchronizedWithCurrentItem="True"
IsEnabled="{Binding ElementName=tallyButton, Path=IsEnabled, Converter={StaticResource BoolConverter}, ConverterParameter=Normal, Mode=OneWay}">
<ComboBox.ItemContainerStyle>
<Style TargetType="ComboBoxItem">
<Setter Property="HorizontalContentAlignment" Value="Left"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
</ComboBox.ItemContainerStyle>
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding DisplayName}" />
Expand Down

0 comments on commit de6fe87

Please sign in to comment.