Xamarin.Forms Search Bar

In each platform, there is a specially designed Search Bar control. It is simply a glorified entry field, but can be useful to match native designs. The search bar does nothing other than trigger a command when you press search, as well as provide a few visual enhancements. Here is a quick look at the […]

Read More >

Clone Object in C#

A quick tip on how to clone any object in your app. Sometimes you need a copy of an object, but don’t want to affect the original. You can either copy across all values to a new object manually, or even use AutoMapper. However, here I have a quick easy way to clone an object, […]

Read More >

In-Memory Caching in Xamarin

Caching in mobile apps is sometimes necessary, to help speed up your app from continuous requests for the same resources, or help alleviate issues due to poor network speed. Caching is a little more complex than just providing a store for values. You want to remove items from your cache when they expire and even […]

Read More >

Skixam: SkiaSharp as a Platform for Xamarin.Forms (Proof-of-concept)

With the recent conversation around Flutter, I decided to test out how things would work, if Xamarin.Forms ran on SkiaSharp, rather than using the platform APIs. I managed to create a proof of concept, of a Xamarin.Forms ContentPage, with one Label, showing on SkiaSharp. At the time of this post, this is all it can […]

Read More >

Implementing Stripe in Xamarin

If you want to take payments from your customers, via your Xamarin app, you can use a payment processor such as Stripe to accomplish this. However there are many hurdles to overcome, to ensure you develop a secure solution that adheres to the App Store’s rules, and ensure you either meet or don’t have to […]

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 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 >

Reactive Extensions And Exrin MVVM Framework In Xamarin.Forms

Please Note: Exrin is no longer actively developed. 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, […]

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 >

Passing Data on Navigation in Xamarin.Forms

A common issue in many Xamarin.Forms applications, is how to pass information from one page to another, during navigation. They are a few options, and how applicable they are, depend upon your app setup, and your specific use case. Constructor Arguments If you are manually handling all the navigation yourself, you will be using the […]

Read More >