|
26 | 26 | LocationChanged="OnLocationChanged" |
27 | 27 | Deactivated="OnDeactivated" |
28 | 28 | PreviewKeyDown="OnKeyDown" |
| 29 | + MinWidth="{Binding MainWindowWidth, Mode=OneWay}" |
| 30 | + MaxWidth="{Binding MainWindowWidth, Mode=OneWay}" |
29 | 31 | Visibility="{Binding MainWindowVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
30 | 32 | d:DataContext="{d:DesignInstance vm:MainViewModel}"> |
31 | 33 | <Window.Resources> |
|
102 | 104 | </Grid> |
103 | 105 |
|
104 | 106 | <Grid ClipToBounds="True"> |
105 | | - <Rectangle Width="Auto" HorizontalAlignment="Stretch" Style="{DynamicResource SeparatorStyle}" /> |
| 107 | + <ContentControl> |
| 108 | + <ContentControl.Style> |
| 109 | + <Style TargetType="ContentControl"> |
| 110 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 111 | + <Style.Triggers> |
| 112 | + <DataTrigger Binding="{Binding ElementName=ResultListBox, Path=Visibility}" Value="Visible"> |
| 113 | + <Setter Property="Visibility" Value="Visible" /> |
| 114 | + </DataTrigger> |
| 115 | + <DataTrigger Binding="{Binding ElementName=ContextMenu, Path=Visibility}" Value="Visible"> |
| 116 | + <Setter Property="Visibility" Value="Visible" /> |
| 117 | + </DataTrigger> |
| 118 | + <DataTrigger Binding="{Binding ElementName=History, Path=Visibility}" Value="Visible"> |
| 119 | + <Setter Property="Visibility" Value="Visible" /> |
| 120 | + </DataTrigger> |
| 121 | + </Style.Triggers> |
| 122 | + </Style> |
| 123 | + </ContentControl.Style> |
| 124 | + <Rectangle Width="Auto" HorizontalAlignment="Stretch" Style="{DynamicResource SeparatorStyle}"/> |
| 125 | + </ContentControl> |
106 | 126 | <Line x:Name="ProgressBar" HorizontalAlignment="Right" |
107 | 127 | Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
108 | 128 | Y1="0" Y2="0" X1="-150" X2="-50" Height="2" Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}},Path=ActualWidth}" StrokeThickness="1"> |
|
0 commit comments