jsuarezruiz / Xamanimation

Xamarin Forms Animation Library
MIT License
458 stars 57 forks source link

AnimateProgressColor seems always black #28

Open kerberosargos opened 4 years ago

kerberosargos commented 4 years ago

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

fabiorme commented 3 years ago

Hi, I also have the same problem, the background always remains black, is there a solution to this problem? thank you

msivers commented 3 years ago

Hitting this same outcome?!... I follow the example and just get a black BoxView irrespective of colours defined and no animation?!