跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

Placeholder.xaml

32 行 · 1.5 KB历史下载
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>