Adam Pedley

About Adam Pedley

Microsoft MVP | Xamarin MVP | Xamarin Certified Developer | Exrin MVVM Framework | Xamarin Forms Developer | Melbourne, Australia

Xamarin Forms Binding

Binding, in the most common context, is the process of mapping a property on a Page, to a property in a ViewModel. In Xamarin Forms terms, the Page is a BindableObject and the BindableObject has a BindingContext, which would be the ViewModel. Most UI Elements on the Page, will also be a BindableObject, inheriting their […]

Read More >

Connecting To A Remote Database in Xamarin Forms

A common question, especially for those new to Xamarin, who may be coming from a web background, is how do I connect to a remote database from my mobile app? Working with a client application is different than a server based application, as you don’t have direct access to any server based resources, such as […]

Read More >

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 >