Replies: 2 comments 2 replies
-
|
You can set custom animator on a setter directly Avalonia/samples/RenderDemo/Pages/CustomAnimatorPage.xaml Lines 15 to 17 in 67a223d |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I solved this for myself by adding property containers for each animation, it looks bad, maybe there is something else? Animation.RegisterCustomAnimator<ContainerGeometryAnimation1, CustomAnimation1>();
Animation.RegisterCustomAnimator<ContainerGeometryAnimation2, CustomAnimation2>();
public class ContainerGeometryAnimation1
{
public Geometry Data { get; set; }
}
public class ContainerGeometryAnimation2
{
public Geometry Data { get; set; }
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Something like this:
And axaml:
Beta Was this translation helpful? Give feedback.
All reactions