|
203 | 203 | </MenuFlyout>
|
204 | 204 | </FlyoutBase.AttachedFlyout>
|
205 | 205 |
|
206 |
| - <AnimatedIcon |
| 206 | + <FontIcon |
207 | 207 | x:Name="PART_ItemChevronIcon"
|
208 | 208 | Width="{StaticResource BreadcrumbBarChevronFontSize}"
|
209 | 209 | Height="{StaticResource BreadcrumbBarChevronFontSize}"
|
210 | 210 | HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
211 | 211 | VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
212 |
| - AnimatedIcon.State="NormalOff" |
213 |
| - AutomationProperties.AccessibilityView="Raw" |
| 212 | + FontSize="{StaticResource BreadcrumbBarChevronFontSize}" |
214 | 213 | Foreground="{ThemeResource BreadcrumbBarForegroundBrush}"
|
215 |
| - MirroredWhenRightToLeft="True" |
216 |
| - RenderTransformOrigin="0.5, 0.5"> |
217 |
| - <AnimatedIcon.FallbackIconSource> |
218 |
| - <FontIconSource |
219 |
| - FontSize="{StaticResource BreadcrumbBarChevronFontSize}" |
220 |
| - Glyph="" |
221 |
| - IsTextScaleFactorEnabled="False" /> |
222 |
| - </AnimatedIcon.FallbackIconSource> |
223 |
| - <animatedvisuals:AnimatedChevronRightDownSmallVisualSource /> |
224 |
| - </AnimatedIcon> |
225 |
| - |
| 214 | + Glyph="" |
| 215 | + IsTextScaleFactorEnabled="False" |
| 216 | + RenderTransformOrigin="0.5,0.5"> |
| 217 | + <FontIcon.RenderTransform> |
| 218 | + <TransformGroup> |
| 219 | + <RotateTransform x:Name="ChevronRotateTransform" Angle="0" /> |
| 220 | + </TransformGroup> |
| 221 | + </FontIcon.RenderTransform> |
| 222 | + </FontIcon> |
226 | 223 | </Button>
|
227 | 224 | </StackPanel>
|
228 | 225 |
|
229 | 226 | <VisualStateManager.VisualStateGroups>
|
230 |
| - |
231 | 227 | <VisualStateGroup x:Name="ChevronVisibilityStates">
|
232 | 228 | <VisualState x:Name="ChevronVisible" />
|
233 | 229 | <VisualState x:Name="ChevronCollapsed">
|
|
238 | 234 | </VisualStateGroup>
|
239 | 235 |
|
240 | 236 | <VisualStateGroup x:Name="ChevronStates">
|
241 |
| - <VisualState x:Name="ChevronNormalOff" /> |
| 237 | + <VisualState x:Name="ChevronNormalOff"> |
| 238 | + <Storyboard> |
| 239 | + <DoubleAnimation |
| 240 | + EnableDependentAnimation="True" |
| 241 | + Storyboard.TargetName="ChevronRotateTransform" |
| 242 | + Storyboard.TargetProperty="Angle" |
| 243 | + To="0" |
| 244 | + Duration="0:0:0.2"> |
| 245 | + <DoubleAnimation.EasingFunction> |
| 246 | + <CubicEase EasingMode="EaseIn" /> |
| 247 | + </DoubleAnimation.EasingFunction> |
| 248 | + </DoubleAnimation> |
| 249 | + </Storyboard> |
| 250 | + </VisualState> |
| 251 | + |
242 | 252 | <VisualState x:Name="ChevronNormalOn">
|
243 |
| - <VisualState.Setters> |
244 |
| - <Setter Target="PART_ItemChevronIcon.(AnimatedIcon.State)" Value="NormalOn" /> |
245 |
| - </VisualState.Setters> |
| 253 | + <Storyboard> |
| 254 | + <DoubleAnimation |
| 255 | + EnableDependentAnimation="True" |
| 256 | + Storyboard.TargetName="ChevronRotateTransform" |
| 257 | + Storyboard.TargetProperty="Angle" |
| 258 | + To="90" |
| 259 | + Duration="0:0:0.2"> |
| 260 | + <DoubleAnimation.EasingFunction> |
| 261 | + <CubicEase EasingMode="EaseIn" /> |
| 262 | + </DoubleAnimation.EasingFunction> |
| 263 | + </DoubleAnimation> |
| 264 | + </Storyboard> |
246 | 265 | </VisualState>
|
247 | 266 | </VisualStateGroup>
|
248 |
| - |
249 | 267 | </VisualStateManager.VisualStateGroups>
|
250 | 268 | </Grid>
|
251 | 269 | </ControlTemplate>
|
|
0 commit comments