|
1 | | -<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
2 | | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 | | - xmlns:controls="using:Files.App.Controls"> |
| 1 | +<ResourceDictionary |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:controls="using:Files.App.Controls"> |
4 | 5 |
|
5 | | - <Style x:Key="HorizontalGridView" |
6 | | - TargetType="GridView"> |
| 6 | + <Style x:Key="HorizontalGridView" TargetType="GridView"> |
7 | 7 | <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" /> |
8 | 8 | <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Enabled" /> |
9 | 9 | <Setter Property="ScrollViewer.VerticalScrollMode" Value="Disabled" /> |
|
43 | 43 | <Setter Property="Template"> |
44 | 44 | <Setter.Value> |
45 | 45 | <ControlTemplate TargetType="controls:BladeView"> |
46 | | - <Border Background="{TemplateBinding Background}" |
47 | | - BorderBrush="{TemplateBinding BorderBrush}" |
48 | | - BorderThickness="{TemplateBinding BorderThickness}"> |
49 | | - <ScrollViewer x:Name="ScrollViewer" |
50 | | - AutomationProperties.AccessibilityView="Raw" |
51 | | - BringIntoViewOnFocusChange="{TemplateBinding ScrollViewer.BringIntoViewOnFocusChange}" |
52 | | - HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" |
53 | | - HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" |
54 | | - IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" |
55 | | - IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" |
56 | | - IsHorizontalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsHorizontalScrollChainingEnabled}" |
57 | | - IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" |
58 | | - IsVerticalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsVerticalScrollChainingEnabled}" |
59 | | - TabNavigation="{TemplateBinding TabNavigation}" |
60 | | - VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" |
61 | | - VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" |
62 | | - ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}"> |
| 46 | + <Border |
| 47 | + Background="{TemplateBinding Background}" |
| 48 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 49 | + BorderThickness="{TemplateBinding BorderThickness}"> |
| 50 | + <ScrollViewer |
| 51 | + x:Name="ScrollViewer" |
| 52 | + AutomationProperties.AccessibilityView="Raw" |
| 53 | + BringIntoViewOnFocusChange="{TemplateBinding ScrollViewer.BringIntoViewOnFocusChange}" |
| 54 | + HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" |
| 55 | + HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" |
| 56 | + IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" |
| 57 | + IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" |
| 58 | + IsHorizontalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsHorizontalScrollChainingEnabled}" |
| 59 | + IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" |
| 60 | + IsVerticalScrollChainingEnabled="{TemplateBinding ScrollViewer.IsVerticalScrollChainingEnabled}" |
| 61 | + TabNavigation="{TemplateBinding TabNavigation}" |
| 62 | + VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" |
| 63 | + VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" |
| 64 | + ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}"> |
63 | 65 | <ItemsPresenter Padding="{TemplateBinding Padding}" /> |
64 | 66 | </ScrollViewer> |
65 | 67 | <VisualStateManager.VisualStateGroups> |
|
68 | 70 |
|
69 | 71 | <VisualState x:Name="FullScreen"> |
70 | 72 | <Storyboard> |
71 | | - <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ScrollViewer" |
72 | | - Storyboard.TargetProperty="HorizontalSnapPointsType"> |
73 | | - <DiscreteObjectKeyFrame KeyTime="0" |
74 | | - Value="Mandatory" /> |
| 73 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ScrollViewer" Storyboard.TargetProperty="HorizontalSnapPointsType"> |
| 74 | + <DiscreteObjectKeyFrame KeyTime="0" Value="Mandatory" /> |
75 | 75 | </ObjectAnimationUsingKeyFrames> |
76 | 76 | </Storyboard> |
77 | 77 | </VisualState> |
|
102 | 102 | <Setter Property="BorderBrush" Value="{ThemeResource CardStrokeColorDefaultBrush}" /> |
103 | 103 | <Setter Property="BorderThickness" Value="1" /> |
104 | 104 | <Setter Property="IsTabStop" Value="False" /> |
105 | | - <Setter Property="IsExpanded" Value="True"/> |
| 105 | + <Setter Property="IsExpanded" Value="True" /> |
106 | 106 | <Setter Property="Width" Value="320" /> |
107 | 107 | <Setter Property="HeaderTemplate"> |
108 | 108 | <Setter.Value> |
109 | 109 | <DataTemplate> |
110 | 110 | <TextBlock |
111 | | - Text="{Binding}" |
112 | | - Margin="12,7,0,9" |
113 | | - VerticalAlignment="Center" /> |
| 111 | + Margin="12,7,0,9" |
| 112 | + VerticalAlignment="Center" |
| 113 | + Text="{Binding}" /> |
114 | 114 | </DataTemplate> |
115 | 115 | </Setter.Value> |
116 | 116 | </Setter> |
117 | 117 | <Setter Property="Template"> |
118 | 118 | <Setter.Value> |
119 | 119 | <ControlTemplate TargetType="controls:BladeItem"> |
120 | | - <Grid BorderBrush="{TemplateBinding BorderBrush}" |
121 | | - BorderThickness="{TemplateBinding BorderThickness}" |
122 | | - Width="{TemplateBinding Width}"> |
123 | | - <VisualStateManager.VisualStateGroups> |
124 | | - <VisualStateGroup x:Name="ExpandedStates"> |
125 | | - <VisualState x:Name="Expanded"/> |
126 | | - <VisualState x:Name="Collapsed"> |
127 | | - <VisualState.Setters> |
128 | | - <Setter Target="ContentPresenter.Visibility" Value="Collapsed" /> |
129 | | - <Setter Target="EnlargeButton.Content" Value="" /> |
130 | | - </VisualState.Setters> |
131 | | - </VisualState> |
132 | | - </VisualStateGroup> |
133 | | - </VisualStateManager.VisualStateGroups> |
134 | | - |
| 120 | + <Grid |
| 121 | + Width="{TemplateBinding Width}" |
| 122 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 123 | + BorderThickness="{TemplateBinding BorderThickness}"> |
135 | 124 | <Grid.RowDefinitions> |
136 | 125 | <RowDefinition Height="Auto" /> |
137 | 126 | <RowDefinition Height="*" /> |
138 | 127 | </Grid.RowDefinitions> |
139 | 128 |
|
140 | | - <Grid Background="{TemplateBinding TitleBarBackground}" |
141 | | - Visibility="{TemplateBinding TitleBarVisibility}" |
142 | | - Height="32"> |
| 129 | + <Grid |
| 130 | + Height="32" |
| 131 | + Background="{TemplateBinding TitleBarBackground}" |
| 132 | + Visibility="{TemplateBinding TitleBarVisibility}"> |
143 | 133 | <Grid.ColumnDefinitions> |
144 | 134 | <ColumnDefinition Width="*" /> |
145 | 135 | <ColumnDefinition Width="Auto" /> |
146 | 136 | <ColumnDefinition Width="Auto" /> |
147 | 137 | </Grid.ColumnDefinitions> |
148 | 138 |
|
149 | | - <ContentPresenter x:Name="TitleBar" |
150 | | - Content="{TemplateBinding Header}" |
151 | | - ContentTemplate="{TemplateBinding HeaderTemplate}"/> |
152 | | - <Button Name="EnlargeButton" |
153 | | - Grid.Column="1" |
154 | | - TabIndex="0" |
155 | | - HorizontalAlignment="Right" |
156 | | - Background="{TemplateBinding CloseButtonBackground}" |
157 | | - Style="{StaticResource ButtonRevealStyle}" |
158 | | - BorderThickness="1" |
159 | | - VerticalAlignment="Stretch" |
160 | | - Content="" |
161 | | - FontFamily="Segoe MDL2 Assets" |
162 | | - FontSize="14" |
163 | | - Foreground="{TemplateBinding CloseButtonForeground}" /> |
164 | | - <Button Name="CloseButton" |
165 | | - Grid.Column="2" |
166 | | - TabIndex="0" |
167 | | - HorizontalAlignment="Right" |
168 | | - Background="{TemplateBinding CloseButtonBackground}" |
169 | | - Style="{StaticResource ButtonRevealStyle}" |
170 | | - BorderThickness="1" |
171 | | - VerticalAlignment="Stretch" |
172 | | - Content="" |
173 | | - FontFamily="Segoe MDL2 Assets" |
174 | | - FontSize="14" |
175 | | - Foreground="{TemplateBinding CloseButtonForeground}" /> |
| 139 | + <ContentPresenter |
| 140 | + x:Name="TitleBar" |
| 141 | + Content="{TemplateBinding Header}" |
| 142 | + ContentTemplate="{TemplateBinding HeaderTemplate}" /> |
| 143 | + <Button |
| 144 | + Name="EnlargeButton" |
| 145 | + Grid.Column="1" |
| 146 | + HorizontalAlignment="Right" |
| 147 | + VerticalAlignment="Stretch" |
| 148 | + Background="{TemplateBinding CloseButtonBackground}" |
| 149 | + BorderThickness="1" |
| 150 | + Content="" |
| 151 | + FontFamily="Segoe MDL2 Assets" |
| 152 | + FontSize="14" |
| 153 | + Foreground="{TemplateBinding CloseButtonForeground}" |
| 154 | + Style="{StaticResource ButtonRevealStyle}" |
| 155 | + TabIndex="0" /> |
| 156 | + <Button |
| 157 | + Name="CloseButton" |
| 158 | + Grid.Column="2" |
| 159 | + HorizontalAlignment="Right" |
| 160 | + VerticalAlignment="Stretch" |
| 161 | + Background="{TemplateBinding CloseButtonBackground}" |
| 162 | + BorderThickness="1" |
| 163 | + Content="" |
| 164 | + FontFamily="Segoe MDL2 Assets" |
| 165 | + FontSize="14" |
| 166 | + Foreground="{TemplateBinding CloseButtonForeground}" |
| 167 | + Style="{StaticResource ButtonRevealStyle}" |
| 168 | + TabIndex="0" /> |
176 | 169 | </Grid> |
177 | 170 |
|
178 | | - <ContentPresenter x:Name="ContentPresenter" |
179 | | - Grid.Row="1" |
180 | | - VerticalAlignment="Stretch" |
181 | | - Background="{TemplateBinding Background}" |
182 | | - Visibility="{TemplateBinding IsOpen}" /> |
| 171 | + <ContentPresenter |
| 172 | + x:Name="ContentPresenter" |
| 173 | + Grid.Row="1" |
| 174 | + VerticalAlignment="Stretch" |
| 175 | + Background="{TemplateBinding Background}" |
| 176 | + Visibility="{TemplateBinding IsOpen}" /> |
| 177 | + <VisualStateManager.VisualStateGroups> |
| 178 | + <VisualStateGroup x:Name="ExpandedStates"> |
| 179 | + <VisualState x:Name="Expanded" /> |
| 180 | + <VisualState x:Name="Collapsed"> |
| 181 | + <VisualState.Setters> |
| 182 | + <Setter Target="ContentPresenter.Visibility" Value="Collapsed" /> |
| 183 | + <Setter Target="EnlargeButton.Content" Value="" /> |
| 184 | + </VisualState.Setters> |
| 185 | + </VisualState> |
| 186 | + </VisualStateGroup> |
| 187 | + </VisualStateManager.VisualStateGroups> |
183 | 188 | </Grid> |
184 | 189 | </ControlTemplate> |
185 | 190 | </Setter.Value> |
|
0 commit comments