|
127 | 127 | <RowDefinition Height="2*" MinHeight="100" />
|
128 | 128 | <RowDefinition x:Name="PropertiesRow" Height="3*" />
|
129 | 129 | </Grid.RowDefinitions>
|
| 130 | + <Grid.ColumnDefinitions> |
| 131 | + <ColumnDefinition Width="2*" MinWidth="100" /> |
| 132 | + <ColumnDefinition x:Name="PropertiesColumn" Width="3*" /> |
| 133 | + </Grid.ColumnDefinitions> |
130 | 134 |
|
131 | 135 | <!-- Panes -->
|
132 | 136 | <StackPanel
|
133 | 137 | Grid.Row="0"
|
| 138 | + Grid.Column="0" |
| 139 | + Grid.ColumnSpan="2" |
134 | 140 | Padding="12"
|
135 | 141 | HorizontalAlignment="Left"
|
136 | 142 | VerticalAlignment="Center"
|
|
147 | 153 | <Grid
|
148 | 154 | x:Name="RootPreviewGrid"
|
149 | 155 | Grid.Row="1"
|
| 156 | + Grid.Column="0" |
| 157 | + Grid.ColumnSpan="2" |
150 | 158 | Margin="8"
|
151 | 159 | HorizontalAlignment="Stretch"
|
152 | 160 | VerticalAlignment="Stretch"
|
|
186 | 194 | <ScrollViewer
|
187 | 195 | x:Name="RootPropertiesScrollViewer"
|
188 | 196 | Grid.Row="2"
|
| 197 | + Grid.Column="0" |
| 198 | + Grid.ColumnSpan="2" |
189 | 199 | AutomationProperties.Name="{helpers:ResourceString Name=PreviewPaneFileDetails/AutomationProperties/Name}"
|
190 | 200 | Visibility="Visible">
|
191 | 201 | <StackPanel Orientation="Vertical">
|
|
300 | 310 | <VisualState.StateTriggers>
|
301 | 311 | <triggers:IsEqualStateTrigger Value="{x:Bind PaneSettingsService.ShowPreviewOnly, Mode=OneWay}" To="False" />
|
302 | 312 | </VisualState.StateTriggers>
|
| 313 | + <VisualState.Setters> |
| 314 | + <Setter Target="RootPropertiesScrollViewer.Visibility" Value="Visible" /> |
| 315 | + <Setter Target="PropertiesRow.Height" Value="3*" /> |
| 316 | + <Setter Target="PropertiesColumn.Width" Value="3*" /> |
| 317 | + </VisualState.Setters> |
303 | 318 | </VisualState>
|
304 | 319 | <VisualState>
|
305 | 320 | <VisualState.StateTriggers>
|
|
308 | 323 | <VisualState.Setters>
|
309 | 324 | <Setter Target="RootPropertiesScrollViewer.Visibility" Value="Collapsed" />
|
310 | 325 | <Setter Target="PropertiesRow.Height" Value="0" />
|
| 326 | + <Setter Target="PropertiesColumn.Width" Value="0" /> |
| 327 | + </VisualState.Setters> |
| 328 | + </VisualState> |
| 329 | + </VisualStateGroup> |
| 330 | + |
| 331 | + <!-- Orientations --> |
| 332 | + <VisualStateGroup x:Name="Orientation"> |
| 333 | + <VisualState x:Name="Vertical"> |
| 334 | + <VisualState.Setters> |
| 335 | + <Setter Target="RootPreviewGrid.(Grid.Column)" Value="0" /> |
| 336 | + <Setter Target="RootPropertiesScrollViewer.Column" Value="0" /> |
| 337 | + <Setter Target="RootPropertiesScrollViewer.(Grid.RowSpan)" Value="1" /> |
| 338 | + <Setter Target="RootPropertiesScrollViewer.(Grid.ColumnSpan)" Value="2" /> |
| 339 | + <Setter Target="RootPreviewGrid.(Grid.ColumnSpan)" Value="2" /> |
| 340 | + <Setter Target="RootPreviewGrid.(Grid.RowSpan)" Value="1" /> |
| 341 | + </VisualState.Setters> |
| 342 | + </VisualState> |
| 343 | + <VisualState x:Name="Horizontal"> |
| 344 | + <VisualState.Setters> |
| 345 | + <Setter Target="RootPropertiesScrollViewer.(Grid.Column)" Value="1" /> |
| 346 | + <Setter Target="RootPropertiesScrollViewer.(Grid.RowSpan)" Value="2" /> |
| 347 | + <Setter Target="RootPropertiesScrollViewer.(Grid.ColumnSpan)" Value="1" /> |
| 348 | + <Setter Target="RootPreviewGrid.(Grid.ColumnSpan)" Value="1" /> |
| 349 | + <Setter Target="RootPreviewGrid.(Grid.RowSpan)" Value="2" /> |
| 350 | + <Setter Target="RootPropertiesScrollViewer.(Grid.Row)" Value="1" /> |
311 | 351 | </VisualState.Setters>
|
312 | 352 | </VisualState>
|
313 | 353 | </VisualStateGroup>
|
|
0 commit comments