|
38 | 38 | Height="3*"
|
39 | 39 | MinHeight="100" />
|
40 | 40 | </Grid.RowDefinitions>
|
41 |
| - |
| 41 | + |
42 | 42 | <Grid
|
43 | 43 | x:Name="RootPreviewGrid"
|
44 |
| - Margin="5,5,5,5" |
| 44 | + Margin="8" |
45 | 45 | HorizontalAlignment="Stretch"
|
46 | 46 | VerticalAlignment="Stretch"
|
47 | 47 | AutomationProperties.Name="{helpers:ResourceString Name=PreviewPaneFilePreview/AutomationProperties/Name}">
|
|
81 | 81 | Visibility="Collapsed" />
|
82 | 82 | </Grid>
|
83 | 83 |
|
84 |
| - <Grid x:Name="RootPropertiesGrid" Grid.Row="2"> |
85 |
| - <ScrollViewer |
86 |
| - x:Name="FileDetailsScrollViewer" |
87 |
| - AutomationProperties.Name="{helpers:ResourceString Name=PreviewPaneFileDetails/AutomationProperties/Name}" |
88 |
| - Visibility="Visible"> |
89 |
| - <StackPanel Orientation="Vertical"> |
90 |
| - <TextBlock |
91 |
| - x:Name="DetailsListHeader" |
92 |
| - FontSize="20" |
93 |
| - FontWeight="Bold" |
94 |
| - HorizontalTextAlignment="Center" |
95 |
| - IsTextSelectionEnabled="True" |
96 |
| - Text="{x:Bind ViewModel.SelectedItem.Name, Mode=OneWay}" |
97 |
| - TextAlignment="Center" |
98 |
| - TextWrapping="Wrap" |
99 |
| - Visibility="Collapsed" /> |
| 84 | + <ScrollViewer |
| 85 | + x:Name="RootPropertiesScrollViewer" |
| 86 | + Grid.Row="1" |
| 87 | + AutomationProperties.Name="{helpers:ResourceString Name=PreviewPaneFileDetails/AutomationProperties/Name}" |
| 88 | + Visibility="Visible"> |
| 89 | + <StackPanel Orientation="Vertical"> |
| 90 | + <TextBlock |
| 91 | + x:Name="DetailsListHeader" |
| 92 | + FontSize="20" |
| 93 | + FontWeight="Bold" |
| 94 | + HorizontalAlignment="Center" |
| 95 | + IsTextSelectionEnabled="True" |
| 96 | + Text="{x:Bind ViewModel.SelectedItem.Name, Mode=OneWay}" |
| 97 | + TextAlignment="Center" |
| 98 | + TextWrapping="Wrap" |
| 99 | + Visibility="Collapsed" /> |
100 | 100 |
|
101 |
| - <ItemsControl |
102 |
| - x:Name="FileDetailsRepeater" |
103 |
| - Margin="12" |
104 |
| - ItemsSource="{x:Bind ViewModel.SelectedItem.FileDetails, Mode=OneWay}" |
105 |
| - Visibility="Collapsed"> |
106 |
| - <ItemsControl.ItemTemplate> |
107 |
| - <DataTemplate x:DataType="properties:FileProperty"> |
108 |
| - <Grid HorizontalAlignment="Stretch" AutomationProperties.Name="{x:Bind Name, Mode=OneWay}"> |
109 |
| - <Grid.ColumnDefinitions> |
110 |
| - <ColumnDefinition /> |
111 |
| - <ColumnDefinition /> |
112 |
| - </Grid.ColumnDefinitions> |
113 |
| - <!-- Property --> |
114 |
| - <TextBlock |
115 |
| - HorizontalAlignment="Stretch" |
116 |
| - Style="{StaticResource BodyTextBlockStyle}" |
117 |
| - Text="{x:Bind Name, Mode=OneWay}" |
118 |
| - MaxLines="2" /> |
119 |
| - |
120 |
| - <!-- Value --> |
121 |
| - <TextBox |
122 |
| - x:Name="PropertyValueTemplateTextBox" |
123 |
| - Grid.Column="1" |
124 |
| - HorizontalAlignment="Stretch" TextWrapping="Wrap" |
125 |
| - Background="Transparent" |
126 |
| - BorderBrush="Transparent" |
127 |
| - Text="{x:Bind ValueText, Mode=TwoWay}" /> |
128 |
| - </Grid> |
129 |
| - </DataTemplate> |
130 |
| - </ItemsControl.ItemTemplate> |
131 |
| - </ItemsControl> |
132 |
| - </StackPanel> |
133 |
| - </ScrollViewer> |
134 |
| - </Grid> |
| 101 | + <ItemsControl |
| 102 | + x:Name="FileDetailsRepeater" |
| 103 | + Margin="12" |
| 104 | + ItemsSource="{x:Bind ViewModel.SelectedItem.FileDetails, Mode=OneWay}" |
| 105 | + Visibility="Collapsed"> |
| 106 | + <ItemsControl.ItemTemplate> |
| 107 | + <DataTemplate x:DataType="properties:FileProperty"> |
| 108 | + <Grid HorizontalAlignment="Stretch" AutomationProperties.Name="{x:Bind Name, Mode=OneWay}"> |
| 109 | + <Grid.ColumnDefinitions> |
| 110 | + <ColumnDefinition /> |
| 111 | + <ColumnDefinition /> |
| 112 | + </Grid.ColumnDefinitions> |
| 113 | + <!-- Property --> |
| 114 | + <TextBlock |
| 115 | + HorizontalAlignment="Stretch" |
| 116 | + MaxLines="2" |
| 117 | + Style="{StaticResource BodyTextBlockStyle}" |
| 118 | + Text="{x:Bind Name, Mode=OneWay}" /> |
| 119 | + |
| 120 | + <!-- Value --> |
| 121 | + <TextBox |
| 122 | + x:Name="PropertyValueTemplateTextBox" |
| 123 | + Grid.Column="1" |
| 124 | + HorizontalAlignment="Stretch" |
| 125 | + Background="Transparent" |
| 126 | + BorderBrush="Transparent" |
| 127 | + Text="{x:Bind ValueText, Mode=TwoWay}" |
| 128 | + TextWrapping="Wrap" /> |
| 129 | + </Grid> |
| 130 | + </DataTemplate> |
| 131 | + </ItemsControl.ItemTemplate> |
| 132 | + </ItemsControl> |
| 133 | + </StackPanel> |
| 134 | + </ScrollViewer> |
135 | 135 |
|
136 | 136 | <VisualStateManager.VisualStateGroups>
|
137 | 137 | <VisualStateGroup>
|
|
199 | 199 | <triggers:IsEqualStateTrigger Value="{x:Bind PaneSettingsService.ShowPreviewOnly, Mode=OneWay}" To="True" />
|
200 | 200 | </VisualState.StateTriggers>
|
201 | 201 | <VisualState.Setters>
|
202 |
| - <Setter Target="RootPropertiesGrid.Visibility" Value="Collapsed" /> |
203 |
| - <Setter Target="RootPropertiesGrid.Visibility" Value="Collapsed" /> |
| 202 | + <Setter Target="RootPropertiesScrollViewer.Visibility" Value="Collapsed" /> |
204 | 203 | </VisualState.Setters>
|
205 | 204 | </VisualState>
|
206 | 205 | </VisualStateGroup>
|
|
0 commit comments