8000 Not visible animation when control is disable · Issue #76 · quicoli/LottieSharp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Not visible animation when control is disable #76
Open
@PavelNavitski1988

Description

@PavelNavitski1988

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0