PIE EATING NINJAS / DEVELOPER NOTES
Notes from the workbench.
Developer notes on .NET, C#, .NET MAUI, Azure, and AI.
Out with WordPress, in with Astro
I moved my blog from WordPress to Astro and GitHub Pages. Here is how I migrated the posts and comments, kept the old URLs, and used Copilot along the way.
Qwen3.5 in .NET MEAI Hangs Forever And How OllamaSharp Fixes It in One Line
If your Microsoft.Extensions.AI.OllamaChatClient call to qwen3.5 never returns, this post is for you. The culprit is Qwen3.5's built-in thinking mode and the fix is switching to a
Fix Maui Android "Doesn't support required ABI" issue
I bumped into an issue and I had to look around a bit to find the solution. Hopefully, with this post I can help others (who, just like me, don't read Release Note thoroughly enoug
Cross-Platform App Development is Dead, Long Live Cross-Platform App Development!
Yesterday marked a bitter sweet moment in the world of mobile development: Xamarin, a tool that has been instrumental in the evolution of cross-platform mobile applications, was of
Translate spoken text using Whisper and GPT with Azure OpenAI Services and .NET MAUI
In a previous blogpost, I showed you how to leverage the Whisper model on Azure OpenAI Services to transcribe an audio file to text. We can easily take this a step further: instead
I Wrote a book...
TLDR; I've written a book about applying the MVVM pattern in .NET MAUI called "The MVVM Pattern in .NET MAUI: The definitive guide to essential patterns, best practices, and techni
Exploring the Whisper model in Azure OpenAI Service
Whisper model in Azure OpenAI Service Recently Microsoft announced that Azure OpenAI Service and Azure AI Speech now offer the OpenAI Whisper model in preview (link) "Whisper" is a
Font Awesome Duotone icons in .NET MAUI and Xamarin.Forms
In almost all of my mobile apps, I use Font Awesome to display icons. It's a huge library and it's super easy to use in .NET MAUI and Xamarin.Forms. You can even use the 'Duotone'
Setting up a basic MVVM architecture in .NET MAUI
Update December 2023 This blogpost was originally posted in February 2022. Since then, .NET MAUI and my insights have evolved a bit. On the other hand, lots of the things discussed
Fixing video file not streaming from Azure Blob Storage on Android
Oh ooh! Video file not streaming on Android... While developing a Xamarin.Forms app, we encountered an issue where an mp4 file wouldn't play on Android, on iOS everything worked pe
Fixing build issue in MAUI preview 8
Since a few week I've been playing around with preview builds of .NET MAUI. Installing MAUI Preview 8 A couple of days ago Microsoft released the latest preview version of MAUI: pr
Multi targeting based on file name in MAUI
The MAUI way: a single Project With Xamarin.Forms, we typically had this kind of project structure: A shared project, containing all of our shared code and different 'head' project
Select TextBox content when tab focussed in UWP
For a LOB application I'm building, one very important request is the fact that users should be able to input/edit data as fast as possible. Allowing users to use the tab key to na
Watch for changes in Blazor WASM to automatically reload your page
The first times I used Blazor WASM, I found it annoying that I wasn't able to make changes to the HTML while debugging and immediately see the result in the browser. As a developer
UWP randomly throwing System.ExecutionEngineException => a Fix!
While debugging my UWP apps, I recently started getting this System.ExecutionEngineExeptionrandomly (roughly 50% of the time) when navigating to a new page. Today I finally found a
Uploading UWP AppxBundle to App Center in Azure DevOps
App Center is a great way to distribute (alpha/beta) releases of your Windows or UWP app to (internal) testers. Especially when you make the distribution to App Center a part of yo
Accessing UWP APIs from a Win32 application
The term UWP is used for a lot of things: UI (WinUI), the Windows AppModel, Windows Runtime API, Store Apps,... As I'm planning to keep this a short blogpost, I'm not going to disc
Reading Belgian eID in UWP using SmartCardReader
I couldn't find any samples to read a Belgian Electronic Identity Card in a UWP application. With the DeviceInformation and SmartCardReader classes it is very easy to access the de
Gotcha! Deploying Azure Notification Hub with ARM Template (APNS Token and Certificate)
While setting up Azure Notification Hubs with ARM templates, I encountered a nasty pitfall. I'm sharing it here hoping that it might help out other developers and for a future refe
A fixed and always expanded CommandBar in UWP
Is it possible to show a CommandBar in UWP that... ...is always expanded and fixed so the label of your AppBarButtons are always visible ...has no ellipsis button to open or collap
Gotcha: opening default app for file in UWP
Doing UWP development, when you've been doing WPF/WinForms development for years, can cause some confusion sometimes. A colleague of mine got stuck when trying to launch the defaul
Distributing WPF/WinForms applications using AppCenter and msix
Some time ago, Microsoft announced WPF and WinForms support for Visual Studio AppCenter. I almost immediately tried it out in order to share my experiences on my blog. But, unfortu
Simple data validation in Xamarin Forms
In this post I would like to share how I've implemented user input data validation in Xamarin Forms. Over the years I've tried a few approaches, some with success, others without.
Image classification with WinML and UWP (update)
Little over a year ago, I blogged about how to do image classification using WinML in UWP. Since then we got some updates of Windows and Visual Studio which result in some changes.
Get Geo Location in background with Xamarin.Essentials on iOS
Getting the Geo Location by using Xamarin.Essentials doesn't work when the app is in the background. Let's see how we can 'fix' this (on iOS)! Xamarin.Essentials Xamarin.Essentials
Multi targeting, am I falling in love?
♥Februari is the month of love and friendship. That's why the Xamarin community is sharing some Xamarin Love every day of this month: Xamarin Month of love and friendship! ♥ A lot
Fixing AppCenter Android Build Error: /usr/bin/jarsigner failed with return code: 1
Error: /usr/bin/jarsigner failed with return code: 1 This issue bugged me for an entire day. The real sad thing about it is, is that I faced this same issue some months ago... So a
Using Android Linkify to add inline links to a Xamarin Forms Label
A loooong time ago (at least, this is what it feels like...), I created this custom Xamarin Forms control HyperlinkLabel (Blog post, GitHub repo) that can show one or multiple hype
Image classification with Azure Custom Vision Service and CoreML
In my previous blogpost I created a small PoC to show you how to work with the Azure Custom Vision Service and WinML. In this blogpost we are going to take the same model that I ha
Image classification with WinML and UWP
Please take a look at my recent blogpost Image classification with WinML and UWP (update) to see what has been changed when using the latest and greatest tooling and apis. During t
Creating a UWP Console app in C#
UWP Console apps In my last two blogposts, I've already shown some really cool features coming in the Windows Redstone 4 update. Also new in the RS4 update is the ability to create
Multiple instances support for UWP apps (Part 2): Redirection
In my previous blogpost, I showed you how we can opt-in for multi instance support in the Windows RS4 update. In last week's 'Windows Community Standup', Kevin and Andrew talked ab
Multiple instances support for UWP apps
Redstone 4 Later this year Microsoft will be shipping the Windows 10 Redstone 4 (RS4) update. New features of this upcoming update are starting to surface in the latest Windows Ins
Using the Fluent Design System in a minesweeper game
In this blog post I would like to show you how to use Acrylic, Reveal highlight and Connected Animations using the Fluent Design System that comes with the Fall Creators Update of
Achievement Unlocked: Microsoft MVP
A couple of months ago, two befriended MVPs put me up for nomination. And, finally, yesterday the highly awaited email arrived: I'm so honored to being part of this absolutely grea
Creating a HyperlinkLabel in Xamarin Forms
I needed a simple control that could show a hyperlink inline with other text and I'd like the link to be defined in markdown. In short, something like this: HyperlinkLabel In Xamar
Demos talk "Realm, the cool new kid in Xamarin town"
Last week I gave a talk about Realm at the Xamarin Expert Day in Cologne, Germany. Some people asked me if I could put the code of the demos, that I used in this talk, on a public
Using SqlClient in UWP
Hello .NET Standard 2.0 A week or so ago, Visual Studio Preview 15.4 released and I was pretty excited about this! Why? Well, Visual Studio 2017 version 15.4 Preview brings first c
Creating a 'Continue Watching' experience using Project Rome in UWP
Since the Anniversary update, we got this new RemoteSystem class in UWP, which is part of Project Rome. With this api we can discover and interact with other computers. One of my f
Sharing a Realm via a QR code using ZXing
Realm offers a nice technique to share Realms with other users using the PermissionOffer and the PermissionOfferResponse objects. The idea is that you can provide a token that an o
Bind to Xamarin Picker but only update value after hitting Done on iOS
Sometimes you stumble upon these gems that you didn't know they existed. Like I did today... The 'problem' with the Picker You might have noticed that when you are binding to the S
Dynamically binding RESX Resources in Xamarin Forms
Localizing your app isn't the most fun thing to do. In the last couple of years I've seen and tried various ways of implementing multi language support. In this blogpost I would li
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? B
Setting up a Realm Object Server in Azure and connect to it with Xamarin Forms
Lately I've been playing around with Realm. Realm is a very cool platform that allows us to easily build mobile apps that use things like local data storage, two-way data synchroni
Custom location and movement on Xamarin Remoted iOS Simulator for Windows
When I was building a Xamarin PoC at the client, I was disappointed to notice that there wasn't any way of simulating the user's location on the Remoted iOS Simulator for Windows.
Building a Xamarin app with Azure Functions and OneDrive
Preface (you can skip this if you are not interested in the underlying idea, no hard feelings!) A while ago my brother -who sells windows (no, not the OS) and doors- asked me if I
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 A
Compiled bindings gotcha - Don't forget INotifyPropertyChanged on your interface
Intro On one of our UWP projects we ran into an issue where OneWay binding using x:Bind (compiled bindings) didn't work. Only the initial value was shown. In the end, when I found
UWP Custom Control: ExpandableDetailGridView (Google Images Style GridView)
'Google Images Style' GridView For one of the upcoming updates of the app I'm currently working on, the designers used a grid that looks a lot like the GridView that Google uses on
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, f
Fix Visual Studio 2015 random crash
Visual Studio 2015 randomly crashing -> FIX! A colleague of mine was having issues with Visual Studio 2015. Every now and then his instance of Visual Studio would just crash. He th
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 blog
UWP app on Xbox One: controller input gotcha (KeyDown event)
I was trying out some stuff on my Xbox One (well technically not mine, but that doesn't matter). More particularly I was testing out UWP for Xbox One. One of the first things I wan
Xamarin interview questions
Intro The company I work for, Ordina Belgium, got many requests for ‘consultants with Xamarin experience’ from our customers lately. As leader of the Mobile Competence Center at Or
Getting the user's physical location without location services
It has been a while since my last blogpost (due to various reasons: preparing wedding and talk at Techorama, meetings with the architect for the construction of our house,...)! But
Slidedeck and code “Data sharing and Cross-App communication in UWP”
8th March 2016 I gave a talk for Mobel ("Belgian Mobile Developer User Group") about Data sharing and Cross-App Communication in UWP. As it was only a short talk (in total there we
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 ap
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 expe
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 t
x:Bind and inheritance
(published on 11/30/2015, although Wordpress states '11/15/2015') Intro The first time I heard about Compiled Bindings (x:Bind) was at Build 2015. Finally we got compile-time valid
Using Rx in a UWP project with MVVM
Intro My team and I are currently working on a UWP project which is a complete rewrite of a WinRT app that we have been building.Recently we started development on the 'Search' fun
Deferred Loading, mind the Visual State Manager
Deferred Loading is a great way to optimize your XAML views. It allows us to lazy load controls that aren't visible by default, or that are only visible under certain conditions. I
Starting a blog since 2011...
Since a couple of years, one of my new years resolutions has been: "Starting a blog". For some reason or another, for all these years, on the 31 December I needed to conclude that

Out with WordPress, in with Astro

Qwen3.5 in .NET MEAI Hangs Forever And How OllamaSharp Fixes It in One Line
Fix Maui Android "Doesn't support required ABI" issue

Cross-Platform App Development is Dead, Long Live Cross-Platform App Development!

Translate spoken text using Whisper and GPT with Azure OpenAI Services and .NET MAUI

I Wrote a book...

Exploring the Whisper model in Azure OpenAI Service

Font Awesome Duotone icons in .NET MAUI and Xamarin.Forms
Setting up a basic MVVM architecture in .NET MAUI
Fixing video file not streaming from Azure Blob Storage on Android
Fixing build issue in MAUI preview 8