MvvmCross remove back stack windows app


How can I clear the back stack in windows apps (not windows phone)?<br /> I am using MvvmCross v3. Where is the most correct place to put it?

I have read this post <a href="http://edsnider.net/2014/04/07/clearing-windows-phone-nav-back-stack-in-mvvmcross/" rel="nofollow">http://edsnider.net/2014/04/07/clearing-windows-phone-nav-back-stack-in-mvvmcross/</a> where he is using <strong><em>CustomWP8ViewPresenter</em></strong>

public override void ChangePresentation(MvxPresentationHint hint) { if (hint is ClearNavBackStackHint) { while (RootFrame.BackStack.Any()) { RootFrame.RemoveBackEntry(); } } base.ChangePresentation(hint); }

My problem is that in windows app I do not have <em>RootFrame.RemoveBackEntry()</em> as an option.

Any ideas?


Your IMvxWindowsFrame mentioned in comments is just simple wrapper around Windows.UI.Xaml.Controls.Frame instance. You can get this wrapped instance by calling:

_rootFrame = (Frame) rootFrame.UnderlyingControl;

Then you can delete your backstack like this:

if (hint is ClearNavBackStackHint) { if (_rootFrame.BackStackDepth > 0) { _rootFrame.BackStack.RemoveAt(_rootFrame.BackStack.Count - 1); } }


  • MvvmCross: How do I use the MvxTableViewController with a nibname?
  • Has MvxCachingFragmentCompatActivity disappeared?
  • MvvmCross for WPF and Xamarin.Mac: is it possible?
  • stacking swf files on top of each other
  • jQuery hover, mouseenter, mouseleave state (opacity animate)
  • Is it possible to manage the top navigation bar using SharePoint web services?
  • Android EditText change focus after validation and showing the error in a Dialog
  • how to use the same method of jquery scrollTop with css3
  • Joomla How to customize main menu
  • Property 'x' is private and only accessible within class 'y'
  • Bootstrap dropdown menu not working
  • Android view states: pressed, activated, selected etc. bindings. Do I have to write custom bindings?
  • Jquery toggle for two methods open and close push menu
  • Why isn't my mobile website auto-resizing for mobile devices?
  • Horizontal Menu Displays Incorrect on Widescreen Monitor
  • PHP not converting JSON using 'json_decode()'
  • Check if a UITableViewCell is completely visible
  • Dropdown menu items hides behind main menu in bootstrap customized navigation bar
  • Bootstrap ScrollSpy skips section when no more scrollable area
  • TabBarController: Orienting views in different orientations
  • Yii2 disable highlighting menu item
  • UWP navigation (Template10), Pivot control, multiple frames
  • Making mono cross platform support for Task/Intent
  • Declaration of does not work with Ionic's ion-nav-view in IBM MobileFirst
  • Clear fused location provider's location for testing
  • GridView breaks while scrolling
  • NHibernate Validation Localization with S#arp Architecture
  • how to do an event when i swipe from fragment to the other
  • Update CALayer sublayers immediately
  • JFileChooser in front of fullscreen Swing application
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • Get object from AWS S3 as a stream
  • Cross-Platform Protobuf Serialization
  • Validaiting emails with Net.Mail MailAddress
  • Do I've to free mysql result after storing it?
  • Cannot Parse HTML Data Using Android / JSOUP
  • JTable with a ScrollPane misbehaving
  • unknown Exception android
  • failed to connect to specific WiFi in android programmatically
  • How can I use threading to 'tick' a timer to be accessed by other threads?