ViewModel LifeCycle, when does it get disposed?

There’s no easy universal way to know when to dispose the ViewModel – especially once you start mixing and matching ViewModel presentation styles to include navigations, tabs, splitviews, flyouts, fragments, lists, etc. and as you include more and more platforms As a result of this, a couple of ways I have shut things like timers … Read more

MVVMCross support for Xamarin.iOS Storyboards

There is at least one sample published showing the use of Storyboards – the rather oddly named eh – https://github.com/slodge/eh This sample worked by: letting the Storyboard control the navigation using MvxViewController as a VC base class (in place of UIViewController) manually setting the ViewModel in one case – by setting it directly before calling … Read more

MvvmCross Android – Alternative to RelativeSource binding for button command

See the second option in the answer in MVVMCross changing ViewModel within a MvxBindableListView – this covers one way to do this. Using that approach you’d expose a list of objects like: public class Wrapped { public ICommand GoThruCommand { get; set; } public ICommand OpenCommand { get; set; } public string Name { get; … Read more

MVVMCross changing ViewModel within a MvxBindableListView

Your analysis is definitely correct about where the click event is trying to bind. There are two approaches I generally take: Use ItemClick on the List Continuing using Click but do some redirection on the ViewModel side. So…1 The Main Menu in the tutorial has a ViewModel a bit like: public class MainMenuViewModel : MvxViewModel … Read more

In MvvmCross how do I do custom bind properties

There’s an example of adding a custom 2-way binding for “IsFavorite” in the Conference sample – see: the binding – https://github.com/slodge/MvvmCross/blob/master/Sample%20-%20CirriousConference/Cirrious.Conference.UI.Droid/Bindings/FavoritesButtonBinding.cs the binding setup in FillTargetFactories in https://github.com/slodge/MvvmCross/blob/master/Sample%20-%20CirriousConference/Cirrious.Conference.UI.Droid/Setup.cs This example is explained a bit further in: MVVMCross Bindings in Android For a one-way “source-to-target” custom binding, the code should be a bit simpler – you … Read more