UISleuth – Visually Inspect Your Xamarin Forms Application

UISleuth is a UI (or Visual) inspector for your Xamarin Forms application at runtime. It allows you to see in realtime, the UI of your Xamarin Forms application, dive deep into its properties and change them in real time. As of the time of this post, it only support Android on Windows in Visual Studio. Install […]

Read More >

Xamarin Forms Dependency Injection

Calling native platform code in your portable class library (PCL) is achievable via Dependency Injection. It’s a common question for people starting out, who are using a PCL or .NET Standard Library for developing their Xamarin apps. Dependency Injection involves creating an interface that can be commonly applied across all native platforms, then coding the […]

Read More >

Xamarin Forms User Control

Xamarin Forms doesn’t have a control called a User Control, similar to what you might be familar with in WPF. However we can make any VisualElement, or combination of VisualElement’s into a reusable control, to use on different pages, just like a User Control. Create Control Create a new ContentView. Going into the XAML, while […]

Read More >

Xamarin Background Tasks

Background Tasks are a way to run a task, in the background, outside the lifecycle of your mobile app. This is different than running in a background thread, in some cases, it is running in a completely different process. Background tasks enable you to run code at specific intervals, or have tasks continue to run, even if […]

Read More >

Xamarin Forms Timer

A timer will execute a piece of code on a timed interval. In Xamarin, each platform has its own native timer, and the Xamarin Forms timer translates to this. There is no System.Threading.Timer in the more common profile 259 or 111 based PCL’s, however if you use .NET Standard, you will have access to System.Threading.Timer. […]

Read More >

Xamarin Forms ListView Grouping

The ListView control is the go to control for displaying a list of data in Xamarin Forms. It contains a number of features, one of which allows the grouping of data. This allows you to separate a list with headings. You get to style the headings however you want, just as you would with each […]

Read More >

Patterns for Referencing Dependencies in Cross Platform Development

There are many ways to obtain a reference to a dependency in programming. You may have heard of patterns called Service Locator, Constructor Injection, Static Instances or even PubSub. All of these are valid patterns and have their uses, but there are also many incorrect ways to use them. Service Locator Service Locator is a […]

Read More >

Visual Studio 2017, .NET Standard and Xamarin

Visual Studio 2017 will change the way we work with .NET Standard. If you have .NET Standard projects now, you will have seen the project.json file. Project.json is now dead and buried, and everything has moved back into the csproj file. This also means no more .xproj file. Upgrading from Visual Studio 2015 If you […]

Read More >

Entity Framework Core with Xamarin Forms

The day is soon approaching where we will be able to use Entity Framework, with SQLite, on all platforms, with Xamarin Forms. Currently, EF Core works on Xamarin Forms, but only with UWP and Android, not iOS. Its an odd thing for iOS to be last on the list of support, but a current Mono implementation […]

Read More >

Xamarin Forms Toolbar

The Xamarin Forms Toolbar is an abstraction of the extensions you can add to the NavigationBar on each platform. ToolbarItems are the individual items you add to the NavigationBar. The difficult part with this abstraction, is the need for it to be separate or included in the navigation bar. In this post, I will go through how […]

Read More >