Window
Background
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Style x:Key="Window_Style" TargetType="Window"> <Setter Property="Background" Value="#FF272727"/> </Style> </ResourceDictionary>
<Application x:Class="MyLibMaster.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MyLibMaster" StartupUri="MainWindow.xaml"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/MyLib;component/Resources/Styles/Window.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> </Application>
<Window x:Class="MyLibMaster.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:MyLibMaster" mc:Ignorable="d" Title="MainWindow" Height="480" Width="840" Style="{DynamicResource Window_Style}"> <Grid > </Grid> </Window>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)