Skip to content

merge 'Release/0.4.0' into 'master' - #303

Merged
yanjinhuagood merged 38 commits into
masterfrom
release/0.4.0
Nov 13, 2026
Merged

yanjinhuagood merged 38 commits into
masterfrom
release/0.4.0

Conversation

@yanjinhuagood

Copy link
Copy Markdown
Member

This pull request updates both the English and Chinese getting started documentation and makes improvements to the TreeView and window styles for the .NET 4.0 build. The documentation now covers high-DPI border clipping fixes, enhanced theme persistence and switching, and introduces comprehensive usage guidance for the Dialog control. In the codebase, TreeView virtualization is enabled for better performance, and minor improvements are made to window title bar templates.

Summary

  • Add a reusable Dialog control, theme resources, and sample views.
  • Add persisted light/dark theme preferences and title-bar theme switching.
  • Improve PathIcon, TreeView virtualization, NumericBox, ScrollViewer, NotifyIcon, MessageBox, and related styles.
  • Update sample language switching and localization resources.

改动摘要

  • 新增可复用的 Dialog 控件、主题资源及示例页面。
  • 支持保存浅色/深色主题偏好,并在标题栏提供主题切换。
  • 改进 PathIcon、TreeView 虚拟化、NumericBox、ScrollViewer、NotifyIcon、MessageBox 及相关样式。
  • 更新示例程序的语言切换功能和本地化资源。

Documentation improvements:

  • Theme persistence and switching: Updated explanations for <wd:Resources Radius="4" /> to clarify that the previous theme mode is restored and the system theme is followed on first use. Expanded details on theme switching, keyboard accessibility, and registry-based persistence for user preferences in both English and Chinese guides. [1] [2] [3] [4]
  • High-DPI border clipping guidance: Added a section explaining how to fix border clipping issues on .NET Framework <4.6 using AppContextSwitchOverrides in App.config, with instructions for both languages. [1] [2]
  • Dialog control usage: Introduced a detailed guide (C#/MVVM) for the Dialog control, including validation, configuration, MVVM usage, and differences for .NET 4.0 vs. 4.5+. [1] [2]
  • NumericBox context menu: Documented how to customize or disable the default context menu in wd:NumericBox in the Chinese guide.

TreeView and style enhancements:

  • TreeView virtualization: Enabled item virtualization in the TreeView style for the .NET 4.0 build, improving performance with large data sets. Added triggers to set the ItemsPanel to VirtualizingStackPanel when virtualization is enabled. [1] [2] [3]
  • Window title bar template improvements: Renamed template parts for clarity (e.g., PART_Normal to PART_TitleBar, added PART_GridChrome, PART_TitleBarIconImage, and PART_Title), and set a minimum width for the last column in the title bar for improved layout. [1] [2]

@yanjinhuagood
yanjinhuagood merged commit f3ca7e1 into master Nov 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant