Skip to content

Commit 6d120c9

Browse files
committed
Removed buttons from Indenter Settings header to fix stupid focus thing.
1 parent 95a16a8 commit 6d120c9

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

RetailCoder.VBE/UI/Settings/IndenterSettings.xaml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,26 @@
5959
<ColumnDefinition MaxWidth="75"/>
6060
<ColumnDefinition MaxWidth="75"/>
6161
</Grid.ColumnDefinitions>
62-
<Button Foreground="Blue" Grid.Column="1"
63-
Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
64-
Command="{Binding ImportButtonCommand}" >
65-
<TextBlock TextDecorations="Underline" Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SettingsCaption_ImportSettings}" />
66-
</Button>
67-
<Button Foreground="Blue" Grid.Column="2"
68-
Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
69-
Command="{Binding ExportButtonCommand}" >
70-
<TextBlock TextDecorations="Underline" Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SettingsCaption_ExportSettings}" />
71-
</Button>
62+
<TextBlock Foreground="Blue"
63+
Grid.Column="1"
64+
TextDecorations="Underline"
65+
Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SettingsCaption_ImportSettings}"
66+
VerticalAlignment="Center"
67+
Margin="5,0,5,0">
68+
<TextBlock.InputBindings>
69+
<MouseBinding Command="{Binding ImportButtonCommand}" MouseAction="LeftClick" />
70+
</TextBlock.InputBindings>
71+
</TextBlock>
72+
<TextBlock Foreground="Blue"
73+
Grid.Column="2"
74+
TextDecorations="Underline"
75+
Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SettingsCaption_ExportSettings}"
76+
VerticalAlignment="Center"
77+
Margin="5,0,5,0">
78+
<TextBlock.InputBindings>
79+
<MouseBinding Command="{Binding ExportButtonCommand}" MouseAction="LeftClick" />
80+
</TextBlock.InputBindings>
81+
</TextBlock>
7282
</Grid>
7383
</StackPanel>
7484
<StackPanel Orientation="Horizontal" DockPanel.Dock="Right"/>
@@ -133,7 +143,7 @@
133143
<Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=IndenterSettings_EndOfLineCommentStyle}"
134144
FontWeight="SemiBold"
135145
HorizontalAlignment="Left" />
136-
<StackPanel Orientation="Horizontal">
146+
<StackPanel Orientation="Horizontal">
137147
<ComboBox Margin="5,0,0,5"
138148
Width="210"
139149
HorizontalAlignment="Left"

0 commit comments

Comments
 (0)