123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <UserControl x:Class="PDF_Master.Views.HomePanel.PDFTools.HomeFilesContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:controls="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
- xmlns:converter="clr-namespace:PDF_Master.DataConvert"
- xmlns:customControl="clr-namespace:PDF_Master.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Master.Views.HomePanel"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pdftools="clr-namespace:PDF_Master.ViewModels.HomePanel.PDFTools"
- xmlns:prism="http://prismlibrary.com/"
- d:DesignWidth="968"
- d:DesignHeight="600"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <Grid x:Name="Gridroot" Margin="0,0,0,0" >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="auto"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel x:Name="OpenFileStackPanel" Grid.Column="0" Grid.Row="0" Margin="0,0,20,0" SizeChanged="StackPanel_SizeChanged">
- <TextBlock Text="{Binding T_OpenPDFTitle}" FontFamily="Segoe UI" Margin="0,16,0,0"
- FontSize="20"
- FontWeight="Bold"
- Foreground="{StaticResource color.sys.text.neutral.lv1}" Height="28"></TextBlock>
- <Border Margin="0,16,0,0" Height="264" CornerRadius="8" BorderThickness="1"
- Background="Transparent"
- Drop="Grid_Drop"
- DragEnter="MainPage_DragEnter"
- DragOver="MainPage_DragOver"
- DragLeave="MainPage_DragLeave" MouseEnter="Grid_MouseEnter" MouseLeave="Grid_MouseLeave">
- <Border.BorderBrush>
- <VisualBrush>
- <VisualBrush.Visual>
- <Grid >
- <Rectangle Name="NormalColorBorder" StrokeDashArray="4 2" RadiusX="8" RadiusY="8" Stroke="{StaticResource color.sys.border.neutral.lv1}"
- Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
- Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}">
- </Rectangle>
- <Rectangle Name="DropColorBorder" RadiusX="8" RadiusY="8" Stroke="{StaticResource color.btn.cta.bg.hov}"
- Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
- Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}" Visibility="Collapsed">
- </Rectangle>
- </Grid>
- </VisualBrush.Visual>
- </VisualBrush>
- </Border.BorderBrush>
- <Grid>
- <StackPanel x:Name="NoStampStackPanel" VerticalAlignment="Center" >
- <Image
- Width="128"
- Height="128"
- Source="pack://application:,,,/PDF Master;component/Resources/HomeTools/add_files.png" />
- <Button MaxWidth="300" MinWidth="250" Height="30" Margin="0,8,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource Btn.cta}" Command="{Binding OpenFileCommand}">
- <StackPanel Orientation="Horizontal">
- <Path Data="M6.39722 5.50001L5.95192 4.83206L4.82691 3.14454C4.80836 3.11672 4.77714 3.10001 4.74371 3.10001H1.6C1.54477 3.10001 1.5 3.14478 1.5 3.20001V12.8C1.5 12.8552 1.54477 12.9 1.6 12.9H14.4C14.4552 12.9 14.5 12.8552 14.5 12.8V5.60001C14.5 5.54478 14.4552 5.50001 14.4 5.50001H7.2H6.39722ZM1.6 1.60001C0.716345 1.60001 0 2.31635 0 3.20001V12.8C0 13.6837 0.716345 14.4 1.6 14.4H14.4C15.2837 14.4 16 13.6837 16 12.8V5.60001C16 4.71635 15.2837 4.00001 14.4 4.00001H7.2L6.07499 2.31249C5.77824 1.86737 5.27867 1.60001 4.74371 1.60001H1.6Z" Fill="{StaticResource color.btn.brand.text.def}"></Path>
- <TextBlock Text="{Binding T_OpenPDFBtn}" Foreground="{StaticResource color.btn.brand.text.def}" Margin="12,0,0,0"></TextBlock>
- </StackPanel>
- </Button>
- <TextBlock
- Width="300"
- Margin="0,8,0,0"
- HorizontalAlignment="Center"
- FontFamily="Segoe UI"
- FontSize="12"
- Foreground="#94989C"
- Text="{Binding T_OpenPDFDropTip}"
- TextAlignment="Center"/>
- </StackPanel>
- </Grid>
- </Border>
- </StackPanel>
- <StackPanel x:Name="CreatPDFStackPanel" Grid.Column="{Binding CreatGridColumnIndex}" Grid.Row="{Binding CreatGridRowIndex}" MinWidth="314" >
- <TextBlock Text="{Binding T_CreatePDFTitle}" FontFamily="Creat PDF" Margin="0,16,0,0"
- FontSize="20"
- FontWeight="Bold"
- Foreground="{StaticResource color.sys.text.neutral.lv1}" Height="28"></TextBlock>
- <Button Style="{StaticResource OpenPDFFileBtn}" Height="80" Margin="0,16,0,0" Background="Transparent" HorizontalContentAlignment="Left" Command="{Binding CreateFromOtherFile}">
- <StackPanel Orientation="Horizontal" Height="48" Margin="20,0,0,0">
- <Path Data="M15 4.75C13.2051 4.75 11.75 6.20507 11.75 8V13.75H9C7.20507 13.75 5.75 15.2051 5.75 17V40C5.75 41.7949 7.20507 43.25 9 43.25H39C40.7949 43.25 42.25 41.7949 42.25 40V24C42.25 22.2051 40.7949 20.75 39 20.75H36.25V8C36.25 6.20508 34.7949 4.75 33 4.75H15ZM33.75 20.75V8C33.75 7.58579 33.4142 7.25 33 7.25H15C14.5858 7.25 14.25 7.58579 14.25 8V13.75H15.5H18.6245C19.7601 13.75 20.8133 14.3427 21.4026 15.3133L24.4844 20.3892C24.6204 20.6132 24.8634 20.75 25.1255 20.75H33.75ZM8.25 17C8.25 16.5858 8.58579 16.25 9 16.25H15.5H18.6245C18.8866 16.25 19.1296 16.3868 19.2656 16.6108L22.3474 21.6867C22.9367 22.6573 23.9899 23.25 25.1255 23.25H39C39.4142 23.25 39.75 23.5858 39.75 24V40C39.75 40.4142 39.4142 40.75 39 40.75H9C8.58579 40.75 8.25 40.4142 8.25 40V17ZM32 26.75C32.6904 26.75 33.25 27.3096 33.25 28V30.75H36C36.6904 30.75 37.25 31.3096 37.25 32C37.25 32.6904 36.6904 33.25 36 33.25H33.25V36C33.25 36.6904 32.6904 37.25 32 37.25C31.3096 37.25 30.75 36.6904 30.75 36V33.25H28C27.3096 33.25 26.75 32.6904 26.75 32C26.75 31.3096 27.3096 30.75 28 30.75H30.75V28C30.75 27.3096 31.3096 26.75 32 26.75Z" Fill="#CED0D4"></Path>
- <TextBlock Text="{Binding T_CreatePDFNewFromFilesBtn}" Foreground="{StaticResource color.btn.sec.text.def}" Margin="12,0,0,0" Height="24" FontSize="16"></TextBlock>
- </StackPanel>
- </Button>
- <Button Style="{StaticResource OpenPDFFileBtn}" Height="80" Margin="0,12,0,0" Background="Transparent" HorizontalContentAlignment="Left" Command="{Binding CreateBlackPDFCommand}">
- <StackPanel Orientation="Horizontal" Height="48" Margin="20,0,0,0">
- <Path Data="M33.3981 10.1975L33.3522 10.1473L29.7889 6.25H10.75V41.75H37.25V13.9755L33.4467 10.2451L33.3981 10.1975ZM35.1973 8.46031L31.4853 4.40045C31.1064 3.98604 30.5708 3.75 30.0093 3.75H10.25C9.14543 3.75 8.25 4.64543 8.25 5.75V42.25C8.25 43.3545 9.14543 44.25 10.25 44.25H37.75C38.8545 44.25 39.75 43.3545 39.75 42.25V13.7656C39.75 13.2284 39.5339 12.7139 39.1504 12.3377L35.1973 8.46031ZM33.7173 29.6423C33.7173 34.9994 29.3745 39.3423 24.0173 39.3423C18.6601 39.3423 14.3173 34.9994 14.3173 29.6423C14.3173 24.2851 18.6601 19.9423 24.0173 19.9423C29.3745 19.9423 33.7173 24.2851 33.7173 29.6423ZM24.0173 36.8423C27.9938 36.8423 31.2173 33.6187 31.2173 29.6423C31.2173 25.6658 27.9938 22.4423 24.0173 22.4423C20.0409 22.4423 16.8173 25.6658 16.8173 29.6423C16.8173 33.6187 20.0409 36.8423 24.0173 36.8423ZM24.0158 25.4674C24.7062 25.4674 25.2658 26.0271 25.2658 26.7174V28.3907H26.9392C27.6296 28.3907 28.1892 28.9503 28.1892 29.6407C28.1892 30.331 27.6296 30.8907 26.9392 30.8907H25.2658V32.5642C25.2658 33.2546 24.7062 33.8142 24.0158 33.8142C23.3254 33.8142 22.7658 33.2546 22.7658 32.5642V30.8907H21.0925C20.4021 30.8907 19.8425 30.331 19.8425 29.6407C19.8425 28.9503 20.4021 28.3907 21.0925 28.3907H22.7658V26.7174C22.7658 26.0271 23.3254 25.4674 24.0158 25.4674ZM29.25 8V14.75H36V17.25H28C27.3096 17.25 26.75 16.6904 26.75 16V8H29.25Z" Fill="#CED0D4"></Path>
- <TextBlock Text="{Binding T_CreatePDFNewBlankPageBtn}" Foreground="{StaticResource color.btn.sec.text.def}" Margin="12,0,0,0" Height="24" FontSize="16"></TextBlock>
- </StackPanel>
- </Button>
- <Button Style="{StaticResource OpenPDFFileBtn}" Height="80" Margin="0,12,0,0" Background="Transparent" HorizontalContentAlignment="Left" Command="{Binding CreateFromScanner}">
- <StackPanel Orientation="Horizontal" Height="48" Margin="20,0,0,0">
- <Path Data="M34.5502 6.3021C35.1312 5.9292 35.2999 5.15593 34.927 4.57495C34.554 3.99397 33.7808 3.8253 33.1998 4.1982L6.3248 21.4481C6.27868 21.4777 6.23516 21.5098 6.1943 21.5442C5.49097 21.8541 5 22.5573 5 23.3752V38.3752C5 39.4798 5.89543 40.3752 7 40.3752H41C42.1046 40.3752 43 39.4798 43 38.3752V23.3752C43 22.2707 42.1046 21.3752 41 21.3752H11.0665L34.5502 6.3021ZM40.5 37.8752V23.8752H7.5V37.8752H40.5ZM25 18.3753C25 17.6849 25.5596 17.1253 26.25 17.1253H41.25C41.9404 17.1253 42.5 17.6849 42.5 18.3753C42.5 19.0656 41.9404 19.6253 41.25 19.6253H26.25C25.5596 19.6253 25 19.0656 25 18.3753ZM24 36.3752C25.1046 36.3752 26 35.4798 26 34.3752C26 33.2707 25.1046 32.3752 24 32.3752C22.8954 32.3752 22 33.2707 22 34.3752C22 35.4798 22.8954 36.3752 24 36.3752ZM32.25 34.3752C32.25 35.4798 31.3546 36.3752 30.25 36.3752C29.1454 36.3752 28.25 35.4798 28.25 34.3752C28.25 33.2707 29.1454 32.3752 30.25 32.3752C31.3546 32.3752 32.25 33.2707 32.25 34.3752ZM36.5 36.3752C37.6046 36.3752 38.5 35.4798 38.5 34.3752C38.5 33.2707 37.6046 32.3752 36.5 32.3752C35.3954 32.3752 34.5 33.2707 34.5 34.3752C34.5 35.4798 35.3954 36.3752 36.5 36.3752Z" Fill="#CED0D4"></Path>
- <TextBlock Text="{Binding T_CreatePDFFromScannerBtn}" Foreground="{StaticResource color.btn.sec.text.def}" Margin="12,0,0,0" Height="24" FontSize="16" ></TextBlock>
- </StackPanel>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|