James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Mvvmcross

Xamarin.Android SwipeRefreshLayout for #MvvmCross

I was very excited to see that the latest version of Support v4 for Android was updated to include as most people would says it a “Pull to Refresh”… or as Google would call it a “SwipeRefreshLayout [http://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html] ”. It is now available in the Xamarin.Android Support v4 Component [https://components.xamarin.com/view/xamandroidsupportv4-18] so we should probably take advantage of it! This is actually a really slick Layout…

James Montemagno James Montemagno

MvvmCross + ActionBarCompat (v7 Support)

If you are using MvvmCross (if you aren’t you should) then you might notice that there is no official MvxActionBarActivity to use. This is sad because if you are using the new Support v7 Library [https://components.xamarin.com/view/xamandroidsupportv7appcompat] then this will be a must. I am sure Stuart is going to add this or create a NuGet for it, but you can do it today by creating 2 new classes. Since MvxActivity [https://github.com/MvvmCross/MvvmCross/blob/162a816d148df224df0b8f635aeafe3…

James Montemagno James Montemagno

Simple re-usable Swipe To Delete Xamarin.iOS + MvvmCross

I was recently implementing some swipe to delete and edit mode in my Xamarin.iOS/MvvmCross applications. It is very common that you will have a custom TableViewDataSource that will implement and override some methods to handle this for you. It is very well documented on the Xamarin website [http://docs.xamarin.com/guides/ios/user_interface/tables/part_4_-_editing]. However I have always found myself writing the same code over and over again for custom data source. With MvvmCross we should all be…

James Montemagno James Montemagno

Effective Navigation in Xamarin.Android: Part 1 - Navigation Drawer

When designing your app you have probably wondered about what type of navigation is the best to use. Dashboards, navigation lists, spinner drop downs, tabs, and fly out menus are all still prevalent and valid choices, however, Google has recently made a huge push to use their new standard Navigation Drawer control. So what is a Navigation Drawer? Similar to a flyout menu made famous by Facebook, the Navigation Drawer is designed to be swiped out from the left side of you application. The main…

James Montemagno James Montemagno

MvxUIRefreshControl for #MvvmCross

Implementing MvxTableViews and MvxCollectionViews are extremely simple. From binding to accessory or cell clicks, to implementing advanced logic for custom cells they just plain work in MvvmCross [http://mvvmcross.wordpress.com/]. However, today I ran into one issue that needed to be solved, an Mvx binding for UIRefreshControl. <br./></br.> In iOS6+ land adding pull to refresh is EXTREMELY simple. You can read all about it, but basically you need to just implement 1 method and you c…

James Montemagno James Montemagno

NuGets Everywhere! VS or XS!

Alright so a quick follow up to that huge blog I just wrote about PCLs. So PCLs are great for your core, but are also great because you can share PCLs with people and they will work everywhere. On Visual Studio there is a great Nuget Package Manager [http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c] already that you can grab and install. If you are using Xamarin Studio you have a pretty great option as well with THIS Addin [https://github.com/mrward/monodevelop…

James Montemagno James Montemagno