|
361 | 361 | </ResourceDictionary.ThemeDictionaries> |
362 | 362 |
|
363 | 363 | <x:String x:Key="SegmentedItemScaleAnimationDuration">00:00:00.167</x:String> |
364 | | - <win:BrushTransition x:Key="SegmentedItemBackgroundBrushTransition" Duration="0:0:0.083" /> |
365 | | - |
| 364 | + <win:BrushTransition x:Key="SegmentedItemBackgroundBrushTransition" |
| 365 | + Duration="0:0:0.083" /> |
| 366 | + |
366 | 367 | <Style BasedOn="{StaticResource DefaultSegmentedItemStyle}" |
367 | 368 | TargetType="local:SegmentedItem" /> |
368 | 369 |
|
|
399 | 400 | <Grid x:Name="PART_Root" |
400 | 401 | VerticalAlignment="{TemplateBinding VerticalAlignment}" |
401 | 402 | Background="{TemplateBinding Background}" |
| 403 | + BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}" |
402 | 404 | BorderBrush="{TemplateBinding BorderBrush}" |
403 | 405 | BorderThickness="{TemplateBinding BorderThickness}" |
404 | 406 | Control.IsTemplateFocusTarget="True" |
405 | | - CornerRadius="{TemplateBinding CornerRadius}" |
406 | | - BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}"> |
| 407 | + CornerRadius="{TemplateBinding CornerRadius}"> |
407 | 408 | <VisualStateManager.VisualStateGroups> |
408 | 409 | <VisualStateGroup x:Name="SegmentedOrientationStates"> |
409 | 410 | <VisualState x:Name="Horizontal" /> |
|
637 | 638 | <Border x:Name="PART_Hover" |
638 | 639 | Margin="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Converter={StaticResource MarginConverter}}" |
639 | 640 | Background="Transparent" |
| 641 | + BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}" |
640 | 642 | CornerRadius="{TemplateBinding CornerRadius}" |
641 | | - RenderTransformOrigin="0.5, 0.5" |
642 | | - BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}"> |
| 643 | + RenderTransformOrigin="0.5, 0.5"> |
643 | 644 | <Border.RenderTransform> |
644 | 645 | <CompositeTransform /> |
645 | 646 | </Border.RenderTransform> |
|
944 | 945 | <Grid x:Name="PART_Root" |
945 | 946 | Background="{TemplateBinding Background}" |
946 | 947 | BackgroundSizing="{TemplateBinding BackgroundSizing}" |
| 948 | + BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}" |
947 | 949 | Control.IsTemplateFocusTarget="True" |
948 | | - CornerRadius="{TemplateBinding CornerRadius}" |
949 | | - BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}"> |
| 950 | + CornerRadius="{TemplateBinding CornerRadius}"> |
950 | 951 | <VisualStateManager.VisualStateGroups> |
951 | 952 | <VisualStateGroup x:Name="SegmentedIconPositionStates"> |
952 | 953 | <VisualState x:Name="IconOnLeft" /> |
|
0 commit comments