Skip to content

Commit ac574b5

Browse files
Update README.md
1 parent e56925e commit ac574b5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,24 @@ Install-Package WPFDevelopers
6464
``` XML
6565
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
6666
```
67+
#### 1.1.0.3-preview1 and above versions
6768
``` XML
68-
<Application.Resources>
69+
<Application.Resources>
70+
<ResourceDictionary>
71+
<ResourceDictionary.MergedDictionaries>
72+
<ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Theme.xaml" />
73+
<!-- 需要注意 wd:Resources 必须在Theme.xaml后 -->
74+
<!-- 默认情况下,Theme 会跟随系统主题(适用于 Windows 10 及以上版本),自动切换为 Light 或 Dark 模式。
75+
若要手动设置为 Light 模式,可以使用 Theme="Light"。
76+
你还可以自定义主题色,使用 Color="Fuchsia"(例如设置为 Fuchsia)-->
77+
<wd:Resources />
78+
</ResourceDictionary.MergedDictionaries>
79+
</ResourceDictionary>
80+
</Application.Resources>
81+
```
82+
#### 1.1.0.3-preview1 and below versions
83+
``` XML
84+
<Application.Resources>
6985
<ResourceDictionary>
7086
<ResourceDictionary.MergedDictionaries>
7187
<ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Light.Blue.xaml"/>

0 commit comments

Comments
 (0)