TAG: MvvmCross

Navigation

Presenters in MvvmCross: Using Presentation Values

As shown in my last post, a MvxViewModelRequest contains a dictionary named PresentationValues that can be very useful in passing around data that your presenter might find useful. Let's say you that in your view model you know that when you request to show a view model you know that you want to clear the app's back stack before showing it, such as after a login operation so that the login screen is no longer in…

Presenters in MvvmCross: A Primer

Use a custom presenter -- Me, at least once a week in #mvvmcross Having been involved in the MvvmCross community for several years now, often it feels like my most common response to questions in the #mvvmcross JabbR room from someone new to the framework is to look into using a custom presenter. Presenters are an important piece of the MvvmCross architecture, but that's not necessarily obvious when you're first getting into things. A long time…

Auto-Formatting Text Inputs with MvvmCross and Value Converters

Value converters are one of the powerful features you get with an MVVM framework, and can be a lot of fun to experiment with. In my app I have many different types of text entry, and wanted to have an easy way to do automatic formatting for things like phone numbers and credit card numbers. Value converters to the rescue! Achieving this behavior using value converters was actually quite trivial. Here’s an example of a…

NYC Code Camp 8: Mobile Apps

The next edition of the NYC Code Camp is coming up this weekend, and I have pushed out companion apps for iOS, Android, and Windows Phone that are all available now. I’m pretty pressed for time right now so I’ll keep this short and sweet. You can find the apps by searching the appropriate app store, or you can use these links: iOS Android Windows Phone If you’re interested, the source for all…

Returning Results From View Models in MvvmCross

I’ve been doing a lot of work with the MvvmCross framework lately, and so far have been really enjoying it. As I was building out my application, I found myself wanting some functionality along the lines of Android’s StartActivityForResult method, where the application would navigate to some screen that would return a result back to the calling screen. In iOS this kind of thing would normally be done with a modal view controller. Since…