Skip to content

Downloading and installing

Maurício Vielmo Schmaedeck edited this page Jan 25, 2019 · 4 revisions

You can install SimpleDialogs through NuGet by running the following command in the NuGet Package Manager Console

  PM> Install-Package SimpleDialogs

... or through NuGet Package Manager directly on your project/solution.

Then just add one of the following Resource Dictionary

<!-- LIGHT THEME: -->
<ResourceDictionary Source="pack://application:,,,/SimpleDialogs;component/Themes/Light.xaml" />
<!-- DARK THEME: -->
<ResourceDictionary Source="pack://application:,,,/SimpleDialogs;component/Themes/Dark.xaml" />

... to your application resources and you are good to go!

Example of App.xaml (careful not copy and paste this example!)

<Application x:Class="SimpleDialogs.Demo.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             d1p1:Ignorable="d"
             xmlns:d1p1="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/SimpleDialogs;component/Themes/Light.xaml" />
            </ResourceDictionary.MergedDictionaries>

            [OTHER RESOURCES]
        </ResourceDictionary>
    </Application.Resources>
</Application>
Clone this wiki locally