|
1 | | -<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 1 | +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 | 3 | xmlns:local="using:CommunityToolkit.WinUI.Controls" |
4 | 4 | xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> |
|
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 | | - <VisualStateManager.VisualStateGroups> |
| 407 | + CornerRadius="{TemplateBinding CornerRadius}"> |
| 408 | + <VisualStateManager.VisualStateGroups> |
408 | 409 | <VisualStateGroup x:Name="SegmentedIconPositionStates"> |
409 | 410 | <VisualState x:Name="IconOnLeft" /> |
410 | 411 | <VisualState x:Name="IconOnly"> |
|
614 | 615 | <Border x:Name="PART_Hover" |
615 | 616 | Margin="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Converter={StaticResource MarginConverter}}" |
616 | 617 | Background="Transparent" |
| 618 | + BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}" |
617 | 619 | CornerRadius="{TemplateBinding CornerRadius}" |
618 | | - RenderTransformOrigin="0.5, 0.5" |
619 | | - BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}"> |
| 620 | + RenderTransformOrigin="0.5, 0.5"> |
620 | 621 | <Border.RenderTransform> |
621 | 622 | <CompositeTransform /> |
622 | 623 | </Border.RenderTransform> |
|
923 | 924 | <Grid x:Name="PART_Root" |
924 | 925 | Background="{TemplateBinding Background}" |
925 | 926 | BackgroundSizing="{TemplateBinding BackgroundSizing}" |
| 927 | + BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}" |
926 | 928 | Control.IsTemplateFocusTarget="True" |
927 | | - CornerRadius="{TemplateBinding CornerRadius}" |
928 | | - BackgroundTransition="{ThemeResource SegmentedItemBackgroundBrushTransition}"> |
| 929 | + CornerRadius="{TemplateBinding CornerRadius}"> |
929 | 930 | <VisualStateManager.VisualStateGroups> |
930 | 931 | <VisualStateGroup x:Name="SegmentedIconPositionStates"> |
931 | 932 | <VisualState x:Name="IconOnLeft" /> |
|
0 commit comments