Prevent Screen Sleep in C# WinUI Apps

Let’s consider how to keep your screen awake in WinUI apps using simple C# code. ...

March 9, 2025

Single Instance Apps in WinUI 3 with C#

In this article, we’ll look at how to restrict your WinUI 3 app to a single instance using C#. ...

March 2, 2025

How to Set a Minimum Window Size in WinUI

WinUI doesn’t support window size limits by default, but you can easily add this feature yourself. ...

February 23, 2025

Switching Between Dark and Light Themes in a WinUI App

In this note, we will look at how to switch between light and dark themes in a WinUI app. ...

February 16, 2025

How to properly use .NET build-in dependency injection with WinUI apps

This post is based on Using .NET build-in dependency injection with WinUI apps and represents work on the mistakes made in the design of the approach described there. ...

February 9, 2025

ContentDialog and MVVM in WinUI

Let’s use ContentDialog in MVVM pattern style! ...

February 2, 2025

ItemsControl and DataTemplateSelector in WinUI

Sometimes even simple things can be confusing. Especially if you don’t encounter them every day. The funniest thing is if you’ve already solved this problem and successfully forgot about it after some time. ...

November 11, 2024

Using .NET build-in dependency injection with WinUI apps

.NET has build-in dependency injection (DI). It’s used primarily for ASP.NET Core apps, but there’s no reason not to use it with WinUI apps too. ...

November 9, 2024