https://github.com/ffmathy/aerocolor-wpf
This library adds a few keys to the primary resources file of your WPF based application to allow using the Aero color, and updating that color when it changes in the settings too.
https://github.com/ffmathy/aerocolor-wpf
Last synced: over 1 year ago
JSON representation
This library adds a few keys to the primary resources file of your WPF based application to allow using the Aero color, and updating that color when it changes in the settings too.
- Host: GitHub
- URL: https://github.com/ffmathy/aerocolor-wpf
- Owner: ffMathy
- Created: 2014-08-03T13:58:06.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-04T13:29:35.000Z (almost 12 years ago)
- Last Synced: 2024-10-29T15:41:20.811Z (over 1 year ago)
- Language: C#
- Size: 176 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
aerocolor-wpf
=============
This library adds a few keys to the primary resources file of your WPF based application to allow using the Aero color, and updating that color when it changes in the settings too.
#Resource keys added
The following resource keys are added and maintained once the Aero Color library has been initialized.
##Colors
The following color resources are added.
* AeroColor - This is the exact Aero color as-is.
* AeroColorDark - This is the exact Aero color, only made darker if too light (good for white backgrounds).
* AeroColorLight - This is the exact Aero color, only made lighter if too dark (good for black bacgrounds).
##Brushes
The following brush resources are added, which are just solid colored brushes with their color counterparts as colors.
* AeroBrush
* AeroBrushDark
* AeroBrushLight
#Setup code
This line of code should be put inside your main window's `Loaded` event, or any other event that arises when the first window of your application has been created. Here's an example.
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Loaded += MainWindow_Loaded;
}
void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
AeroResourceInitializer.Initialize();
}
}
#NuGet
AeroColor is available on NuGet as well!
`install-package aerocolor-wpf`