WPF applications are good but they sometimes have poor and simple controls and not-so-attractive UIs. Well, it might reduce your application’s value in front of your potential clients. So today, I decided to write this article in order to help developers create an application with an attractive UI. Okay, we will start from the simplest things.
- To start our simple application we need to install Visual Studio 2017 and make a new WPF application.

- Add Material Design Themes via Nuget Packages manager after your app was created successfully. You can do that by right clicking into References folder and selecting manager Nuget packages, entering “Material Design Themes” into the search box and installing the library (could get version 2.5.0.xx)

- If you see 2 dlls were added into your references folder like the image below, you have completed 50% your journey towards an interesting application with an attractive UI.

- Add some lines of code under <ResourceDictionary> tag for setting up the default template into App.xaml
- // Copy codes for setup template
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.BlueGrey.xaml" />
- </ResourceDictionary.MergedDictionaries>
- // Copy codes for setup template -- end
- Back your app and open MainWindow.xaml to insert some new material controls.


Amit MohantyPosted Jun 26, 2019, 2:11 AM
Nice article !!!