|
8 | 8 | xmlns:behaviors="clr-namespace:RegexDialog.Behaviors" |
9 | 9 | Title="C# Regex Tools" |
10 | 10 | Height="422.75" |
| 11 | + MinHeight="300" |
| 12 | + MinWidth="600" |
11 | 13 | Width="1427.97" |
12 | 14 | WindowStyle="ToolWindow" |
13 | 15 | Closing="Window_Closing" |
|
511 | 513 | <TabItem Name="RegexTabItem" Header="Regex _Language Elements" > |
512 | 514 | <Grid> |
513 | 515 | <Grid.RowDefinitions> |
514 | | - <RowDefinition x:Name="RegexLanguageElementFirstRow" Height="*" /> |
| 516 | + <RowDefinition x:Name="RegexLanguageElementFirstRow" Height="*" MinHeight="50" /> |
515 | 517 | <RowDefinition Height="5" /> |
516 | 518 | <RowDefinition Height="0.1*" /> |
517 | 519 | </Grid.RowDefinitions> |
518 | 520 | <TreeView Name="RegexLanguagesElementsTreeView" SelectedItemChanged="RegexLanguagesElementsTreeView_SelectedItemChanged"> |
519 | | - <TreeView.Resources> |
520 | | - <HierarchicalDataTemplate DataType="{x:Type local:RegexLanguageElementGroup}" ItemsSource="{Binding Elements}"> |
521 | | - <StackPanel Background="Transparent" Orientation="Horizontal" ToolTip="{Binding Description}"> |
522 | | - <Image Source="{StaticResource RegexLanguageElementsGroupPicture}" Width="16" Height="16" Margin="3,0"/> |
523 | | - <TextBlock Text="{Binding Name}"/> |
524 | | - <TextBlock Text="{Binding Value}" Foreground="Blue"/> |
525 | | - </StackPanel> |
526 | | - </HierarchicalDataTemplate> |
527 | | - <HierarchicalDataTemplate DataType="{x:Type local:RegexLanguageElement}"> |
528 | | - <StackPanel Background="Transparent" Orientation="Horizontal" ToolTip="{Binding Description}" MouseDown="RegexLanguageElement_StackPanel_MouseDown" MouseUp="RegexLanguageElement_StackPanel_MouseUp"> |
529 | | - <Image Source="{StaticResource RegexLanguageElementPicture}" Width="16" Height="16" Margin="3,0"/> |
530 | | - <TextBlock Text="{Binding Name}"/> |
531 | | - <TextBlock Text="{Binding Value}" Foreground="Blue"/> |
532 | | - </StackPanel> |
533 | | - </HierarchicalDataTemplate> |
534 | | - </TreeView.Resources> |
535 | | - </TreeView> |
536 | | - <GridSplitter |
| 521 | + <TreeView.Resources> |
| 522 | + <HierarchicalDataTemplate DataType="{x:Type local:RegexLanguageElementGroup}" ItemsSource="{Binding Elements}"> |
| 523 | + <StackPanel Background="Transparent" Orientation="Horizontal" ToolTip="{Binding Description}"> |
| 524 | + <Image Source="{StaticResource RegexLanguageElementsGroupPicture}" Width="16" Height="16" Margin="3,0"/> |
| 525 | + <TextBlock Text="{Binding Name}"/> |
| 526 | + <TextBlock Text="{Binding Value}" Foreground="Blue"/> |
| 527 | + </StackPanel> |
| 528 | + </HierarchicalDataTemplate> |
| 529 | + <HierarchicalDataTemplate DataType="{x:Type local:RegexLanguageElement}"> |
| 530 | + <StackPanel Background="Transparent" Orientation="Horizontal" ToolTip="{Binding Description}" MouseDown="RegexLanguageElement_StackPanel_MouseDown" MouseUp="RegexLanguageElement_StackPanel_MouseUp"> |
| 531 | + <Image Source="{StaticResource RegexLanguageElementPicture}" Width="16" Height="16" Margin="3,0"/> |
| 532 | + <TextBlock Text="{Binding Name}"/> |
| 533 | + <TextBlock Text="{Binding Value}" Foreground="Blue"/> |
| 534 | + </StackPanel> |
| 535 | + </HierarchicalDataTemplate> |
| 536 | + </TreeView.Resources> |
| 537 | + </TreeView> |
| 538 | + <GridSplitter |
537 | 539 | Grid.Row="1" |
538 | 540 | VerticalAlignment="Stretch" |
539 | 541 | HorizontalAlignment="Stretch"/> |
|
549 | 551 | <TabItem Name="ReplaceTabItem" Header="_Replace Elements" > |
550 | 552 | <Grid> |
551 | 553 | <Grid.RowDefinitions> |
552 | | - <RowDefinition x:Name="ReplaceLanguageElementFirstRow" Height="*" /> |
| 554 | + <RowDefinition x:Name="ReplaceLanguageElementFirstRow" Height="*" MinHeight="50" /> |
553 | 555 | <RowDefinition Height="5" /> |
554 | | - <RowDefinition Height="0.1*" /> |
| 556 | + <RowDefinition Height="0.1*" MinHeight="30" /> |
555 | 557 | </Grid.RowDefinitions> |
556 | 558 | <ListView Name="ReplaceLanguageElementsListView" SelectionChanged="ReplaceLanguageElementsListView_SelectionChanged"> |
557 | 559 | <ListView.ItemTemplate> |
|
0 commit comments