Skip to content

Instantly share code, notes, and snippets.

@ochilab
Created October 25, 2019 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ochilab/8647c7d0b3e7cd3ca554471aec311fa3 to your computer and use it in GitHub Desktop.
Save ochilab/8647c7d0b3e7cd3ca554471aec311fa3 to your computer and use it in GitHub Desktop.
MaterialDesignInXamlToolkitを適用するためのApp.xamlの書き方
<Application x:Class="TestMaterial.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:TestMaterial"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<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.DeepPurple.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
@ochilab
Copy link
Author

ochilab commented Oct 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment