AlohaKit.Animations icon indicating copy to clipboard operation
AlohaKit.Animations copied to clipboard

Speed of animation

Open waleedelsolia opened this issue 2 years ago • 1 comments

how can i control speed of the animation

waleedelsolia avatar Mar 20 '23 19:03 waleedelsolia

C# code:

async void OnButtonSearchClicked(object sender, EventArgs args)
{
    // Instantiate animation object
    BounceInAnimation animation = new BounceInAnimation();
    // Set duration as string
    animation.Duration = "100";
    // Bind the animation to the element
    await btnSearch.Animate(animation);
}

The xaml:

 <Button 
                Text="Search"
                x:Name="btnSearch"
                Clicked="OnButtonSearchClicked" />

ffreskinaColdline avatar Apr 26 '23 12:04 ffreskinaColdline