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

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 >

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 >

MultiSelect ListView in Xamarin.Forms

In a regular Xamarin.Forms ListView, you have the option to select one row at a time, but not multiple at a time. The ListView control itself, is not capable of this, hence we need to determine which rows have been selected, manually. There are two way to accomplish this. We can listen for the ItemSelected […]

Read More >

MasterDetailPage Navigation Menu in Xamarin.Forms

One of the most common forms of navigation in an Xamarin.Forms application, is by the MasterDetailPage. This also may be referred to as the Flyout Menu, SlideOut Menu or Navigation Drawer. A hidden panel is kept out to the side of the screen and then via a button tap, or a right swipe, it will appear. […]

Read More >

Is Xamarin.Forms Making Traditional Xamarin Obsolete?

There is no denying that Xamarin.Forms, has gained incredible popularity over the last few years. You only need to look to at the Forums, blog posts or most newly started projects to see Xamarin.Forms is preferred. It’s had a rough start, and unfortunately, that rough start has left a stain on earlier developers’ perception of Xamarin.Forms, […]

Read More >

Use Camera To Take Photo In Xamarin Forms

To take a picture in Xamarin Forms, you need to use the native platform’s API’s to access the camera. There is nothing built in to Xamarin Forms to handle this, but they are plugins, that make this process incredibly easy. This post, will use the Media Plugin for Xamarin and Windows. Project Setup Install the plugin, in […]

Read More >

Xamarin Forms FastRenderers for Android

Included from 2.3.5, FastRenderers are several new renderers for Android, that speed up the rendering of certain elements. There are currently 4 FastRenderers in 2.3.5. These include ButtonRenderer, FrameRenderer, LabelRenderer and ImageRenderer. They are enabled by default, however the old renderers still exist, to ensure backwards compatibility. This has now changed for 2.4.0, and you need to […]

Read More >