|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:shared="clr-namespace:CommonUtils;assembly=CommonUtils"
>
<SolidColorBrush x:Key="Charcoal" Color="#FF655F5F" />
<SolidColorBrush x:Key="Forecolor" Color="#FFEBEBEB" />
<FontFamily x:Key="fontFamily">Cambria Math</FontFamily>
<LinearGradientBrush x:Key="BlackButton" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFB9B9B9" Offset="0" />
<GradientStop Color="#FF787878" Offset="0.04" />
<GradientStop Color="#FF787878" Offset="0.041" />
<GradientStop Color="#FF232323" Offset="1" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="BlackButtonPressed" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF191919" Offset="0" />
<GradientStop Color="#FF787878" Offset="0.04" />
<GradientStop Color="#FF787878" Offset="0.041" />
<GradientStop Color="#FF232323" Offset="1" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="BrownButton" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFB9B9B9" Offset="0" />
<GradientStop Color="#FFA08B83" Offset="0.04" />
<GradientStop Color="#FF76625B" Offset="0.5" />
<GradientStop Color="#FF6C5952" Offset="1" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="BrownButtonPressed" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF191919" Offset="0" />
<GradientStop Color="#FFA08B83" Offset="0.04" />
<GradientStop Color="#FF76625B" Offset="0.5" />
<GradientStop Color="#FF6C5952" Offset="1" />
</LinearGradientBrush>
<SolidColorBrush x:Key="BlackButtonForeground" Color="#FFE4E4E4" />
<Style x:Key="StyleBlackButton" TargetType="ContentControl">
<Style.Setters>
<Setter Property="Foreground" Value="{StaticResource BlackButtonForeground}" />
<Setter Property="Background" Value="{StaticResource BlackButton}" />
<Setter Property="FontFamily" Value="Cambria Math" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border x:Name="bd"
CornerRadius="4"
BorderBrush="#FF2F2F2F"
BorderThickness="1"
Background="{TemplateBinding Background}"
>
<ContentPresenter Content="{TemplateBinding Button.Content}" x:Name="ct"
HorizontalAlignment="Center" VerticalAlignment="Center">
</ContentPresenter>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Effect" >
<Setter.Value>
<DropShadowEffect ShadowDepth="0" Color="Wheat" BlurRadius="5" />
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="Button.IsPressed" Value="True">
<Setter Property="Button.Background" Value="{StaticResource BlackButtonPressed}" />
<Setter Property="Button.RenderTransform" TargetName="ct">
<Setter.Value>
<TranslateTransform X="0" Y="1" />
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style.Setters>
</Style>
<Style x:Key="StyleBrownButton" TargetType="Button" BasedOn="{StaticResource StyleBlackButton}">
<Style.Setters>
<Setter Property="Foreground" Value="{StaticResource BlackButtonForeground}" />
<Setter Property="Background" Value="{StaticResource BrownButton}" />
</Style.Setters>
<Style.Triggers>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="{StaticResource BrownButtonPressed}" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="DropDownButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource StyleBlackButton}">
</Style>
<Style TargetType="shared:TextBoxWithHistory">
<Setter Property="Foreground" Value="{StaticResource Forecolor}" />
<Setter Property="Background" Value="{StaticResource Charcoal}" />
<Setter Property="FontFamily" Value="{StaticResource fontFamily}" />
</Style>
<Style TargetType="TextBox">
<Setter Property="Foreground" Value="{StaticResource Forecolor}" />
<Setter Property="Background" Value="{StaticResource Charcoal}" />
<Setter Property="FontFamily" Value="{StaticResource fontFamily}" />
</Style>
</ResourceDictionary>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.