|
52 | 52 |
|
53 | 53 | </UserControl.Resources>
|
54 | 54 |
|
55 |
| - <Grid> |
56 |
| - <ScrollViewer VerticalContentAlignment="Stretch"> |
57 |
| - <StackPanel Margin="5"> |
58 |
| - |
59 |
| - <GroupBox> |
60 |
| - <GroupBox.Header> |
61 |
| - <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=RegexAssistant_RegexPatternLabel}" |
62 |
| - FontWeight="SemiBold" /> |
63 |
| - </GroupBox.Header> |
| 55 | + <Grid Margin="5"> |
| 56 | + |
| 57 | + <Grid.RowDefinitions> |
| 58 | + <RowDefinition Height="Auto" /> |
| 59 | + <RowDefinition Height="*" MinHeight="180"/> |
| 60 | + </Grid.RowDefinitions> |
64 | 61 |
|
65 |
| - <StackPanel> |
66 |
| - <TextBox HorizontalAlignment="Stretch" |
67 |
| - VerticalAlignment="Top" Height="23" |
68 |
| - VerticalContentAlignment="Center" Margin="5" |
69 |
| - Text="{Binding Pattern}"/> |
| 62 | + <GroupBox Grid.Row="0"> |
| 63 | + <GroupBox.Header> |
| 64 | + <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=RegexAssistant_RegexPatternLabel}" FontWeight="SemiBold" /> |
| 65 | + </GroupBox.Header> |
70 | 66 |
|
71 |
| - <StackPanel Orientation="Horizontal" Margin="5,0,5,0"> |
72 |
| - <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=RegexAssistant_GlobalFlag}" |
73 |
| - IsChecked="{Binding GlobalFlag}" |
74 |
| - Margin="0,0,5,0"/> |
75 |
| - <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=RegexAssistant_IgnoreCaseFlag}" |
76 |
| - IsChecked="{Binding IgnoreCaseFlag}" |
77 |
| - Margin="0,0,5,0"/> |
78 |
| - </StackPanel> |
79 |
| - </StackPanel> |
| 67 | + <StackPanel> |
| 68 | + <TextBox HorizontalAlignment="Stretch" |
| 69 | + VerticalAlignment="Top" Height="23" |
| 70 | + VerticalContentAlignment="Center" Margin="5" |
| 71 | + Text="{Binding Pattern}"/> |
80 | 72 |
|
81 |
| - </GroupBox> |
| 73 | + <StackPanel Orientation="Horizontal" Margin="5,0,5,0"> |
| 74 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=RegexAssistant_GlobalFlag}" |
| 75 | + IsChecked="{Binding GlobalFlag}" |
| 76 | + Margin="0,0,5,0"/> |
| 77 | + <CheckBox Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=RegexAssistant_IgnoreCaseFlag}" |
| 78 | + IsChecked="{Binding IgnoreCaseFlag}" |
| 79 | + Margin="0,0,5,0"/> |
| 80 | + </StackPanel> |
| 81 | + </StackPanel> |
| 82 | + </GroupBox> |
82 | 83 |
|
83 |
| - <GroupBox Margin="5" MinHeight="200"> |
84 |
| - <GroupBox.Header> |
85 |
| - <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=RegexAssistant_DescriptionResultsLabel}" FontWeight="SemiBold" /> |
86 |
| - </GroupBox.Header> |
| 84 | + <GroupBox Grid.Row="1" Margin="5"> |
| 85 | + <GroupBox.Header> |
| 86 | + <Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=RegexAssistant_DescriptionResultsLabel}" FontWeight="SemiBold" /> |
| 87 | + </GroupBox.Header> |
87 | 88 |
|
88 |
| - <TreeView ItemTemplate="{StaticResource RecursiveData}" |
89 |
| - ItemContainerStyle="{StaticResource ShinyTreeView}" |
90 |
| - Margin="5" |
91 |
| - VerticalAlignment="Stretch" |
92 |
| - HorizontalContentAlignment="Stretch" |
93 |
| - ItemsSource="{Binding ResultItems}" /> |
94 |
| - </GroupBox> |
95 |
| - </StackPanel> |
96 |
| - </ScrollViewer> |
| 89 | + <TreeView Margin="5" |
| 90 | + ScrollViewer.VerticalScrollBarVisibility="Auto" |
| 91 | + ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 92 | + ItemTemplate="{StaticResource RecursiveData}" |
| 93 | + ItemContainerStyle="{StaticResource ShinyTreeView}" |
| 94 | + ItemsSource="{Binding ResultItems}"/> |
| 95 | + </GroupBox> |
97 | 96 | </Grid>
|
98 | 97 | </UserControl>
|
0 commit comments