Skip to content

AnimateProgressColor seems always black #28

@kerberosargos

Description

@kerberosargos

Hello firstly thank you for your great plugin. The following codes are not working properly. xHeader's backgroud always seems black.

 <ContentView
            x:Name="xHeader"
            Grid.Row="0"
            BackgroundColor="Green"
            HeightRequest="90"
            IsClippedToBounds="True"
            VerticalOptions="StartAndExpand">

<xamanimation:AnimateProgressColor
                    Maximum="200"
                    Minimum="0"
                    Progress="{Binding ScrollY, Source={x:Reference ScrollBehavior}}"
                    TargetProperty="VisualElement.BackgroundColor"
                    From="Yellow"
                    To="Green" />

</ContentView>
 <ScrollView
            Margin="0"
            CascadeInputTransparent="False"
            HorizontalOptions="Fill"
            HorizontalScrollBarVisibility="Never"
            InputTransparent="False"
            IsEnabled="True"
            VerticalOptions="FillAndExpand"
            VerticalScrollBarVisibility="Never">

            <VisualElement.Behaviors>
                <xamanimation:ScrollViewScrollBehavior x:Name="ScrollBehavior" />
            </VisualElement.Behaviors>
</ScrollView>

Thank you in advance

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