Swap Image

Easily swap images with only one tag without reload contentpage




About Current Version 1.6



- It is necessary to change the import tag in xaml to "clr-namespace:LaavorRatingSwap;assembly=RatingAndSwap" and Using Laavor; to Using LaavorRatingSwap; in .cs file, making it possible to integrate with other Laavor packages.

- Event OnSelect can now be added with '+=' in Code Behind.

Example



Tag:
<lv:SwapImageSimple FirstImage="paperWhite.png" SecondImage="paperBlack.png" ImageHeight="40" ImageWidth="40" BlockSwap="True" OnSelect="SwapImageSimple_OnSelect" />

File .cs event:
private void SwapImageSimple_OnSelect(object sender, EventArgs e)
{
   SwapImageSimple swap = (SwapImageSimple)sender;
   //swap.FirstIsSelected;
}


The images are inside android project Resources/drawable.
Download

Documentation



Available in pdf

Documentation download