Skip to content

Commit a736245

Browse files
Update README-zh.md
1 parent ac574b5 commit a736245

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README-zh.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,24 @@ Install-Package WPFDevelopers
7474
``` XML
7575
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
7676
```
77+
#### 1.1.0.3-preview1 以上版本
7778
``` XML
78-
<Application.Resources>
79+
<Application.Resources>
80+
<ResourceDictionary>
81+
<ResourceDictionary.MergedDictionaries>
82+
<ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Theme.xaml" />
83+
<!-- 需要注意 wd:Resources 必须在Theme.xaml后 -->
84+
<!-- 默认情况下,Theme 会跟随系统主题(适用于 Windows 10 及以上版本),自动切换为 Light 或 Dark 模式。
85+
若要手动设置为 Light 模式,可以使用 Theme="Light"。
86+
你还可以自定义主题色,使用 Color="Fuchsia"(例如设置为 Fuchsia)-->
87+
<wd:Resources />
88+
</ResourceDictionary.MergedDictionaries>
89+
</ResourceDictionary>
90+
</Application.Resources>
91+
```
92+
#### 1.1.0.3-preview1 以下版本
93+
``` XML
94+
<Application.Resources>
7995
<ResourceDictionary>
8096
<ResourceDictionary.MergedDictionaries>
8197
<ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Light.Blue.xaml"/>

0 commit comments

Comments
 (0)