replace the tool toggle button with a normal button. Fixes both the style and the show/hide behavior.

This commit is contained in:
Benjamin Popp
2019-01-04 07:08:23 -06:00
parent 6f1845f5fe
commit 49583e76aa

View File

@@ -181,11 +181,11 @@
</ItemsControl>
<Line Width="1" DockPanel.Dock="Left" Stroke="{DynamicResource Background}"/>
<StackPanel DockPanel.Dock="Right" Visibility="{Binding HasTools, Converter={StaticResource BoolToVisibility}}">
<ToggleButton Content="String" Command="{Binding Tools.StringToolCommand}" IsChecked="{Binding Tools.SelectedIndex, Converter={StaticResource IndexMatch}, ConverterParameter=0}">
<ToggleButton.LayoutTransform>
<Button Content="String" Command="{Binding Tools.StringToolCommand}">
<Button.LayoutTransform>
<RotateTransform Angle="90"/>
</ToggleButton.LayoutTransform>
</ToggleButton>
</Button.LayoutTransform>
</Button>
</StackPanel>
<Grid DockPanel.Dock="Right" DataContext="{Binding Tools}">
<Grid.Style>