Open kucint opened 1 week ago
On Desktop framework: ColorAnimation is not working On WinAppSdk framework: works fine
Desktop
ColorAnimation
WinAppSdk
<Grid BorderThickness="3"> <Grid.BorderBrush> <SolidColorBrush x:Name="SelectionFrameBorderBrush" Color="Transparent" /> </Grid.BorderBrush> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="SelectionStates"> <VisualState x:Name="Selected"> <Storyboard> <ColorAnimation Storyboard.TargetName="SelectionFrameBorderBrush" Storyboard.TargetProperty="Color" To="Red" Duration="0:0:0.2" /> </Storyboard> </VisualState> <VisualState x:Name="Normal"> <Storyboard> <ColorAnimation Storyboard.TargetName="SelectionFrameBorderBrush" Storyboard.TargetProperty="Color" To="Transparent" Duration="0:0:0.2" /> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <CheckBox Content="CheckBox" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="False" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"> </CheckBox> </Grid>
private void CheckBox_Checked(object sender, RoutedEventArgs e) => VisualStateManager.GoToState(this, "Selected", true); private void CheckBox_Unchecked(object sender, RoutedEventArgs e) => VisualStateManager.GoToState(this, "Normal", true);
On Desktop framework: ColorAnimation of brush opacity shall work as on WinAppSdk
MINIMAL REPRO PROJECT : UnoColorAnimationApp.zip
STEPS TO REPRODUCE
No response
Yes
"Uno.Sdk": "5.5.43" "version": "9.0.100" // dotnet
"Uno.Sdk": "5.5.43"
"version": "9.0.100"
Skia (WPF)
Visual Studio 2022
Current behavior
On
Desktop
framework:ColorAnimation
is not working OnWinAppSdk
framework: works fineExpected behavior
On
Desktop
framework:ColorAnimation
of brush opacity shall work as onWinAppSdk
How to reproduce it (as minimally and precisely as possible)
MINIMAL REPRO PROJECT : UnoColorAnimationApp.zip
STEPS TO REPRODUCE
WinAppSdk
all is fine, animated Red Border appearsDesktop
: Red Border appears but without animationWorkaround
No response
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
"Uno.Sdk": "5.5.43"
"version": "9.0.100"
// dotnetAffected platforms
Skia (WPF)
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response