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 >

Reducing App File Size In Xamarin.Forms

The smaller your app file size the quicker end users can download it from the App Store. This may not seem like an issue, when your mobile is connected to WiFi, with a fast internet connection, but can be a concern if users typically download your app when on the move. Users may not download […]

Read More >

Improving Xamarin.Forms Startup Performance

This is a common issue for many Xamarin.Forms developers, and it is a particular issue with Android. In this post, I will be going through how to boost the startup performance of your Xamarin.Forms on an Android app. I will be comparing this to a native Xamarin.Android app, doing a cold boot, with no other […]

Read More >

Creating The Instagram UI In Xamarin.Forms

Xamarin.Forms continues to be dragged down by old viewpoints, that it is unfit for popular, polished, and/or large scale applications. And that it could not possibly compare to a native implementation. Xamarin.Forms apps are native applications, and have the full capabilities of one, the only difference is that you may need to implement CustomRenderers or […]

Read More >

Get Element Properties In UITest In Xamarin

When doing UI Automation with Xamarin UITest, you can easily find elements, tap on them and get their basic values, such as Size, and Text. If we want to find out more information on an element, we need to invoke the platform specific property or method on the element we are referencing. Invoking A Native […]

Read More >

Using The Linker In Xamarin Projects

Xamarin Linker is used in iOS and Android projects, to remove unused code from compiled assemblies. This helps reduce the final size of the apk or ipa. However, it is often too aggressive, and starts stripping away methods and fields you are using. This is common, if methods are only referenced by reflection. Linker Options […]

Read More >

Reactive Extensions And Exrin MVVM Framework In Xamarin.Forms

Reactive Extensions (Rx) are powerful extensions, that allow you to use LINQ to compose asynchronous and event based code. Simply put, that means you can configure code to act on events, very easily. ReactiveUI is an MVVM framework that uses Reactive Extensions. Looking at the source code, it does appear to me a grouping of […]

Read More >

Xamarin.Forms Async Task On Startup

When you start up your Xamarin.Forms application, the constructor in your App.xaml.cs will be run, before your application is shown on screen. As you are well aware, constructors currently don’t have the ability to await async methods. They are a number of ways to solve this, depending upon your exact situation. Not Dependent Upon Result […]

Read More >

Feature Grouping Code

There are many ways you can structure your application in terms of projects, however something I usually don’t discuss, but is quite handy, is grouping code via Feature, instead of Function. This method has been around for a long while, and I am not the first to use this, but I want to highlight this […]

Read More >