mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
173 lines
7.9 KiB
XML
173 lines
7.9 KiB
XML
<UserControl x:Class="QuickLook.Plugin.AppViewer.WgtInfoPanel"
|
|
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:local="clr-namespace:QuickLook.Plugin.AppViewer"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
FontSize="14"
|
|
UseLayoutRounding="True"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="15" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="150" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Image x:Name="image"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="120"
|
|
Height="120"
|
|
Margin="8"
|
|
VerticalAlignment="Top"
|
|
Source="/QuickLook.Plugin.AppViewer;component/Resources/uni-app.png"
|
|
Stretch="Fill" />
|
|
<Grid Grid.Row="1" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="5" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="10" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="10" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="10" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="* " />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="1"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0"
|
|
MaxHeight="60"
|
|
Padding="3"
|
|
FontSize="19"
|
|
FontWeight="SemiBold"
|
|
LineHeight="25"
|
|
TextTrimming="CharacterEllipsis"
|
|
TextWrapping="Wrap">
|
|
<TextBlock.Inlines>
|
|
<Run x:Name="filename" Text="FilenameFilenameFilenameFilenameFilenameFilenameFilenameFilenameFilenameFilename.ext" />
|
|
</TextBlock.Inlines>
|
|
</TextBlock>
|
|
</Grid>
|
|
<!-- Application Name -->
|
|
<TextBlock x:Name="applicationNameTitle"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Application Name" />
|
|
<TextBlock x:Name="applicationName"
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Margin="8,0,0,0"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Searching..."
|
|
TextTrimming="CharacterEllipsis"
|
|
TextWrapping="Wrap" />
|
|
<!-- Version Name -->
|
|
<TextBlock x:Name="versionNameTitle"
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Version" />
|
|
<TextBlock x:Name="versionName"
|
|
Grid.Row="4"
|
|
Grid.Column="2"
|
|
Margin="8,0,0,0"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Searching..."
|
|
TextTrimming="CharacterEllipsis"
|
|
TextWrapping="Wrap" />
|
|
<!-- Version Code -->
|
|
<TextBlock x:Name="versionCodeTitle"
|
|
Grid.Row="5"
|
|
Grid.Column="1"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Version Code" />
|
|
<TextBlock x:Name="versionCode"
|
|
Grid.Row="5"
|
|
Grid.Column="2"
|
|
Margin="8,0,0,0"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Searching..."
|
|
TextTrimming="CharacterEllipsis"
|
|
TextWrapping="Wrap" />
|
|
<!-- Total Size -->
|
|
<TextBlock x:Name="totalSizeTitle"
|
|
Grid.Row="6"
|
|
Grid.Column="1"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Total Size" />
|
|
<TextBlock x:Name="totalSize"
|
|
Grid.Row="6"
|
|
Grid.Column="2"
|
|
Margin="8,0,0,0"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Calculating size..." />
|
|
<!-- Last Modified -->
|
|
<TextBlock x:Name="modDateTitle"
|
|
Grid.Row="7"
|
|
Grid.Column="1"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Last Modified" />
|
|
<TextBlock x:Name="modDate"
|
|
Grid.Row="7"
|
|
Grid.Column="2"
|
|
Margin="8,0,0,0"
|
|
Padding="3"
|
|
Foreground="{DynamicResource WindowTextForegroundAlternative}"
|
|
Text="Searching..."
|
|
TextTrimming="CharacterEllipsis" />
|
|
<!-- Permissions -->
|
|
<GroupBox x:Name="permissionsGroupBox"
|
|
Grid.Row="8"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,0,16,16"
|
|
BorderThickness="0.4"
|
|
Header="Capabilities">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<ScrollViewer.Resources>
|
|
<Style TargetType="{x:Type TextBox}">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
</Style>
|
|
</ScrollViewer.Resources>
|
|
<ItemsControl x:Name="permissions">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBox Margin="8,3,16,3"
|
|
IsReadOnly="True"
|
|
Text="{Binding ., Mode=OneTime}" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</GroupBox>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl> |