I have the following list of item in my viewmodel. I am showing one item at a time in the View. Lets say first item which is A. But When user swipes to right or left, I want View to refresh and show the next item, for example B.
I wonder how swipe right or left achievable to iterate through the list item using mvvmcross? Even to know direction of swipe would be more than enough.
I am looking at the following url to learn MvxGestureRecognizerBehavior but it is broken
public RViewModel()
{
Items = new ObservableCollection<ListItem> {
new ListItem { Title = "A" },
new ListItem { Title = "B" },
new ListItem { Title = "C" },
new ListItem { Title = "D" },
new ListItem { Title = "E" }
};
}
Note: Please keep in mind, I could able to use viewpager but since I am loading the similar content (just TextView) in the View, I do not want to create multiple fragments to iterate through each item. Therefore, I only want to refresh that TextView / View with left/right swipe action.