-
Notifications
You must be signed in to change notification settings - Fork 1
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!
<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>