How Xamarin.Android AOT Works

AOT stands for Ahead of Time compilation, and compiles your code, to the native platform, dependent upon the architecture. The reason you would use AOT, is because it has a drastically reduces startup time, and app performance. You can see some results from Improving Xamarin.Forms Startup Performance. The down side is you also get drastically larger […]

Read More >

IoC Container Performance

Most Xamarin.Forms applications, will use Dependency Injection, and hence an IoC (Inversion of Control) container. In this post, we will be looking at the performance of these frameworks, in 3 scenarios. Registering types into the container Resolving a simple type Resolving a type, with dependency injection, through the constructor. Types These are the types and […]

Read More >

5 Common Pitfalls In Enterprise Mobile Development

As a Xamarin.Forms mobile developer, I’ve done many apps in an enterprise environment, consumer facing and internal. There are many pitfalls when developing for mobile, and these aren’t specific to Xamarin, but contain a few Xamarin examples. Here are my stories. I learnt most of these the hard way. 1. Not Abstracting Enough Abstraction allows […]

Read More >

Merged Dictionaries In Xamarin.Forms

Placing styles and other resources in your ResourceDictionary is a great way to reuse these elements through your page or application. However, up until now, you could only merge with one external resource dictionary, using MergedWith. With MergedDictionaries, you can now separate out your styles into multiple files, and merge them as desired on each page. […]

Read More >

Charting in Xamarin.Forms

There are no charting controls in the Xamarin.Forms library, and it is unlikely there will ever be. This functionality is left for 3rd party libraries, and there are quite a few options out there. As Xamarin.Forms continues to expand into different platforms, it is going to be hard to find a charting library for all […]

Read More >

Enterprise Xamarin.Forms Video Course

There are many great Xamarin resources out there, however, many lack the real world guidance on how everything fits together and when you should use certain tools or techniques. Enterprise Xamarin.Forms Video Course, is taking my knowledge of ~9,000hrs of full time Xamarin.Forms development, from solo, to large teams, on how to develop an application […]

Read More >

Upgrade PCL to .NET Standard Class Library

I am going to show you the quickest way to do the upgrade, from an existing PCL, to a .NET Standard Class library, in Visual Studio 2017. Please note this will not work in VS 2015. Many of my previous posts don’t make it too clear on how to do this, due to the constantly […]

Read More >

Xamarin.Forms Maps

Xamarin.Forms Maps, allows you to display a map inside your Xamarin.Forms application. You can see a map of your current location, place pins on the map, and also provide a route between two locations. I have a sample repo at XamarinMaps, if you want to see a complete solution. Setup To setup your projects, first […]

Read More >

Google Maps API Key For Xamarin.Android App

If you want to use Google Maps in your Xamarin.Android app, you will need to obtain an API key. It’s easy to generate an API Key, but we will also want to restrict it’s usage, so that only your app can use it. This alleviates the security concern of placing the API Key in your […]

Read More >

Xamarin.Forms OnPlatform And RuntimePlatform

To display a different element, or set a property to a different value, depending upon which platform you are on, you use the OnPlatform, or TargetPlatform enum. You would use this, as sometimes elements just don’t work well across two or more platforms. But you can easily do this in XAML or C# (code behind). […]

Read More >