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 3D Tunnel Effect, Joining the Fun with WPF

Compared to CSS and UWP, the veteran WPF is relatively cumbersome for 3D effects. First, you need to create a 3D model, then rotate the XY axes, adjust the Z-axis scaling, and finally adjust the FOV. The tunnel effect is determined by the Z-axis scaling value.

WPF
.NET 10 Preview 1 Released

.NET 10 Preview 1 Released

Today .NET 10 Preview 1 was released. I downloaded it immediately, upgraded the Avalonia UI project and blog website. The former passed functional testing and AOT publishing successfully, the latter debugging went fine, but Docker has not been successful yet.

2/25/2025 沙漠尽头的狼 Sharing / .NET
.NET Project Automation Secrets: Full Guide to One-Click Version Update and Publish Scripts

.NET Project Automation Secrets: Full Guide to One-Click Version Update and Publish Scripts

This article details how to use PowerShell scripts and batch files to automate version updates and one-click publishing in .NET Avalonia UI projects. First, it explains the setup and modification of PowerShell execution policies to ensure scripts can run properly. Then, it introduces methods for adding scripts in Visual Studio pre-build events to automatically update version numbers, as well as using batch files to publish applications on multiple platforms. Finally, a PowerShell script example is provided that can automatically update program version information based on Git tags. These methods can improve the development efficiency and convenience of the publish process for .NET projects.

2/21/2025 沙漠尽头的狼 Avalonia UI
(1)From Nurse to C# Developer -- Can a Nurse Successfully Switch to Learning .NET Development?

(1)From Nurse to C# Developer -- Can a Nurse Successfully Switch to Learning .NET Development?

The article tells the story of a nurse who resigned due to work pressure and family responsibilities. After facing difficulties in job hunting, she decided to learn programming, especially the C# language. She describes in detail what she learned on the first day, including .NET, .NET Framework, C# language concepts, types of C# development software, different UI frameworks, interaction modes, and the use of Visual Studio. She expresses her confidence and determination to learn programming and hopes to receive guidance and help from more people.

2/21/2025 勇敢的天使 Sharing
Implementing Internationalization in WPF Using Custom XML Files

Implementing Internationalization in WPF Using Custom XML Files

This article details the method of implementing internationalization in WPF applications using custom XML files, including installing the necessary NuGet packages, dynamically retrieving the language list, dynamically switching languages, using translated strings in code and XAML interfaces, and provides a source code link to help developers easily achieve internationalization in WPF applications.

1/26/2025 沙漠尽头的狼 WPF
Markdown Rendering in Avalonia UI

Markdown Rendering in Avalonia UI

This article will detail how to use Markdown.AIRender for Markdown rendering in Avalonia UI, including installation, style referencing, example demonstrations, and various features (such as support for black/white themes, accent colors, etc.). It also delves into its ongoing internationalization features, aiming to help developers better integrate Markdown content into Avalonia applications, provide a better user experience, and enhance the application's global adaptation capabilities. Additionally, it compares related Markdown rendering libraries to provide users with a reference for choosing the right tool.

1/17/2025 沙漠尽头的狼 Avalonia UI
.NET Programmer's Playground: LINQPad

.NET Programmer's Playground: LINQPad

LINQPad's package is very small, only about 20 MB, and starts up very quickly. To use it, just enter the C# statements you want to execute and press F5.

12/26/2024 码农很忙 .NET
Avalonia Internationalization Using XML Files

Avalonia Internationalization Using XML Files

This article deeply explores the method and advantages of implementing internationalization in Avalonia using XML files. By comparing with Resx resource files, it provides developers with a basis for selection. XML-based internationalization is suitable for scenarios where users need to modify content, expect to leverage AI editing, and pursue clear language structure management. The article details the entire workflow from creating language files, strong-type generation, to specific usage and language management, and provides relevant resource links, such as XML language management packages, case demos, language management tools, Resx resource management extensions, etc., helping developers get started quickly and apply this internationalization solution in actual projects, enhancing the globalization adaptation capability and user experience of Avalonia applications.

12/23/2024 沙漠尽头的狼 Avalonia UI