mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-13 11:09:06 +00:00
56 lines
2.4 KiB
XML
56 lines
2.4 KiB
XML
<UserControl x:Class="QuickLook.Plugin.CLSIDViewer.RecycleBinPanel"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<Grid Margin="0,-50,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Image x:Name="image"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Width="48"
|
|
Height="48"
|
|
Opacity="1"
|
|
Stretch="Fill">
|
|
<Image.Style>
|
|
<Style TargetType="{x:Type Image}">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Source, ElementName=image}" Value="{x:Null}">
|
|
<DataTrigger.ExitActions>
|
|
<BeginStoryboard>
|
|
<Storyboard>
|
|
<DoubleAnimation BeginTime="0:0:0"
|
|
Storyboard.TargetProperty="Opacity"
|
|
From="0"
|
|
To="1"
|
|
Duration="0:0:0.05" />
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</DataTrigger.ExitActions>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Image.Style>
|
|
</Image>
|
|
<Grid Grid.Column="1" VerticalAlignment="Center">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock x:Name="totalSizeAndCount"
|
|
Grid.Row="0"
|
|
Padding="3" />
|
|
<Button x:Name="emptyButton"
|
|
Grid.Row="1"
|
|
Margin="0,5,0,0"
|
|
Command="{Binding EmptyRecycleBinCommand}" />
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|