How to Implement Clickable Image Button to execute ICommand?

MikeDennisMikeDennis ✭✭USMember ✭✭
edited January 2016 in Xamarin.Forms

Totally new to Xamarin and in learning phase. Here is my basic question

I have a button which has an ICommand which executes certain step of instructions on my VM class, currently looking to change the button to and Image which acts like button. -Note: The .xaml page is in PCL project

Also help me in loading images to the page which is in PCL project and will the image be resized on all the sizes dynamically based on the screensize?

Any Working samples or suggestions?

Thanks in Advance

Best Answer

Answers

  • AlessandroCaliaroAlessandroCaliaro ✭✭✭✭✭ ITMember ✭✭✭✭✭

    In XF exists tapgesture that can help you

  • MikeDennisMikeDennis ✭✭ USMember ✭✭

    @AlessandroCaliaro Thanks for your suggestion, will the image be resized on all the sizes dynamically based on the screensize?

  • AlessandroCaliaroAlessandroCaliaro ✭✭✭✭✭ ITMember ✭✭✭✭✭

    You have to take a look to image properties like horizontal layout and vertical layout. There is also a scale property that can help you.

  • MikeDennisMikeDennis ✭✭ USMember ✭✭

    ok thanks

Sign In or Register to comment.