Open SparkyTD opened 4 years ago
Same here: A AXAML opacity animation for an image works, but in code nothing happens after animation.RunAsync(image)
@Klaasgow if you have a sample to share and if you can tell us the Avalonia version you use, it may help us to tickle down the issue
I am trying to animate an Ellipse in a custom control. If I create the animation in XAML, it works, but if I try to recreate the same animation in c#, it has no effect.
This is the working XAML code:
And this is the not working C# code:
The
grid
variable is correctly set to the same grid object that holds the XAML style. The C# code is called inOnInitialized()
, but I have also tried calling it from the constructor afterAvaloniaXamlLoader.Load(this);
.Am I missing something?