Skip to content
闫驚鏵(Jinhua Yan) edited this page Mar 15, 2025 · 3 revisions

Welcome to the WPFDevelopers wiki!

Step 1: Add nuget;

Install-Package WPFDevelopers

Step 2: Add nodes to App.xaml; App.xaml Add the namespace;

xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"

1.1.0.3-preview1 and above versions

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                     <ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Theme.xaml" />
 			<!--  需要注意 wd:Resources 必须在Theme.xaml后  -->
 			<!--  默认情况下,Theme 会跟随系统主题(适用于 Windows 10 及以上版本),自动切换为 Light 或 Dark 模式。
                              若要手动设置为 Light 模式,可以使用 Theme="Light"。
                              你还可以自定义主题色,使用 Color="Fuchsia"(例如设置为 Fuchsia)-->
 		     <wd:Resources />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

1.1.0.3-preview1 and below versions

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Light.Blue.xaml"/>
                    <!--需要注意 wd:Resources 必须在配色主题后,Theme="Dark" 为黑色皮肤-->
                    <wd:Resources Theme="Light"/>
                    <ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Theme.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

Step 3: Control Using Add the namespace;

xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
Clone this wiki locally