Use Windows AI in Your WPF Application

With the rise of Copilot+ PCs that have a neural processing unit (NPU), you as a developer get new possibilities to integrate artificial intelligence (AI) in your Windows desktop applications. Instead of consuming a cloud-based AI model, you can use local AI models.

In this blog post, you will learn how to build a WPF application that uses a local small language model (SLM) called Phi Silica that comes pre-installed with Windows 11. Everything that you do with Phi Silica stays on your machine. Let's start by looking at Copilot+ PCs.

(more…)
Read more...

WPF in .NET 9.0 – Windows 11 Theming

The Windows Presentation Foundation (WPF) is a Desktop UI Framework that is part of .NET. Microsoft uses it to build Visual Studio. WPF got some nice new features with .NET 9:

  • Windows 11 Theming
  • The Accent Color
  • Hyphen-based ligatures

In a little series of blog posts, let's take a look at these features. Let's start in this blog post with Windows 11 Theming.

(more…)
Read more...

C# 12: Alias Any Type

In the previous blog posts of this C# 12 series you learned about different C# 12 features:

In this blog post, let's look at another new feature that allows you to alias any type with a using directive. Before we dive in, let's ensure that you understand how you could already alias namespaces and types before C# 12.

(more…)
Read more...

Create a GitHub Action in Visual Studio to Deploy Your .NET Web App automatically to Azure on Every Commit

When building a web application, it can be helpful to deploy your application with the latest features and code changes to a server, so that users can actually test it. Especially at the beginning of a new project, setting up such an environment where test users can immediately see and test new features is super important.

(more…)
Read more...