MvvmCross 5.6

Announcing MvvmCross 5.6!

A new MvvmCross version is available on NuGet! You can always find the latest changelog in the root of the repository to see what has changed.

Much improved support for tvOS

This time we have improved our support for tvOS. We have a brand new ViewPresenter (MvxTvosViewPresenter) that uses the same attribute system that the other ViewPresenters. Please notice that this is a breaking change, so if you were using prior versions you will need to update some bits in your app.

The new ViewPresenter supports the following presentation modes:

  • Stack navigation
  • Tabs
  • SplitView (Master/Detail)
  • Modal
  • Modal navigation

If your app needs another kind of presentation mode, you can easily extend it!

Would you like to know more about this? You can start by reading the official documentation and then please try checking out at the Playground.TvOS sample to see it in action!

tvOS StarterPack Nuget Package

We will not be providing a nuget package in this release. To setup your tvOS application add the standard nuget packages to your project and setup your AppDelegate and Setup class like the sample on the Playground.

UWP: Suspension fixes

As part of the tombstoning fixing process, this time we are providing a fix for UWP for reloading ViewModels in OnSuspending. If you want to know specifically what has changed, take a look at this PR or look at Playground.UWP to see how it works.

macOS: ViewModel callbacks and segues

We have added lifecycle event callbacks for macOS Views and added support for segues in Storyboards. Some code improvements to prevent memory leaks were added as well.

Android: Fragment fixes

We have fixed an issue that caused fragments to be reloaded without ViewModels in certain conditions.

Xamarin.Forms: Fixes and Presentation hints

For Xamarin.Forms we’ve fixed a couple of issues around Master/Detail implementation and modals. But this release also comes with some small improvements as well.

We have added new default PresentationHints to make it easier for you to manage this situations:

  • Set the current page in a TabbedPage or CarouselPage that is already open.
  • Remove a Page from the stack. A
  • Pop a View from the stack.
  • Pop views to the root of the stack

Show me the code!

_navigationService.ChangePresentation(new MvxPagePresentationHint(typeof(Tab1ViewModel)));
_navigationService.ChangePresentation(new MvxRemovePresentationHint(typeof(Tab1ViewModel)));
_navigationService.ChangePresentation(new MvxPopPresentationHint(typeof(Tab1ViewModel)));
_navigationService.ChangePresentation(new MvxPopToRootPresentationHint());

iOS: Root change animations and MvxTableViewSource improvements

It is now possible to animate RootViewController changes! All you have to do is to give values to some MvxRootPresentationAttribute properties:

  • AnimationDuration: float
  • AnimationOptions: UIViewAnimationOptions

Other than that, MvxTableViewSource has been updated and it is now possible for you to update your ItemsSource collection from any thread.

ViewModels lifecycle: ViewDestroy improvement

This release comes with a minor change: IMvxViewModel.ViewDestroy now has a boolean parameter with a default value equals to true, which indicates whether the View is being fully killed or not.

public override void ViewDestroy(bool viewFinishing = true)

This change fixes navigation actions under certain conditions.


You can now subscribe to events on ChangePresentation in the MvxNavigationService: BeforeChangePresentation and AfterChangePresentation.

Change Log

5.6.2 (2017-12-11)

Full Changelog

5.6.1 (2017-12-11)

Full Changelog

Merged pull requests:

5.6.0 (2017-12-10)

Full Changelog

Fixed bugs:

  • MvxBottomSheetDialogFragment doesn’t forward View events to ViewModel #2431
  • override Close is not called when Mac Window is closed using x button #2199
  • UWP MvxSuspensionManager does not call ReloadState nor ReloadFromBundle after migration to mvvmcross 5.4 #2388
  • macOS: Add lifecycle events and presenter improvement #2432 (nmilcoff)
  • Fix MvxViewModelRequest for fragments and improve ViewDestroy callback #2420 (nmilcoff)

Closed issues:

  • Preserve.cs #2446
  • ShowNestedFragment throws exception when host fragment is not visible #2442
  • Fragments inside ViewPager are not restored #2403
  • MvxTableViewSource CollectionChangedOnCollectionChanged can be executed on a worker thread #2360
  • Change Event subscriptions in Target Bindings on iOS to Weak #2145
  • Forms: Can not assign MvxListView CachingStrategy in XAML #2341
  • Update tvOS presenters to the new iOS presenter #2108
  • UWP After upgrading to MvvmCross 5.0.3 exception is thrown in MvxSuspensionManager.SaveAsync() #1970

Merged pull requests:

  • Improve iOS bindings #2452 (willsb)
  • Add hint to set the current page in a parent page #2451 (martijn00)
  • added changes for tvOS #2450 (biozal)
  • Add event hooks to MvxNavigationService.ChangePresentation #2448 (nmilcoff)
  • tvOS Split View Presentation Support #2443 (biozal)
  • MvxTableViewSource.CollectionChangedOnCollectionChanged: Allow execution from a worker thread #2441 (nmilcoff)
  • Fix Playground.Droid tabs #2439 (nmilcoff)
  • Fixes #2431 MvxBottomSheetDialogFragment not forwarding events #2435 (tbalcom)
  • Adding reloading to existing view models #2434 (nickrandolph)
  • Fixing issue where icon disappears when navigating within master deta… #2429 (nickrandolph)
  • tvOS presentation update to match features in other platforms #2414 (biozal)

5.5.2 (2017-11-29)

Full Changelog

Fixed bugs:

  • MvxObservableCollection: “Add” and “AddRange” methods generates an event arguments with different structures. #2338
  • Fixes Bugs in UWP PresentationAttribute handling #2424 (strebbin)
  • Fixing missing icon on ios #2416 (nickrandolph)
  • Fixing issue with default page presentationattribute where viewmodelt… #2409 (nickrandolph)
  • Fixes MvxObservableCollection.AddRange firing wrong changed event #2407 (MKuckert)
  • Fixing double-navigation when navigation is hosted within master-detail #2406 (nickrandolph)

Merged pull requests:

5.5.1 (2017-11-29)

Full Changelog

Fixed bugs:

  • UWP Presentation Attributes not working correctly #2423
  • empty view(xaml page not loading) #2404

Closed issues:

  • BarBackgroundColor does not work in the UWP #2405