JohanLarsson/DarkTheme

★ 1Forks 0C#GitHub ↗Compare

README

DarkTheme

Based on AngryCarrot789/WPFDarkTheme

image

Simple dark theme for copy.

  1. Copy Dark.xaml and Dark.Xaml.cs to your project
  2. Fix namespace in xaml and code behind
  3. Reference in App.xaml, see sample below
  4. Due to WPF being weird explicit setting of style on window is needed Style="{StaticResource {x:Type Window}}"
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/Dark.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
<Window ...
        Style="{StaticResource {x:Type Window}}">
  ...

Contributors

JohanLarsson

Issues