James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

iOS

Adding a Disclosure Indicator Accessory to Xamarin.Forms ViewCells

Xamarin.Forms has a super powerful ListView. You can easily add custom cells, pull to refresh, headers, footers, and even sections with just a few lines of code. A while ago I talked about how to easily group items [http://motzcod.es/post/94643411707/enhancing-xamarinforms-listview-with-grouping] to display section headers in the ListView. You get a great native styling of section headers with just a few simple lines of code. One thing I have noticed and has bothered me specifically with iOS is…

James Montemagno James Montemagno

iOS Tip: Force UIWebView to Display Mobile Sites on iPad

So this is actually a very odd tip with a very specific use case. When you embed a UIWebView into your application and feed it static content it will simply render what you tell it to. An issue may arise when you actually have to embed dynamic web content into your application. Hopefully this is a rare case and you are building native apps with Xamarin and C# [https://components.xamarin.com/view/xamarin.auth], but there is one specific case where you have to use a WebView…oAuth. Yes, oAuth! You…

James Montemagno James Montemagno

iOS Tip: Change Status Bar Icon & Text Colors

When iOS 7 was introduced Apple allowed your application to extend all the way up into the status bar region. This was neat because you can scroll content behind it, change the color, and make the entire screen feel completely full. One thing that has upset me is that it isn’t really straight forward as to how to change the color of the time, carrier, battery, and other icons that live in the status bar. So here is my quick tips. Launch Screen Colors In general you can just hide the status bar…

James Montemagno James Montemagno

Text To Speech Plugin for Xamarin and Windows

You may have noticed that I am on a big Plugins for Xamarin kick currently. I have always had my Settings Plugin [http://motzcod.es/post/102974754207/an-improved-cross-platform-settings-library-for] that I have updated over time, but then I blogged about creating plugins for Xamarin.Forms [http://blog.xamarin.com/creating-reusable-plugins-for-xamarin.forms/], released a Vibrate Plugin [https://github.com/jamesmontemagno/VibratePlugin], and then discussed exactly what a Plugin for Xamarin is [ht…

James Montemagno James Montemagno

An Improved Cross-Platform Settings Library for iOS, Android, and Windows

If you follow me at all on GitHub [http://www.github.com/jamesmontemagno] or Twitter [http://www.twitter.com/jamesmontemagno] than you probably know that I love portable class libraries. I know this might sound odd, but I also love settings inside of mobile applications. NSUserDefault, SharedPreferences, IsolatedStorage… yup I love it. A few years back when I was doing a lot of MVVMCross development I created Mvx.Plugins.Settings to enable developers to save settings and preferences extremely e…

James Montemagno James Montemagno

Extending Xamarin.Forms Monkeys App with XAML and Images

Last week I posted an introduction to Xamarin.Forms article [http://blog.xamarin.com/meet-xamarin.forms-3-native-uis-1-shared-code-base/] on the Xamarin blog. I went over a simple master/detail flow with a list of monkeys that data bound to a ListView, and then navigate to a detail view displaying more information about the monkey when selected. It was a pretty simple implementation and I wanted to dive deeper into adding functionality. XAML Please! While the blog post got a great response, I…

James Montemagno James Montemagno

Pull To Refresh for Xamarin.Forms iOS

Update Xamarin.Forms now includes Pull To Refesh out of the box. Please read my article on it. If you have read my blog then you know that I love pull to refresh functionality in all of my apps. Your users are expecting this functionality in all of their apps and I believe that it should be drop dead simple to bing pull to refresh to an MVVM style of development. Xamarin.Forms shines in a lot of areas and the team has made it really easy to extend the built in controls or add brand new contr…

James Montemagno James Montemagno

Shared Code Projects in VS: Windows Phone, Windows Store, and Xamarin!

At Build, Microsoft announced Shared Code Projects to simplify how developers are sharing code between platforms. We have had official portable class library support for Xamarin apps since late last year and it has been wonderful, however once you mix WP8 into the mix the PCL profiles get a bit limited. Shared Code Projects attempt to fix this by allowing you to create a project that are a shell for code that can be added into any project. It is basically glorified file linking with a nice UI to…

James Montemagno James Montemagno