|
20 | 20 | <!-- Appearance Tab --> |
21 | 21 | <mah:MetroTabItem Header="Appearance"> |
22 | 22 | <ScrollViewer Margin="10,0,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> |
23 | | - <Grid> |
| 23 | + <Grid HorizontalAlignment="Center" VerticalAlignment="Top"> |
24 | 24 | <Grid.RowDefinitions> |
25 | 25 | <RowDefinition Height="Auto" /> |
26 | 26 | <RowDefinition Height="Auto" /> |
|
57 | 57 | <!-- Application settings Tab --> |
58 | 58 | <mah:MetroTabItem Header="Application"> |
59 | 59 | <ScrollViewer Margin="10,0,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> |
60 | | - <StackPanel> |
| 60 | + <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top"> |
61 | 61 | <CheckBox Content="Load snippets on startup" Margin="0,8,0,0" |
62 | 62 | IsChecked="{Binding LoadOnStartup, Mode=TwoWay}" /> |
63 | 63 | <CheckBox Content="Enable filtering" Margin="0,8,0,0" |
|
73 | 73 | <!-- Editor settings Tab --> |
74 | 74 | <mah:MetroTabItem Header="Editor"> |
75 | 75 | <ScrollViewer Margin="10,0,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> |
76 | | - <StackPanel HorizontalAlignment="Left"> |
| 76 | + <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top"> |
77 | 77 | <CheckBox Content="Convert tabs to spaces" Margin="0,8,0,0" |
78 | 78 | IsChecked="{Binding TabToSpaces, Mode=TwoWay}" /> |
79 | 79 | <CheckBox Content="Enable email hyperlinks" Margin="0,8,0,0" |
|
82 | 82 | IsChecked="{Binding HyperLinks, Mode=TwoWay}" /> |
83 | 83 | <CheckBox Content="Highlight current line" Margin="0,8,0,0" |
84 | 84 | IsChecked="{Binding HighlightLine, Mode=TwoWay}" /> |
85 | | - <TextBlock Text="Indentation size:" Margin="0,10,0,0"/> |
86 | | - <mah:NumericUpDown Maximum="10" Minimum="1" NumericInputMode="Numbers" Margin="0,5,0,0" |
87 | | - ParsingNumberStyle="Integer" TextAlignment="Center" Width="150" |
88 | | - Value="{Binding IntendationSize, Mode=TwoWay}" /> |
| 85 | + <StackPanel Orientation="Horizontal" Margin="0,8,0,0" VerticalAlignment="Center" HorizontalAlignment="Center"> |
| 86 | + <TextBlock Text="Indentation size:" /> |
| 87 | + <mah:NumericUpDown Maximum="10" Minimum="1" NumericInputMode="Numbers" Margin="5,0,0,0" |
| 88 | + ParsingNumberStyle="Integer" TextAlignment="Center" Width="70" |
| 89 | + Value="{Binding IntendationSize, Mode=TwoWay}" /> |
| 90 | + </StackPanel> |
| 91 | + |
89 | 92 | <TextBlock Text="Folding:" FontWeight="Bold" Margin="0,10,0,0"/> |
90 | 93 | <CheckBox Content="Enable Brace Style Folding" Margin="0,8,0,0" ToolTip="C#,C++,Java..." |
91 | 94 | IsChecked="{Binding EnableBraceStyleFolding, Mode=TwoWay}" /> |
|
99 | 102 | <!-- Database settings Tab --> |
100 | 103 | <mah:MetroTabItem Header="Database"> |
101 | 104 | <ScrollViewer Margin="10,0,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> |
102 | | - <StackPanel> |
| 105 | + <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top"> |
103 | 106 | <mah:Badged Badge="{Binding IntegrityCheckBadge}" BadgePlacementMode="TopRight" Margin="0,20,20,20" |
104 | 107 | BadgeBackground="{Binding IntegrityCheckBadge, Converter={StaticResource ResultToBrushConverter}}"> |
105 | 108 | <!--<Button Content="Integrity Check" Command="{Binding IntegrityCheckCommand}" Width="150" />--> |
106 | | - <Button Command="{Binding IntegrityCheckCommand}" Width="150" Height="30"> |
| 109 | + <Button Command="{Binding IntegrityCheckCommand}" Width="150" Height="30" IsTabStop="False"> |
107 | 110 | <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" > |
108 | 111 | <Path Data="{StaticResource DatabaseCheck}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
109 | 112 | Width="16" Height="16" Stretch="Uniform" /> |
|
115 | 118 | <mah:Badged Badge="{Binding VacuumBadge}" BadgePlacementMode="TopRight" Margin="0,0,20,20" |
116 | 119 | BadgeBackground="{Binding VacuumBadge, Converter={StaticResource ResultToBrushConverter}}"> |
117 | 120 | <!--<Button Content="Vacuum Database" Command="{Binding VacuumCommand}" Width="150" />--> |
118 | | - <Button Command="{Binding VacuumCommand}" Width="150" Height="30"> |
| 121 | + <Button Command="{Binding VacuumCommand}" Width="150" Height="30" IsTabStop="False"> |
119 | 122 | <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" > |
120 | 123 | <Path Data="{StaticResource DatabaseFillGear}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
121 | 124 | Width="16" Height="16" Stretch="Uniform" /> |
|
128 | 131 | <mah:Badged Badge="{Binding ReindexBadge}" BadgePlacementMode="TopRight" Margin="0,0,20,20" |
129 | 132 | BadgeBackground="{Binding ReindexBadge, Converter={StaticResource ResultToBrushConverter}}"> |
130 | 133 | <!--<Button Content="Reindex Database" Command="{Binding ReindexCommand}" Width="150" />--> |
131 | | - <Button Command="{Binding ReindexCommand}" Width="150" Height="30"> |
| 134 | + <Button Command="{Binding ReindexCommand}" Width="150" Height="30" IsTabStop="False"> |
132 | 135 | <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" > |
133 | 136 | <Path Data="{StaticResource DatabaseFillGear}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
134 | 137 | Width="16" Height="16" Stretch="Uniform" /> |
|
141 | 144 | <mah:Badged Badge="{Binding BackupBadge}" BadgePlacementMode="TopRight" Margin="0,0,20,20" |
142 | 145 | BadgeBackground="{Binding BackupBadge, Converter={StaticResource ResultToBrushConverter}}"> |
143 | 146 | <!--<Button Content="Backup Database" Command="{Binding BackupCommand}" Width="150" />--> |
144 | | - <Button Command="{Binding BackupCommand}" Width="150" Height="30"> |
| 147 | + <Button Command="{Binding BackupCommand}" Width="150" Height="30" IsTabStop="False"> |
145 | 148 | <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" > |
146 | 149 | <Path Data="{StaticResource DatabaseExport}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
147 | 150 | Width="16" Height="16" Stretch="Uniform" /> |
|
0 commit comments