James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Live, Love, Bike, and Code.


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

5 Tips to Properly Style Xamarin.Forms Apps

Xamarin.Forms’ default templates for applications are great! They give you everything you need to get up and running including all three of your app projects and your shared code project. Nothing is faster than this to get a cross-platform application spun up. One thing they don’t do by default is setup nice themes for your applications, in fact they simply use the default device themes, but we can do better. I wanted to take a quick second to share a few tips on making your Xamarin.Forms app b…

James Montemagno James Montemagno

New & Improved Xamarin.Android Templates for Visual Studio

It has been a bit over a year since I first introduced my Xamarin.Android Templates pack for Visual Studio [https://visualstudiogallery.msdn.microsoft.com/bee6442f-8f5a-4bba-8849-e380b61e76b0] and things sure have changed in the world of Android since then. Early on the templates pack only introduced a few item templates for menu items and a simple implementation of the Navigation Drawer, my favorite way to navigate in Android. [https://www.youtube.com/watch?v=Hw8tB45kse4]Then this March Google…

James Montemagno James Montemagno

Guide to Add Windows Phone to Xamarin.Forms 1.3+ Projects

I am a huge fan of Xamarin Studio and live inside of it around 50% of my development time. When I need to do library or Windows development though I head over to my good friend Visual Studio. Luckily the same exact project and solutions open in either IDE so it makes syncing with GitHub extremely easy. When I start up a Xamarin.Forms project I usually do it from Visual Studio so it spins up an iOS, Android, and Windows Phone Project. However, there are times that I am in XS, which doesn’t create…

James Montemagno James Montemagno

8 Weeks of Travel: Dev Days, Conferences, Podcasts, & More!

It has been a few busy months! For the last two months I have been in the air and on the road talking all about cross-platform mobile development with Xamarin, and it has been a blast! Our first leg of Xamarin Dev Days [http://www.xamarin.com/dev-days] is just about to wrap up and it has been an absolutely amazing experience meeting so many incredible developers. I can’t wait to do it all again very very soon :) Then comes the list of conferences! //Build, Ignite, Chicago Coder Conference, Dev…

James Montemagno James Montemagno

Xamarin.Forms Image Caching in XAML

A lot of mobile applications have to deal with Images. There are a lot of awesome libraries for iOS and Android that will automatically download, optimize, and cache your images for you from a single line or two of code. Xamarin.Forms actually handles all of this for you automatically when you give the Image’s Source property an Image URL. You can read through the awesome documentation on the Xamarin developer portal [http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/…

James Montemagno James Montemagno

Xamarin Studio: Obliterate Output Paths (bin/obj)

Recently, I have fallen in love with Xamarin Studio add-ins and in my last blog post I took a look at how to edit markdown files easily. I was at Google I/O last week with Jérémie Laval [https://twitter.com/jeremie_laval] and Jon Dick [https://twitter.com/redth] and he was working on binding the new awesome support libraries from Google and Jérémie and I saw Jon do something interesting…. Obliterate Output Paths from inside of Xamarin Studio’s context menus. Immediately, we wanted to know exa…

James Montemagno James Montemagno

Editing Markdown in Xamarin Studio

I can’t help myself I really love Xamarin Studio. Don’t get me wrong I still love Visual Studio for everything that it does, but with Xamarin Studio 5.9 [http://blog.xamarin.com/xamarin.studio-5.9-enhancements/] the best mobile focused IDE just keeps getting better. However, did you know that you don’t have to wait for new releases of Xamarin Studio to get new features? Xamarin Studio has an entire ecosystem of awesome plugins to extend the IDE and I just stumbled upon one that solves one of my…

James Montemagno James Montemagno