Permalink
Browse files

Fix the styling of the checkbox so it binds properly

Fixes #62
  • Loading branch information...
shana committed Sep 1, 2015
1 parent e1bc0fa commit 2da1349fcb090663ab01b4167aaa393689f7a9db
@@ -10,25 +10,14 @@

<Style x:Key="VSStyledButton" TargetType="{x:Type Button}" BasedOn="{StaticResource VsButtonStyleKey}">
</Style>
<Style x:Key="VSStyledCheckBox" TargetType="{x:Type CheckBox}">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
<CheckBox Foreground="{DynamicResource VsBrush.ToolWindowText}" Background="{DynamicResource VsBrush.ToolWindowBackground}">
<TextBlock TextWrapping="Wrap" Foreground="{DynamicResource VsBrush.ToolWindowText}" Background="{DynamicResource VsBrush.ToolWindowBackground}">
<TextBlock.Inlines>
<Run Text="{TemplateBinding Content}" />
</TextBlock.Inlines>
</TextBlock>
</CheckBox>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter Property="Background" Value="{DynamicResource VsBrush.ToolWindowBackground}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style x:Key="VSStyledCheckBox" BasedOn="{StaticResource VsCheckBoxStyleKey}" TargetType="{x:Type CheckBox}">
<Setter Property="Foreground" Value="{DynamicResource VsBrush.ToolWindowText}" />
<Setter Property="Background" Value="{DynamicResource VsBrush.ToolWindowBackground}" />
<Style.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="true">
<Setter Property="Background" Value="{DynamicResource VsBrush.ToolWindowBackground}"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="VSStyledComboBox" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource VsComboBoxStyleKey}">
</Style>
@@ -123,7 +123,24 @@

<CheckBox x:Name="makePrivate"
Margin="0,8,0,0"
Style="{StaticResource VSStyledCheckBox}">Private Repository</CheckBox>
Style="{StaticResource VSStyledCheckBox}">
<TextBlock TextWrapping="Wrap"
Foreground="{DynamicResource VsBrush.ToolWindowText}"
Background="{DynamicResource VsBrush.ToolWindowBackground}">
<TextBlock.Resources>
<Style TargetType="{x:Type TextBlock}">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5" />
</Trigger>
</Style.Triggers>
</Style>
</TextBlock.Resources>
<TextBlock.Inlines>
<Run>Private Repository</Run>
</TextBlock.Inlines>
</TextBlock>
</CheckBox>

<Label x:Name="upgradeToMicroPlanWarning" HorizontalAlignment="Left" Visibility="Collapsed">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">

0 comments on commit 2da1349

Please sign in to comment.