Trigger PropertyChanged of indexed property in Xamarin Forms

Xamarin Forms supports binding to indexed properties. But do you know how to trigger a PropertyChanged event on such a property so that the binding engine gets the updated value? Binding to indexed properties Binding to an indexed property in Xamarin Forms is simple. Imagine my ViewModel has an indexed property:

I can simply bind… Read More »

Getting rid of whitespaces between Runs in a TextBlock

The problem When we use Runs in a TextBlock in XAML, we can get these annoying whitespaces between the Runs in our application. For example, this XAML…

… produces this in our App…   You see these whitespaces in between? I know you do! If you look at the Visual Tree, you’ll see that… Read More »

How to catch multiple types of exceptions in one catch block

Catch ’em all Last week a colleague asked: what’s the best way to catch different types of exceptions that need to be handled in the same way? He saw a couple of options himself, for example:

Or an other proposal:

Exception Filters While both of these options work, since C# 6 there is an… Read More »

Category: C#