A simple library providing themed windows frame, dialogs and messageboxes based on the ExpressionDark WPF theme (also under the MS-PL Licence and available here : https://www.nuget.org/packages/Wpf.Themes.ExpressionDark/).
Include a color picker and a demo application.
-
Reference
ExpressionWindow.dll
andMicrosoft.Windows.Shell.dll
in your project. -
Turn a Window into an Expression Window
- Add the following namespace to the window you wish to turn into an Expression Window :
xmlns:EW="clr-namespace:ThemedWindows;assembly=ExpressionWindow"
- (Optional) Add the following using clause to your CodeBehind :
using ThemedWindows;
- Inherit
ExpressionWindow
instead ofWindow
in the CodeBehind (OrThemedWindows.ExpressionWindow
if you didn't add the using clause)
<EW:ExpressionWindow xmlns:EW="clr-namespace:ThemedWindows;assembly=ExpressionWindow" x:Class="EXAMPLE.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow"> <Grid> </Grid> </EW:ExpressionWindow>
//... using ThemedWindows; napespace EXAMPLE { public partial class MainWindow : ExpressionWindow { public MainWindow() { InitializeComponent(); } } }
- Add the following namespace to the window you wish to turn into an Expression Window :
-
Enable in-designer preview of the theme by adding the following snipped to your App.xaml :
<Application.Resources> <EW:DesignTimeResourceDictionary xmlns:EW="clr-namespace:ThemedWindows;assembly=ExpressionWindow" DesignTimeColor="Green" /> </Application.Resources>
Redesign the yellow and white theme since they look pretty weird.
The project is licensed under the Microsoft Public License (Ms-PL), for the exact terms please see the LICENSE file.