Open
Description
I have a custom control that has animation, if I set IsEnabled = false, I won't see the animation, but I need it, I just blocked the control everywhere so that it couldn't be used at the moment, for example, when loading some data
How to reproduced:
<Button IsEnabled="False">
<Button.Template>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<lottie:LottieAnimationView Width="16" Height="16" Margin="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" AutoPlay="True"
ResourcePath="pack://application:,,,/Animations/loader.json" RepeatCount="-1"/>
</Grid>
</ControlTemplate>
</Button.Template>
</Button>
If you change property IsEnabled=True then the animation will become visible
That problem started in LottieSharp version 2.4.2-2.4.3, in to version 2.4.0 is OK
Metadata
Metadata
Assignees
Labels
No labels