Skip to content

Commit

Permalink
change inherited style for gear buttons
Browse files Browse the repository at this point in the history
tag block in particular the behavior didnt match the togglebutton next to it
  • Loading branch information
Lord-Zedd committed Feb 2, 2020
1 parent c2da103 commit b7fab2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<ToggleButton Grid.Column="9" x:Name="btnOptions" VerticalAlignment="Center" Margin="5,0,0,0" IsChecked="False" ToolTip="Click to view options relating to this field." Checked="BtnOptions_Checked">
<Path VerticalAlignment="Center" Margin="2" Fill="#989898" Style="{StaticResource GearIcon}" />
<ToggleButton.Style>
<Style TargetType="ToggleButton" BasedOn="{StaticResource OptionsToggleButton}">
<Style TargetType="ToggleButton" BasedOn="{StaticResource {x:Type ToggleButton}}">
<Setter Property="IsEnabled" Value="False"/>
<Style.Triggers>
<DataTrigger Binding="{Binding Type}" Value="quaternion">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<ToggleButton Grid.Row="1" Grid.Column="5" x:Name="btnOptions" VerticalAlignment="Center" Margin="5,0,0,0" IsChecked="False" ToolTip="Click to view options relating to this field.">
<Path VerticalAlignment="Center" Margin="2" Fill="#989898" Style="{StaticResource GearIcon}" />
<ToggleButton.Style>
<Style TargetType="ToggleButton" BasedOn="{StaticResource OptionsToggleButton}">
<Style TargetType="ToggleButton" BasedOn="{StaticResource {x:Type ToggleButton}}">
<Setter Property="IsEnabled" Value="False"/>
<Style.Triggers>
<DataTrigger Binding="{Binding Type}" Value="dataref">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
</DockPanel>
</Expander.Header>
</Expander>
<ToggleButton x:Name="btnOptions" Grid.Column="2" VerticalAlignment="Top" Margin="4,0,0,0" IsChecked="False" Style="{DynamicResource OptionsToggleButton}" ToolTip="Click to view options relating to this field.">
<ToggleButton x:Name="btnOptions" Grid.Column="2" VerticalAlignment="Top" Margin="4,0,0,0" IsChecked="False" ToolTip="Click to view options relating to this field.">
<Path VerticalAlignment="Center" Margin="2" Fill="#989898" Style="{StaticResource GearIcon}" />
</ToggleButton>
<Popup x:Name="popOptions" IsOpen="{Binding IsChecked, ElementName=btnOptions}" PlacementTarget="{x:Reference btnOptions}" StaysOpen="False" >
Expand Down

0 comments on commit b7fab2f

Please sign in to comment.