blob: a6bb52f57d87f73b9a8fa85edb6155db61768760 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:aero="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
xmlns:converters="clr-namespace:Tango.Touch.Converters"
xmlns:local="clr-namespace:Tango.Touch.Controls">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../Resources/Colors.xaml" />
</ResourceDictionary.MergedDictionaries>
<converters:BlurRadiusToMarginConverter x:Key="BlurRadiusToMarginConverter" ></converters:BlurRadiusToMarginConverter>
<Style TargetType="{x:Type local:TouchDropShadowBorder}">
<Setter Property="Background" Value="{StaticResource TangoPrimaryBackgroundBrush}"></Setter>
<Setter Property="CornerRadius" Value="3"></Setter>
<Setter Property="Color" Value="Silver"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:TouchDropShadowBorder}">
<Grid>
<aero:SystemDropShadowChrome CornerRadius="{TemplateBinding CornerRadius}" Color="{TemplateBinding Color}" Margin="{TemplateBinding BlurRadius,Converter={StaticResource BlurRadiusToMarginConverter}}">
<aero:SystemDropShadowChrome.RenderTransform>
<TranslateTransform X="-5" Y="-5"></TranslateTransform>
</aero:SystemDropShadowChrome.RenderTransform>
</aero:SystemDropShadowChrome>
<Border
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
Padding="{TemplateBinding Padding}">
<ContentPresenter Content="{TemplateBinding Content}" />
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
|