Android : Using MvvmCross with a UIPageViewController

on Friday, October 10, 2014


Is it possible to use a UIPageViewController(iOS) with MvvmCross?


I have used both with Xamarin but I am now trying to use it with MvvmCross.


I basically get to the point where I need to set the UIPageViewControllerDataSource which requires me to override these methods:



public override UIViewController GetNextViewController(UIPageViewController pageViewController, UIViewController referenceViewController)
public override UIViewController GetPreviousViewController(UIPageViewController pageViewController, UIViewController referenceViewController)


both of which give me a UIViewController back rather than a MvxViewController.


I am very new to MvvmCross and might have missed something but I can see that there are other source classes like MvxSimpleTableViewSource for MvxTableViewController and I would image that there might be a MvxPageViewController with a MvxPageViewControllerDataSource?


Also I see that CheeseBaron has created a binding for the PagerAdapter in android here. So Im guessing it is not possible out of the box but I could if I created my own binding like CheeseBaron did?


Am I correct? or is there another way?


0 comments:

Post a Comment