Forum Xamarin.Forms

How to get relative offset after translation ?

RedRaRedRa Member ✭✭✭

Hi all,

I have been working on some animation and faced with the issue how to get relative offset after translation ?
I do the following translation:

await ComplexButton.MoveHorizontalAnimation(totalX, 250);

And after few steps I what to know the offset at which button located ?

Best Answer

  • RedRaRedRa Member ✭✭✭
    edited March 2020 Accepted Answer

    Hi all,

    I have found the answer !!
    There is exists TranslationX property and to get relative translation just call it like this:

    var complexButtonX = ComplexButton.TranslationX;
    

Answers

  • RedRaRedRa Member ✭✭✭
    edited March 2020 Accepted Answer

    Hi all,

    I have found the answer !!
    There is exists TranslationX property and to get relative translation just call it like this:

    var complexButtonX = ComplexButton.TranslationX;
    
Sign In or Register to comment.