Category Archives: XAML

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 »

UWP Simple PDF viewer

Some months ago, I blogged about how to display PDF files in your UWP app: Displaying PDF files in a UWP app When I look at the stats of my blog, I notice that that particular blogpost gets a lot of visitors. Also, I regularly get mails from people having questions about displaying PDF files in a UWP… Read More »

Displaying PDF files in a UWP app

In this short blogpost I want to show you how I’ve used the Windows.Data.Pdf.PdfDocument class in order to render a PDF file inside my UWP app. In order to open a PDF from a UWP app, you can ofcourse, always use Windows.System.Launcher.LaunchUriAsync like this:

This works great, but your file is being opened in… Read More »

Custom UWP Control: Step-Through ListView

Designers tend to come up ‘crazy’ (not standard!) ideas about the looks and the behavior of UI elements. Especially when you are building a UWP app and those designers have no experience in this platform (no offence). A short time ago we received a design that somewhat looked like this: After some discussions with the design… Read More »

Disable gestures on Pivot control

One last blogpost to end 2015 with… Intro For this small project I’m working on in my spare time, I wanted to use a Pivot control but without the gestures; i.e. swipe/pan/flick to go to the next or previous item in the Pivot. Easier said than done I searched the interwebs, but I didn’t find… Read More »