| 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:local="clr-namespace:UI.Controls.Base"> |
| 4 | <Style TargetType="{x:Type local:Placeholder}"> |
| 5 | <Setter Property="SnapsToDevicePixels" |
| 6 | Value="true" /> |
| 7 | |
| 8 | |
| 9 | |
| 10 | <Setter Property="Template"> |
| 11 | <Setter.Value> |
| 12 | <ControlTemplate TargetType="{x:Type local:Placeholder}"> |
| 13 | <Border CornerRadius="{TemplateBinding CornerRadius}" Background="{DynamicResource PlaceholderRectBgBrush}" ClipToBounds="True"> |
| 14 | <Border x:Name="Flash" Background="{DynamicResource PlaceholderRectBgFlashBrush}" Width="10" Height="{TemplateBinding Height}" Opacity=".5" RenderTransformOrigin="0,0.5"> |
| 15 | <Border.Effect> |
| 16 | <BlurEffect Radius="30" ></BlurEffect> |
| 17 | </Border.Effect> |
| 18 | <Border.RenderTransform> |
| 19 | <TransformGroup> |
| 20 | <TranslateTransform X="-10" /> |
| 21 | <RotateTransform Angle="15"/> |
| 22 | </TransformGroup> |
| 23 | </Border.RenderTransform> |
| 24 | </Border> |
| 25 | |
| 26 | </Border> |
| 27 | |
| 28 | </ControlTemplate> |
| 29 | </Setter.Value> |
| 30 | </Setter> |
| 31 | </Style> |
| 32 | </ResourceDictionary> |