DynamicAero2 theme is DynamicResource version of PresentationFramework.Aero2.
- All Brush, Style, Template and Data are specified by DynamicResource.
- You can change the color of the control without implementing Style.
<Window.Resources>
<SolidColorBrush x:Key="ScrollBar.Static.Background" Color="Red" />
</Window.Resources>
Equivalent to PresentationFramework.Aero2.
After adding DynamicAero2.dll
to project reference, edit App.xaml
as follows.
<Application [...]
xmlns:DynamicAero2="clr-namespace:DynamicAero2;assembly=DynamicAero2">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<DynamicAero2:Theme Color="NormalColor"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Change the Color
property to Dark
or Light
if necessary.
The theme will not be applied to controls that have Style applied to them.
If you want to use both Style and Theme, you need to set BasedOn="{StaticResource {x:type Button}}"
to Style.
<Button>
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}"}/>
</Button.Style>
</Button>
<Button>
<Button.Style>
<Style TargetType="Button"/>
</Button.Style>
</Button
MIT license.
Copyright (c) Manju Summoner
Theme styles and templates was converted based on dotnet / wpf repository.
Copyright (c) .NET Foundation and Contributors.