.NET Maui!!!

Check out this lineup of guests

What can I say… an hour of amazing Maui goodness, including:

  • What is Maui?
  • When is Maui?
  • How does it affect Xamarin.Forms?

Posted in Maui, Xamarin.Forms | Tagged | Comments Off on .NET Maui!!!

MonkeyCache step by step

The amazing James Montemagno of Xamarin/Microsoft has done it again. He has created an incredibly simple cache, named MonkeyCache, that you can get up and running very quickly.

In this post I will walk through setting up and using the cache, step by step.

Continue reading
Posted in Essentials | Tagged , | Comments Off on MonkeyCache step by step

DataTemplateSelector

Suppose you have a collection of items and you want to display them in a ListView (Xamarin.Forms). The catch is that you want to change the display of each item depending on its state or some other code-based attributes.

At first glance this would seem very difficult, and you’d have to modify the instances in the collection to do so. This is where the DataTemplateSelector comes in.

In short, you create two or more data templates — one for each way you might want to display one of the items in your collection — and then you tell Xamarin.Forms, by way of the DataTemplateSelector, which data template to use.

Continue reading
Posted in Essentials, Xamarin.Forms | Comments Off on DataTemplateSelector

Jon Galloway: VS Mac & More

Jon Galloway. Friend of the show, PM on Visual Studio Mac, amazing guy.

Links:https://visualstudio.microsoft.com/vs/mac/
https://dotnet.microsoft.com/platform/community/standup
https://twitch.tv/jongalloway
https://github.com/SteveSandersonMS/CarChecker

Posted in Mac, Visual Studio, Xamarin.Forms | Tagged | Comments Off on Jon Galloway: VS Mac & More

C# 9 Part 3 – Patterns

Jared Parsons – lead of the C# Compiler Team at Microsoft

Posted in C#, Essentials | Tagged | Comments Off on C# 9 Part 3 – Patterns

C# 9 – Part 2

Jared Parsons – lead of the C# Compiler Team at Microsoft

Posted in C# | Tagged | Comments Off on C# 9 – Part 2

An Alert From the ViewModel

Quite often we want to send an alert from the view model, but you can only do so from the view. We’ve tackled this problem in the past but we think there is room for a simplified and clear step by step explanation.

Continue reading
Posted in Essentials | Tagged , | Comments Off on An Alert From the ViewModel

Code Snippet – By request

Code Snippets can save you from repetitive (boring) tasks. Visual Studio comes with a great many code snippets, perhaps the most often used is ctor which creates an empty constructor.

You can also create your own. Here is one I use a lot. It creates something that looks like this:

Continue reading
Posted in Essentials | Tagged | Comments Off on Code Snippet – By request

Latest Video: Xamarin.Forms

Proud to announce my newest video course: Hands On Xamarin.Forms. Learn Xamarin in 2.5 hours.

Posted in Xamarin, Xamarin.Forms | Tagged , | Comments Off on Latest Video: Xamarin.Forms

What’s Coming in C# 9 Part 1

Jared Parsons – lead of the C# Compiler Team at Microsoft

Posted in C# | Tagged | Comments Off on What’s Coming in C# 9 Part 1

Picker within Listview

We needed to put a picker inside a list view in a Xamarin.Forms app, but we wanted to be notified when one of the pickers changed and be able to get the value from the picker (and know which one changed).

The complete source for this example is on GitHub.

My first impulse was to use EventToCommand, but that became a rabbit hole, and thanks to Lance and others on the Xamarin Community Forums, and email, I was redirected to a simpler approach that I will explain here.

We begin with a DataTemplate that we will use with our ListView.

Continue reading
Posted in Essentials, Xamarin | Tagged , | Comments Off on Picker within Listview

Open a dialog from VM using Events

This is a quick summary of how I open a dialog box from the view model. There are other ways to do this (as noted in previous postings), but this is easy, easy to maintain and puts most of the logic in the view model.

Continue reading
Posted in .NET Core, C# 8 | Tagged | Comments Off on Open a dialog from VM using Events