You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I´d like to know if it would also be possible to start an XAML-Flair Animation within C# Code ?
I´d like to have Visibility Animation, when Visibilty is set to "Collapsed" or "Hidden".
Maybe there is also a better way, but I have been thinking about implementing a VisibilityConverter that plays a FadeOut / Slide animation when Visibility != Visible. Here I would like to use a XAML-Flair animation. Is that possible?
The library is built specifically for animating in Xaml, I haven't tried using it in C# as it was never the intention. Would be something worth trying.
As for animating a collapsing visual, there's a problem with that. As soon as the visibility of the element is Collapsed, it's immediately gone from the UI, can't be animated anymore, and the XamlFlair verifies if an element is Visible before animating it. You would have to animate a "Fade-out" based on a VM binding to achieve the same effect.
It's something I've wanted to add to the library for awhile, but tricky to do because of the immediate "Collapse" of the element. It would have been easy if an event such as BeforeCollapse or BeforeVisibilityChanged existed in the Xaml framework.
Thanks for your answer.
Yes it´s a pity that there are no events like BeforeCollapse or BeforeVisibilityChanged.
When i have some time, I will try to execute XAML Flair Animations within c# code.
At the moment I have no idea, but if something comes to mind I will let you know.
Hi, I´d like to know if it would also be possible to start an XAML-Flair Animation within C# Code ?
I´d like to have Visibility Animation, when Visibilty is set to "Collapsed" or "Hidden".
Maybe there is also a better way, but I have been thinking about implementing a VisibilityConverter that plays a FadeOut / Slide animation when Visibility != Visible. Here I would like to use a XAML-Flair animation. Is that possible?
Thank you in advance!
The text was updated successfully, but these errors were encountered: