Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>MvvmCross's MvxTouchViewController's is special...</p> <p>MvvmCross's MvxBindingTouchViewController is even more special...</p> <p>But these are only special in that they inherit from standard UIViewControllers (UIVIewController, UITableViewController, UITabBarController, etc) and then they add functionality for:</p> <ul> <li>ViewModel construction and the ViewModel property at the Cirrious.MvvmCross layer</li> <li>construction and storage of Bindings at the Cirrious.MvvmCross.Binding layer</li> </ul> <hr> <p>Take a look at some examples:</p> <ul> <li><p><a href="https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Touch/Views/MvxTouchViewController.cs" rel="nofollow noreferrer">https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Touch/Views/MvxTouchViewController.cs</a> and <a href="https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Binding.Touch/Views/MvxBindingTouchViewController.cs" rel="nofollow noreferrer">https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Binding.Touch/Views/MvxBindingTouchViewController.cs</a></p></li> <li><p><a href="https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Touch/Views/MvxTouchTableViewController.cs" rel="nofollow noreferrer">https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Touch/Views/MvxTouchTableViewController.cs</a> and <a href="https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Binding.Touch/Views/MvxBindingTouchTableViewController.cs" rel="nofollow noreferrer">https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Binding.Touch/Views/MvxBindingTouchTableViewController.cs</a></p></li> <li><p><a href="https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Touch/Views/MvxTouchCollectionViewController.cs" rel="nofollow noreferrer">https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Touch/Views/MvxTouchCollectionViewController.cs</a> and <a href="https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Binding.Touch/Views/MvxBindingTouchCollectionViewController.cs" rel="nofollow noreferrer">https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Binding.Touch/Views/MvxBindingTouchCollectionViewController.cs</a></p></li> </ul> <p>In these you can hopefully see this involves a fair amount of cut and paste of code - although we do try to minimise it using extension methods. (If C# had multiple inheritance or mixins, we wouldn't need to do that - I'd love to have Mixins... but don't want multiple inhertitance ever!)</p> <p>So.... if you want to add your own MvxXXXXXBindingViewController, then:</p> <ol> <li>take your base XXXXX class, </li> <li>inherit from it and add 'the stuff' to make an MvxXXXXViewController, </li> <li>then take your MvxXXXXXViewController and inherit from it again to make your MvxBindingXXXXXViewController </li> <li>publish to your blog and to a new GitHub repo so everyone else can piggyback off your hard work</li> <li>job done</li> </ol> <hr> <p>Advanced notes:</p> <ul> <li><p>If you want to see the same thing in Droid, see <a href="https://stackoverflow.com/questions/13201174/insert-a-monogame-view-inside-mvvmcross-monodroid-activity/13201800#13201800">Insert a Monogame view inside MvvmCross monodroid Activity</a></p></li> <li><p>The TabBarController is also interesting - it's got some additional methods</p></li> <li><p>At some point 'soon' (first half of this year) we will create VeeThree and this will switch the MvxViewController's to a non generic format - this is because MonoTouch now recommends against using Generics on iOS base classes - Rolf says it's safe most of the time, but when it causes bugs they are 'heisenbugs'.</p></li> <li><p>There is also some dead old-iOS code in the current classes (ViewDidUnload) - this code will be culled in VeeThree too.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload