Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storyboard AutoReverse=True does nothing on Uno #10629

Open
takla21 opened this issue Dec 2, 2022 · 1 comment
Open

Storyboard AutoReverse=True does nothing on Uno #10629

takla21 opened this issue Dec 2, 2022 · 1 comment
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/animations 🎡 Categorizes an issue or PR as relevant to animations

Comments

@takla21
Copy link
Contributor

takla21 commented Dec 2, 2022

Current behavior

ezgif com-gif-maker(1)

Setting AutoReverse="True" does not reverse the animation.

<Storyboard RepeatBehavior="Forever"
		    AutoReverse="True">
	<DoubleAnimation Storyboard.TargetName="RectToAnimate"
				      Storyboard.TargetProperty="Opacity"
				      From="1"
				      To="0"
				      Duration="0:0:1" />
</Storyboard>

Expected behavior

The animation should be reverse what's set in the storyboard

autoreverse_expected

How to reproduce it (as minimally and precisely as possible)

Workaround

Specify explicitly the inverted animation.

<DoubleAnimationUsingKeyFrames Storyboard.TargetName="RectToAnimate"
						        Storyboard.TargetProperty="Opacity">
	<LinearDoubleKeyFrame KeyTime="0:0:0"
					       Value="1" />

	<LinearDoubleKeyFrame KeyTime="0:0:1"
					       Value="0" />

	<LinearDoubleKeyFrame KeyTime="0:0:2"
					       Value="1" />
</DoubleAnimationUsingKeyFrames>

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

4.7.0-dev.503

Affected platforms

Android, iOS

IDE

Visual Studio 2022

IDE version

17.3.5

Relevant plugins

No response

Anything else we need to know?

No response

@takla21 takla21 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Dec 2, 2022
@Youssef1313
Copy link
Member

Youssef1313 commented Dec 2, 2022

It's not yet implemented. It should produce a warning indicating that.

Related issues:

#6027
#5382

@MartinZikmund MartinZikmund added project/animations 🎡 Categorizes an issue or PR as relevant to animations difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Aug 23, 2023
@MartinZikmund MartinZikmund changed the title Storyboard AutoReverse=True does nothing on Uno Storyboard AutoReverse=True does nothing on Uno Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/animations 🎡 Categorizes an issue or PR as relevant to animations
Projects
None yet
Development

No branches or pull requests

3 participants