James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


Twitter


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”. It is now available in the Xamarin.Android Support v4 Component so we should probably take advantage of it! This is actually a really slick Layout that you can make the parent of any 1 layout and when the user swipes down on it you will get notified that you are supposed to refresh the content. This…

James MontemagnoJames 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 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 inherits from MvxEventSourceActivity you will need to re-implement these classes. Usually this would be frowned upon as the framework is alw…

James MontemagnoJames 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. However I have always found myself writing the same code over and over again for custom data source. With MvvmCross we should all be about the code re-use. So I broke it down into this: A simple IRemove.cs in…

James MontemagnoJames 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 dif…

James MontemagnoJames 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. 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 can even set a custom string and sty…

James MontemagnoJames 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 already that you can grab and install. If you are using Xamarin Studio you have a pretty great option as well with THIS Addin Our team here at Ceton does a bit of cross development on both Mac and on Visual Studio. If you are doing WP or Windows Stor…

James MontemagnoJames Montemagno