|
51 | 51 | </Style>
|
52 | 52 |
|
53 | 53 | </Window.Resources>
|
54 |
| - <Grid Background="WhiteSmoke" Name="MainGrid"> |
55 |
| - <Grid.RowDefinitions> |
56 |
| - <RowDefinition Height="Auto" /> |
57 |
| - <RowDefinition Height="Auto" /> |
58 |
| - <RowDefinition Height="Auto" /> |
59 |
| - <RowDefinition Height="*" /> |
60 |
| - </Grid.RowDefinitions> |
61 |
| - <Menu BorderBrush="Silver" BorderThickness="0,0,0,1"> |
| 54 | + <DockPanel Background="WhiteSmoke" > |
| 55 | + <Menu DockPanel.Dock="Top" BorderBrush="Silver" BorderThickness="0,0,0,1"> |
62 | 56 | <MenuItem Header="_File" >
|
63 | 57 | <MenuItem Header="_New" Click="New_MenuItem_Click" >
|
64 | 58 | <MenuItem.Icon>
|
|
143 | 137 | <MenuItem Header="Clear Directory Filter History" Click="ClearDirectoryFilterHistory_Click" />
|
144 | 138 | </MenuItem>
|
145 | 139 | </Menu>
|
146 |
| - <Border Grid.Row="1" > |
147 |
| - <WrapPanel Grid.Row="1"> |
| 140 | + <Border DockPanel.Dock="Top"> |
| 141 | + <WrapPanel > |
148 | 142 | <WrapPanel.Resources>
|
149 | 143 | <Style BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" TargetType="Button" />
|
150 | 144 | <Style BasedOn="{StaticResource {x:Static ToolBar.ToggleButtonStyleKey}}" TargetType="ToggleButton" />
|
|
221 | 215 | </ToggleButton>
|
222 | 216 | </WrapPanel>
|
223 | 217 | </Border>
|
224 |
| - <Grid Grid.Row="3" Margin="0,5,0,0"> |
| 218 | + <Grid Margin="0,5,0,0"> |
225 | 219 | <Grid.ColumnDefinitions>
|
226 |
| - <ColumnDefinition x:Name="FirstColumn" Width="*" /> |
| 220 | + <ColumnDefinition x:Name="FirstColumn" /> |
227 | 221 | <ColumnDefinition Width="5" />
|
228 |
| - <ColumnDefinition x:Name="SecondColumn" Width="*" /> |
| 222 | + <ColumnDefinition x:Name="SecondColumn" /> |
229 | 223 | <ColumnDefinition Width="5" />
|
230 |
| - <ColumnDefinition Width="*" /> |
| 224 | + <ColumnDefinition x:Name="ThirdColumn"/> |
231 | 225 | </Grid.ColumnDefinitions>
|
232 | 226 | <Grid>
|
233 | 227 | <Grid.RowDefinitions>
|
|
394 | 388 | </Border>
|
395 | 389 | </Grid>
|
396 | 390 | </Grid>
|
397 |
| - <GridSplitter Grid.Column="1" |
398 |
| - VerticalAlignment="Stretch" |
| 391 | + <GridSplitter Grid.Column="1" |
| 392 | + ResizeBehavior="PreviousAndNext" |
| 393 | + VerticalAlignment="Stretch" |
399 | 394 | HorizontalAlignment="Stretch"/>
|
400 |
| - <Grid Grid.Column="2"> |
401 |
| - <Grid.RowDefinitions> |
402 |
| - <RowDefinition Height="Auto" /> |
403 |
| - <RowDefinition Height="*" /> |
404 |
| - <RowDefinition Height="Auto" /> |
405 |
| - </Grid.RowDefinitions> |
406 |
| - <Label Name="MatchesResultLabel" Target="{Binding ElementName=MatchResultsTreeView}" >Matches [Index,Length]</Label> |
| 395 | + <DockPanel Grid.Column="2"> |
| 396 | + <Label DockPanel.Dock="Top" Name="MatchesResultLabel" Target="{Binding ElementName=MatchResultsTreeView}" >Matches [Index,Length]</Label> |
| 397 | + <Button DockPanel.Dock="Bottom" |
| 398 | + Content="Restore Last Search _Selection" |
| 399 | + Visibility="{Binding TextSourceOn, Converter={converters:ChainingConverter Converter1={converters:EnumBooleanConverter}, Converter2={converters:CustomBoolToVisibilityConverter}, Converter1Parameter='CurrentSelection'}}" |
| 400 | + Click="RestoreLastMachesSelectionButton_Click" /> |
407 | 401 | <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0">
|
408 | 402 | <TreeView Name="MatchResultsTreeView"
|
409 | 403 | VirtualizingPanel.IsVirtualizing="True"
|
|
499 | 493 | </TreeView.Resources>
|
500 | 494 | </TreeView>
|
501 | 495 | </Border>
|
502 |
| - <Button Grid.Row="2" |
503 |
| - Content="Restore Last Search _Selection" |
504 |
| - Visibility="{Binding TextSourceOn, Converter={converters:ChainingConverter Converter1={converters:EnumBooleanConverter}, Converter2={converters:CustomBoolToVisibilityConverter}, Converter1Parameter='CurrentSelection'}}" |
505 |
| - Click="RestoreLastMachesSelectionButton_Click" /> |
506 |
| - </Grid> |
507 |
| - <GridSplitter Grid.Column="3" |
508 |
| - VerticalAlignment="Stretch" |
| 496 | + </DockPanel> |
| 497 | + <GridSplitter Grid.Column="3" |
| 498 | + ResizeBehavior="PreviousAndNext" |
| 499 | + VerticalAlignment="Stretch" |
509 | 500 | HorizontalAlignment="Stretch"/>
|
510 | 501 | <TabControl
|
511 | 502 | Name="OptionTabControl"
|
|
665 | 656 | </TabItem>
|
666 | 657 | </TabControl>
|
667 | 658 | </Grid>
|
668 |
| - </Grid> |
| 659 | + </DockPanel> |
669 | 660 | </Window>
|
0 commit comments