|
49 | 49 | </Style> |
50 | 50 |
|
51 | 51 | <Style x:Key="ColorChangeControlStyle" TargetType="{x:Type components:ColorChangeControl}"> |
52 | | - <Setter Property="Margin" Value="0,10,0,0"/> |
53 | | - <Setter Property="HorizontalAlignment" Value="Center"/> |
| 52 | + <Setter Property="Margin" Value="5,10,5,0"/> |
| 53 | + <Setter Property="VerticalAlignment" Value="Top"/> |
| 54 | + <Setter Property="Height" Value="105"/> |
| 55 | + <Setter Property="Width" Value="320"/> |
54 | 56 | </Style> |
55 | 57 |
|
56 | 58 | <ResourceDictionary.MergedDictionaries> |
|
229 | 231 |
|
230 | 232 | <CheckBox Name="HighlightDeprecateds" Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Checked="HighlightDeprecateds_Changed" Unchecked="HighlightDeprecateds_Changed" /> |
231 | 233 |
|
232 | | - <StackPanel Grid.Column="0" Margin="0,30,0,0"> |
| 234 | + <StackPanel Grid.Column="0" Margin="0,30,0,10"> |
233 | 235 |
|
234 | 236 | <StackPanel.Resources> |
235 | | - <Style BasedOn="{StaticResource ColorChangeControlStyle}" TargetType="{x:Type components:ColorChangeControl}"/> |
| 237 | + <Style BasedOn="{StaticResource ColorChangeControlStyle}" TargetType="{x:Type components:ColorChangeControl}"> |
| 238 | + <Setter Property="HorizontalAlignment" Value="Left"/> |
| 239 | + </Style> |
236 | 240 | </StackPanel.Resources> |
237 | 241 |
|
238 | | - <components:ColorChangeControl x:Name="SH_Comments" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Comments_Changed" /> |
239 | | - <components:ColorChangeControl x:Name="SH_PreProcessor" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="PreProcessor_Changed" /> |
240 | | - <components:ColorChangeControl x:Name="SH_Types" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Types_Changed" /> |
241 | | - <components:ColorChangeControl x:Name="SH_Keywords" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Keywords_Changed" /> |
242 | | - <components:ColorChangeControl x:Name="SH_Chars" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Chars_Changed" /> |
243 | | - <components:ColorChangeControl x:Name="SH_Numbers" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Numbers_Changed" /> |
244 | | - <components:ColorChangeControl x:Name="SH_Deprecated" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Deprecated_Changed" /> |
245 | | - <components:ColorChangeControl x:Name="SH_Functions" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Functions_Changed" /> |
| 242 | + <components:ColorChangeControl x:Name="SH_Comments" ColorChanged="Comments_Changed" /> |
| 243 | + <components:ColorChangeControl x:Name="SH_PreProcessor" ColorChanged="PreProcessor_Changed" /> |
| 244 | + <components:ColorChangeControl x:Name="SH_Types" ColorChanged="Types_Changed" /> |
| 245 | + <components:ColorChangeControl x:Name="SH_Keywords" ColorChanged="Keywords_Changed" /> |
| 246 | + <components:ColorChangeControl x:Name="SH_Chars" ColorChanged="Chars_Changed" /> |
| 247 | + <components:ColorChangeControl x:Name="SH_Numbers" ColorChanged="Numbers_Changed" /> |
| 248 | + <components:ColorChangeControl x:Name="SH_Deprecated" ColorChanged="Deprecated_Changed" /> |
| 249 | + <components:ColorChangeControl x:Name="SH_Functions" ColorChanged="Functions_Changed" /> |
246 | 250 |
|
247 | 251 | </StackPanel> |
248 | 252 |
|
249 | 253 | <Button Grid.Column="1" Margin="0,0,5,0" |
250 | | - Width="150" Height="30" VerticalContentAlignment="Center" |
| 254 | + Height="30" VerticalContentAlignment="Center" |
251 | 255 | HorizontalContentAlignment="Center" HorizontalAlignment="Right" |
252 | 256 | VerticalAlignment="Top" x:Name="DefaultButton" Click="DefaultButton_Click" |
253 | 257 | FontWeight="Bold"/> |
254 | 258 |
|
255 | 259 | <StackPanel Grid.Column="1" Margin="0,30,0,0"> |
256 | 260 |
|
257 | 261 | <StackPanel.Resources> |
258 | | - <Style BasedOn="{StaticResource ColorChangeControlStyle}" TargetType="{x:Type components:ColorChangeControl}"/> |
| 262 | + <Style BasedOn="{StaticResource ColorChangeControlStyle}" TargetType="{x:Type components:ColorChangeControl}"> |
| 263 | + <Setter Property="HorizontalAlignment" Value="Right"/> |
| 264 | + </Style> |
259 | 265 | </StackPanel.Resources> |
260 | 266 |
|
261 | | - <components:ColorChangeControl x:Name="SH_CommentMarkers" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="CommentMarker_Changed" /> |
262 | | - <components:ColorChangeControl x:Name="SH_Strings" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="String_Changed" /> |
263 | | - <components:ColorChangeControl x:Name="SH_TypesValues" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="TypeValues_Changed" /> |
264 | | - <components:ColorChangeControl x:Name="SH_ContextKeywords" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="ContextKeywords_Changed" /> |
265 | | - <components:ColorChangeControl x:Name="SH_UnknownFunctions" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="UFunctions_Changed" /> |
266 | | - <components:ColorChangeControl x:Name="SH_SpecialCharacters" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="SpecialCharacters_Changed" /> |
267 | | - <components:ColorChangeControl x:Name="SH_Constants" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Constants_Changed" /> |
268 | | - <components:ColorChangeControl x:Name="SH_Methods" VerticalAlignment="Top" Height="105" Width="300" ColorChanged="Methods_Changed" /> |
| 267 | + <components:ColorChangeControl x:Name="SH_CommentMarkers" ColorChanged="CommentMarker_Changed" /> |
| 268 | + <components:ColorChangeControl x:Name="SH_Strings" ColorChanged="String_Changed" /> |
| 269 | + <components:ColorChangeControl x:Name="SH_TypesValues" ColorChanged="TypeValues_Changed" /> |
| 270 | + <components:ColorChangeControl x:Name="SH_ContextKeywords" ColorChanged="ContextKeywords_Changed" /> |
| 271 | + <components:ColorChangeControl x:Name="SH_UnknownFunctions" ColorChanged="UFunctions_Changed" /> |
| 272 | + <components:ColorChangeControl x:Name="SH_SpecialCharacters" ColorChanged="SpecialCharacters_Changed" /> |
| 273 | + <components:ColorChangeControl x:Name="SH_Constants" ColorChanged="Constants_Changed" /> |
| 274 | + <components:ColorChangeControl x:Name="SH_Methods" ColorChanged="Methods_Changed" /> |
269 | 275 |
|
270 | 276 | </StackPanel> |
271 | 277 |
|
|
0 commit comments