Files
QuickLook/QuickLook.Plugin/QuickLook.Plugin.PluginInstaller/PluginInfoPanel.xaml

91 lines
4.1 KiB
XML

<UserControl x:Class="QuickLook.Plugin.PluginInstaller.PluginInfoPanel"
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"
Width="460"
Height="200"
FontSize="14"
mc:Ignorable="d">
<UserControl.Resources>
<Style x:Key="UnderlineTextButtonStyle" TargetType="Button">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Foreground" Value="{DynamicResource SystemControlForegroundAccentBrush}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<TextBlock Foreground="{TemplateBinding Foreground}"
Text="{TemplateBinding Content}"
TextDecorations="Underline" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="15" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="15" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="10" />
<RowDefinition Height="Auto" />
<RowDefinition Height="5" />
<RowDefinition Height="Auto" />
<RowDefinition Height="5" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="20" />
</Grid.RowDefinitions>
<TextBlock x:Name="filename"
Grid.Row="1"
Grid.Column="1"
MaxHeight="60"
Padding="3"
FontSize="19"
FontWeight="SemiBold"
LineHeight="25"
TextTrimming="CharacterEllipsis"
TextWrapping="Wrap">
QuickLook.Plugin.PluginInstaller
</TextBlock>
<TextBlock x:Name="version"
Grid.Row="3"
Grid.Column="1"
Padding="3"
Foreground="{DynamicResource WindowTextForegroundAlternative}">
Version 0
</TextBlock>
<TextBlock x:Name="description"
Grid.Row="5"
Grid.Column="1"
Padding="3"
Foreground="{DynamicResource WindowTextForegroundAlternative}"
TextWrapping="WrapWithOverflow">
I am a potato.
</TextBlock>
<StackPanel Grid.Row="6"
Grid.Column="1"
Margin="0,0,20,0"
HorizontalAlignment="Right"
Orientation="Horizontal">
<Button x:Name="btnInstall"
Content="Click here to install this plugin."
FontWeight="SemiBold"
Foreground="{DynamicResource WindowTextForegroundAlternative}"
Style="{DynamicResource CaptionTextButtonStyle}" />
<Button x:Name="btnRestart"
Margin="0,2,0,0"
Content="Restart now..."
Foreground="{DynamicResource AccentTextFillColorPrimaryBrush}"
Style="{DynamicResource UnderlineTextButtonStyle}"
Visibility="Collapsed" />
</StackPanel>
</Grid>
</Grid>
</UserControl>