rendered paste body<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Solace="clr-namespace:Solace"> <!-- **RESOURCES USED BY THEME** --> <CornerRadius x:Key="LoginWindowCornerRadius" TopLeft="4" TopRight="4" BottomRight="4" BottomLeft="4"/> <CornerRadius x:Key="LoginWindowContentCornerRadius" TopLeft="3" TopRight="3" BottomRight="3" BottomLeft="3"/> <LinearGradientBrush x:Key="LoginWindowInnerBorder" EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF454545" Offset="0" /> <GradientStop Color="#FF343434" Offset="0.085" /> <GradientStop Color="#FF343434" Offset="0.915" /> <GradientStop Color="#FF454545" Offset="1" /> </LinearGradientBrush> <LinearGradientBrush x:Key="LoginWindowContentBorder" EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF0D5997" Offset="0" /> <GradientStop Color="#FF07345C" Offset="1" /> </LinearGradientBrush> <DrawingBrush x:Key="LoginWindowContentBackground"> <DrawingBrush.Drawing> <DrawingGroup> <GeometryDrawing Geometry="M0,0 L3,0 3,8 0,8 z"> <GeometryDrawing.Brush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF121A2D" Offset="0" /> <GradientStop Color="#FF0F1521" Offset="1" /> </LinearGradientBrush> </GeometryDrawing.Brush> </GeometryDrawing> <GeometryDrawing Geometry="M0,0 L3,0 3,2 Q2,1 0,1 z"> <GeometryDrawing.Brush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.7,0"> <GradientStop Color="#EB00B1FF" Offset="0" /> <GradientStop Color="#480097FF" Offset="0.541" /> </LinearGradientBrush> </GeometryDrawing.Brush> </GeometryDrawing> </DrawingGroup> </DrawingBrush.Drawing> </DrawingBrush> <!-- **RESOURCES USED BY SOLACE** To modify and customize resources used by Solace Key names must remain the same, and resource types must also remain the same (ie, a brush must still be a brush, a style must still be a style). Example: <SolidColorBrush x:Key="LoginWindowBackground" Color="#FF343434"/> can be modified by changing the "Color" property or can be changed to another type of brush as defined by WPF and .Net Framework 4.0 (LinearGradientBrush, PathGradientBrush, RadialGradientBrush, etc) so long as the x:Key value remains the same (required by the application to find the resource) --> <SolidColorBrush x:Key="LoginWindowBackground" Color="#FF343434"/> <SolidColorBrush x:Key="LoginWindowOutterBorder" Color="Black"/> <SolidColorBrush x:Key="LogoOutlineBrush" Color="SkyBlue"/> <SolidColorBrush x:Key="LogoFillBrush" Color="Navy"/> <SolidColorBrush x:Key="SloganOutlineBrush" Color="SkyBlue"/> <SolidColorBrush x:Key="SloganFillBrush" Color="White"/> <LinearGradientBrush x:Key="SloganReflectionOutlineBrush" EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="Transparent" Offset="0.355" /> <GradientStop Color="SkyBlue" Offset="0.651" /> </LinearGradientBrush> <LinearGradientBrush x:Key="SloganReflectionFillBrush" EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="Transparent" Offset="0.157" /> <GradientStop Color="White" Offset="1" /> </LinearGradientBrush> <!-- Login window is a borderless, non-sizable window Required parts/names are: PART_Content - ContentPresenter PART_SignIn - Element that is clicked to begin login process (can be any subclass of UIElement) PART_Cancel - Element that is clicked to clear all login fields (can be any subclass of UIElement) PART_Close - Element that is clicked to close the login window (can be any subclass of UIElement) --> <Style x:Key="LoginWindowStyle" TargetType="{x:Type Solace:LoginWindow}"> <Setter Property="Background" Value="{StaticResource LoginWindowBackground}"/> <Setter Property="Foreground" Value="Gray"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Solace:LoginWindow}"> <Border CornerRadius="{StaticResource LoginWindowCornerRadius}" BorderBrush="{StaticResource LoginWindowOutterBorder}" BorderThickness="1" Background="{TemplateBinding Background}"> <Border CornerRadius="{StaticResource LoginWindowCornerRadius}" BorderBrush="{StaticResource LoginWindowInnerBorder}" BorderThickness="1,2"> <Border Margin="4" CornerRadius="{StaticResource LoginWindowContentCornerRadius}" BorderBrush="{StaticResource LoginWindowContentBorder}" BorderThickness="1" Background="{StaticResource LoginWindowContentBackground}"> <Grid> <!-- *Required* - Must be ContentPresenter --> <ContentPresenter x:Name="PART_Content"/> <!-- *Required* - Any subclass of UIElement --> <TextBlock x:Name="PART_Close" Text="û" Margin="0,0,4,0" FontSize="26" FontWeight="Bold" Foreground="Red" FontFamily="Wingdings" HorizontalAlignment="Right" VerticalAlignment="Top"/> <!-- *Required* - Must be ComboBox --> <ComboBox x:Name="PART_Login" Margin="200,0,0,160" Height="23" Width="140" IsEditable="True" HorizontalAlignment="Left" VerticalAlignment="Bottom"/> <!-- *Required* - Must be PasswordBox --> <PasswordBox x:Name="PART_Password" Margin="200,0,0,130" Height="23" Width="140" HorizontalAlignment="Left" VerticalAlignment="Bottom"/> <TextBlock x:Name="PART_StatusLabel" Text="Status:" Margin="200,0,0,102" Height="Auto" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Bottom"/> <!-- *Required* - Must be ComboBox --> <ComboBox x:Name="PART_Status" Margin="250,0,0,100" Height="23" Width="90" HorizontalAlignment="Left" VerticalAlignment="Bottom"/> <!-- *Required* - Must be CheckBox --> <CheckBox x:Name="PART_RememberLogin" Content="Remember my login" Margin="200,0,0,70" Height="Auto" Width="Auto" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="Left" VerticalAlignment="Bottom"/> <!-- *Required* - Must be CheckBox --> <CheckBox x:Name="PART_RememberPassword" Content="Remember my password" Margin="200,0,0,45" Height="Auto" Width="Auto" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="Left" VerticalAlignment="Bottom"/> <!-- *Required* - Any subclass of UIElement --> <TextBlock x:Name="PART_SignIn" Text="Sign In" Cursor="Hand" Margin="0,0,140,10" Foreground="SkyBlue" TextDecorations="Underline" HorizontalAlignment="Right" VerticalAlignment="Bottom"/> <!-- *Required* - Any subclass of UIElement --> <TextBlock x:Name="PART_Cancel" Text="Cancel" Cursor="Hand" Margin="0,0,80,10" Foreground="SkyBlue" TextDecorations="Underline" HorizontalAlignment="Right" VerticalAlignment="Bottom"/> </Grid> </Border> </Border> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style></ResourceDictionary>