Forum Xamarin.Forms

Fade in images in a page

PaoloLevaPaoloLeva USMember ✭✭

Hello, I would like images to be faded in when a page is loaded in Xamarin Forms. I know that there is a "simple animation" FadeTo function but i am not sure how to use it to make sure that the image is faded in right at loading of the page. i also saw several samples for how to fade in an image in response to an event (lika a click) but none where the fading is done right from the beginning.

Answers

  • KhosrouKhosrou Member ✭✭✭

    @PaoloLeva I have the same issue/question, did you solve it?

  • PaoloLevaPaoloLeva USMember ✭✭

    No, I haven't managed

  • JohnHardmanJohnHardman GBUniversity mod
    edited February 2019

    @PaoloLeva @Khosrou

    What have you tried?

    It should be possible to do it from an OnAppearing() override (but only do it the first time OnAppearing() is called), or even from a Task run from the page's constructor (just remember to use Device.BeginInvokeOnMainThread before starting the FadeTo).

Sign In or Register to comment.