Blog

Technical Articles

This section contains site articles covering .NET, desktop development, engineering practice, and general development topics.

First Visit

New User Starting Route

Random Exploration

Random Discovery

Random Discovery

WPF Implementation of Message Center

This article will explain how to implement a message center based on WPF. For example, common software often receives messages such as 'news' and 'announcements' pushed from the server.

WPF
Random Discovery

FluentValidation in C# WPF Applications

This article explores how to use FluentValidation for property validation in C# WPF projects and demonstrates how to implement this through the MVVM pattern.

WPF
Using TTF Icon Fonts in WPF

Using TTF Icon Fonts in WPF

Packaging vector graphics into font form, the usage is the same as using fonts, allowing free setting of icon size and color. Compared to traditional images, the advantages are obvious:

12/20/2021 丑萌气质狗 WPF
(16/30)Learning Blazor Together: Creating a Database

(16/30)Learning Blazor Together: Creating a Database

We now have basic logs, but every time we finish inputting and reload the page, the data is reset because these data only exist in the browser and are not actually stored in the database. To save them, we need to connect to the database.

12/18/2021 StrayaWorker Blazor
(15/30)Learning Blazor Together: CSS Isolation

(15/30)Learning Blazor Together: CSS Isolation

Sometimes we want to apply individual styles to different components. But if we write all CSS classes in `wwwroot/css/site.css`, or modify styles for a specific element, it may cause a change to affect all components. This kind of global conflict must be avoided, but how should we do it?

12/18/2021 StrayaWorker Blazor
(14/30)Learning Blazor Together: JavaScript Interop

(14/30)Learning Blazor Together: JavaScript Interop

Although Blazor does not require JavaScript, some existing JS libraries are still very convenient. We cannot discard them all just because we don't want to use JavaScript. Blazor provides methods to call JavaScript, a scenario called JavaScript interoperability (JavaScript interop for short). This article will implement a confirmation dialog for the Delete button, because deletion is an important function and users should not easily delete with just one click.

12/16/2021 StrayaWorker Blazor
Developed a Slack-off App with WinUI 3

Developed a Slack-off App with WinUI 3

Don't underestimate slacking off. All genius ideas are not sparked while typing on the keyboard. When you hit a roadblock at work, the more you focus on the work, the harder it is to find a solution. At this point, look away from the screen. Perhaps while showering and playing with a rubber duck, while daydreaming and looking out the window, while sleeping and scratching your belly, the inspiration to solve the problem will suddenly pop into your mind.

12/16/2021 dino.c .NET