| 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:EmptyData}"> |
| 5 | <Setter Property="SnapsToDevicePixels" |
| 6 | Value="true" /> |
| 7 | <Setter Property="HorizontalAlignment" |
| 8 | Value="Left" /> |
| 9 | <Setter Property="ToolTip" |
| 10 | Value="什么都没有" /> |
| 11 | |
| 12 | <Setter Property="Template"> |
| 13 | <Setter.Value> |
| 14 | <ControlTemplate TargetType="{x:Type local:EmptyData}"> |
| 15 | <Border > |
| 16 | |
| 17 | <Grid> |
| 18 | <Grid.RowDefinitions> |
| 19 | <RowDefinition Height="auto"/> |
| 20 | <RowDefinition Height="auto"/> |
| 21 | </Grid.RowDefinitions> |
| 22 | <Grid> |
| 23 | <Border Background="{DynamicResource StandardBackgroundBrush}" BorderThickness="4" CornerRadius="10" Width="100" Height="100"> |
| 24 | <Border.RenderTransform> |
| 25 | <RotateTransform Angle="5"/> |
| 26 | </Border.RenderTransform> |
| 27 | <Border.Effect> |
| 28 | <DropShadowEffect Color="#d8d2d2" BlurRadius="10" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> |
| 29 | </Border.Effect> |
| 30 | <StackPanel> |
| 31 | <Border Background="#c4c4c4" BorderThickness="4" CornerRadius="6" Height="20" Margin="5"/> |
| 32 | <Border Background="#f0f0f0" BorderThickness="4" CornerRadius="6" Height="40" Margin="5"/> |
| 33 | </StackPanel> |
| 34 | |
| 35 | </Border> |
| 36 | <Border HorizontalAlignment="Left" Margin="30,0,0,30" Background="{DynamicResource StandardBackgroundBrush}" BorderThickness="4" CornerRadius="10" Width="100" Height="100"> |
| 37 | |
| 38 | <Border.Effect> |
| 39 | <DropShadowEffect Color="#d8d2d2" BlurRadius="10" Direction="300" ShadowDepth="4" Opacity="0.1" RenderingBias="Performance" ></DropShadowEffect> |
| 40 | </Border.Effect> |
| 41 | <StackPanel> |
| 42 | <Border Background="#c4c4c4" BorderThickness="4" CornerRadius="6" Height="20" Margin="5"/> |
| 43 | <Border Background="#f0f0f0" BorderThickness="4" CornerRadius="6" Height="30" Margin="5,0"> |
| 44 | <TextBlock Foreground="Gray" Opacity=".4" Text="Tai" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Center"/> |
| 45 | </Border> |
| 46 | <TextBlock VerticalAlignment="Center" Text="暂时没有数据" FontSize="10" Margin="0,5" HorizontalAlignment="Center" Foreground="Gray" Opacity=".7"/> |
| 47 | </StackPanel> |
| 48 | |
| 49 | </Border> |
| 50 | </Grid> |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | </Grid> |
| 56 | |
| 57 | </Border> |
| 58 | |
| 59 | </ControlTemplate> |
| 60 | </Setter.Value> |
| 61 | </Setter> |
| 62 | </Style> |
| 63 | </ResourceDictionary> |