123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- <UserControl
- x:Class="PDF_Master.Views.Dialog.PropertiesDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:cus="clr-namespace:PDF_Master.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataconvert="clr-namespace:PDF_Master.DataConvert"
- xmlns:dialog="clr-namespace:PDF_Master.ViewModels.Dialog"
- xmlns:local="clr-namespace:PDF_Master.Views.Dialog"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- Width="457"
- Height="674"
- d:DataContext="{d:DesignInstance Type=dialog:PropertiesDialogViewModel}"
- prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Background="{StaticResource color.sys.layout.anti}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <dataconvert:UnVisivleConvert x:Key="UnvisibleConvert" />
- <Style x:Key="Label" TargetType="Label">
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv2}" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FontSize" Value="12" />
- <Setter Property="FontWeight" Value="Bold" />
- </Style>
- <Style x:Key="Label2" TargetType="Label">
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv2}" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="Margin" Value="8,8,8,0" />
- </Style>
- <Style x:Key="TextBlock" TargetType="TextBlock">
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="Margin" Value="8,8,8,0" />
- <Setter Property="TextTrimming" Value="CharacterEllipsis" />
- <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Text}" />
- </Style>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock
- Width="550"
- Margin="16,6"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontFamily="Segoe UI"
- FontSize="16"
- FontWeight="Bold"
- Foreground="{StaticResource color.sys.text.neutral.lv1}"
- Text="Properties" />
- <StackPanel
- Name="StkPnlRight"
- HorizontalAlignment="Right"
- Orientation="Horizontal"
- WindowChrome.IsHitTestVisibleInChrome="True">
- <Button
- Name="BtnClose"
- Width="40"
- Height="40"
- Background="Transparent"
- BorderThickness="0"
- Click="BtnClose_Click"
- Style="{StaticResource CloseBtn}">
- <Polygon Fill="{StaticResource color.btn.sec.text.def}" Points="11.2919922 12 12 11.2919922 6.70800781 6 12 0.708007813 11.2919922 0 6 5.29199219 0.708007812 9.76996262e-15 -2.27456942e-13 0.708007813 5.29199219 6 0 11.2919922 0.708007812 12 6 6.70800781" />
- </Button>
- </StackPanel>
- <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
- <StackPanel Margin="16,6">
- <Label Content="Abstract" Style="{StaticResource Label}" />
- <Border
- Margin="0,10"
- Background="{StaticResource color.sys.layout.mg}"
- CornerRadius="6">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="125" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Label Content="Name" Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding FileName}"
- TextTrimming="CharacterEllipsis"
- ToolTip="{Binding FileName}" />
- <Label
- Grid.Row="1"
- Content="Size"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding FileSize}" />
- <Label
- Grid.Row="2"
- Content="Title"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="2"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding FileTitle}" />
- <Label
- Grid.Row="3"
- Content="Author"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="3"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding Author}" />
- <Label
- Grid.Row="4"
- Margin="8"
- Content="Location"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="4"
- Grid.Column="1"
- Margin="8"
- Foreground="{StaticResource color.btn.link.text.norm}"
- PreviewMouseDown="TextBlock_PreviewMouseDown"
- Style="{StaticResource TextBlock}"
- Text="{Binding FilePath}"
- TextDecorations="Underline"
- TextTrimming="WordEllipsis"
- ToolTip="{Binding FilePath}" />
- </Grid>
- </Border>
- <Label Content="Create Message" Style="{StaticResource Label}" />
- <Border
- Margin="0,10"
- Background="{StaticResource color.sys.layout.mg}"
- CornerRadius="6">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="125" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Label Content="Versions" Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding Version}" />
- <Label
- Grid.Row="1"
- Content="Page"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding PageCount}" />
- <Label
- Grid.Row="2"
- Content="Creator"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="2"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding Creator}" />
- <Label
- Grid.Row="3"
- Content="Producer"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="3"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding Productor}" />
- <Label
- Grid.Row="4"
- Content="Creation Date"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="4"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding CreateDate}" />
- <Label
- Grid.Row="5"
- Margin="8"
- Content="Modify date"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="5"
- Grid.Column="1"
- Margin="8"
- Style="{StaticResource TextBlock}"
- Text="{Binding ModifyDate}" />
- </Grid>
- </Border>
- <Label Content="Permissions" Style="{StaticResource Label}" />
- <Border
- Margin="0,10"
- Background="{StaticResource color.sys.layout.mg}"
- CornerRadius="6">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="125" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Label Content="Encrypted" Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding IsEncrypted}" />
- <Label
- Grid.Row="1"
- Content="Unlocked"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding IsUnlocked}" />
- <Label
- Grid.Row="2"
- Content="Allow Copying"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="2"
- Grid.Column="1"
- Style="{StaticResource TextBlock}"
- Text="{Binding AllowCopy}" />
- <Label
- Grid.Row="3"
- Margin="8"
- Content="Allow printing"
- Style="{StaticResource Label2}" />
- <TextBlock
- Grid.Row="3"
- Grid.Column="1"
- Margin="8"
- Style="{StaticResource TextBlock}"
- Text="{Binding AllowPrint}" />
- </Grid>
- </Border>
- </StackPanel>
- </ScrollViewer>
- </Grid>
- </UserControl>
|