blob: 7f7495e37e923aaeff0d80edf5fd9c12c7830205 (
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
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Tango.Touch.Controls">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../Resources/Colors.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="Border" x:Key="DropShadowBorder">
<Setter Property="CornerRadius" Value="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=CornerRadius,FallbackValue=0}"></Setter>
<Setter Property="Effect" Value="{x:Null}"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=EnableDropShadow}" Value="True">
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect BlurRadius="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=BlurRadius,FallbackValue=0}" ShadowDepth="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=ShadowDepth,FallbackValue=0}" Color="{Binding RelativeSource={RelativeSource AncestorType=local:ITouchControl},Path=ShadowColor}" />
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
|