Skip to content

Popup appearing/disappearing animation #1507

Answered by pictos
tranb3r asked this question in Q&A
Discussion options

You must be logged in to vote

what do you mean by you can't animate the Popup? xP

So, being very specific you can't animate the Popup because it's an Element, but you can animate its Content (that's a View).

Here's the code snippet that makes it work

async void Button_Clicked(object? sender, EventArgs e)
{
	Debug.Assert(Content is not null);

	await this.Content.RelRotateTo(Content.Rotation + 360, 2000, Easing.Linear);
	await this.Content.FadeTo(0, 2000, Easing.Linear);


	await CloseAsync("Close button tapped", CancellationToken.None);
}
Screenbits.2024-09-05_005339.mp4

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@bijington
Comment options

@pictos
Comment options

pictos Sep 5, 2024
Collaborator

Answer selected by pictos
@tranb3r
Comment options

@bijington
Comment options

@pictos
Comment options

pictos Sep 5, 2024
Collaborator

@tranb3r
Comment options

Comment options

You must be logged in to vote
1 reply
@tranb3r
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants