瀏覽代碼

compdfkit(win) - 历史记录 UI

weixiangjie 1 年之前
父節點
當前提交
13717c4d95

+ 1 - 1
Demo/Examples/Compdfkit_Tools/Common/HomePage/HomePageControl.xaml

@@ -20,7 +20,7 @@
                     <RowDefinition MinHeight="200"></RowDefinition>
                 </Grid.RowDefinitions>
                 <local:FeaturesListControl x:Name="FeaturesListControl"></local:FeaturesListControl>
-                <local:RecentFilesControl Grid.Row="1"></local:RecentFilesControl>
+                <local:RecentFilesControl Grid.Row="1" Margin="0,20,0,0"></local:RecentFilesControl>
             </Grid>
     </Grid>
 </UserControl>

File diff suppressed because it is too large
+ 108 - 10
Demo/Examples/Compdfkit_Tools/Common/HomePage/RecentFilesControl.xaml


+ 1 - 0
Demo/Examples/PDFViewer/App.xaml.cs

@@ -56,6 +56,7 @@ namespace PDFViewer
         {
             PDFFileInfo fileInfo = new PDFFileInfo();
             fileInfo.FilePath = item;
+            fileInfo.FileName = Path.GetFileName(item);
             fileInfo.FileSize = CommonHelper.GetFileSize(fileInfo.FilePath);
             fileInfo.OpenDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
             FileHistoryHelper<PDFFileInfo>.Instance.AddHistory(fileInfo);

+ 1 - 1
Demo/Examples/PDFViewer/MainWindow.xaml

@@ -11,7 +11,7 @@
         xmlns:cpdftools="clr-namespace:Compdfkit_Tools.PDFControl;assembly=Compdfkit_Tools"
         xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz"
         BorderThickness="{Binding RelativeSource={RelativeSource Mode=Self},Path=WindowState,Converter={StaticResource WindowStateToThicknessConverter}}"
-        Title="ComPDFKit V1.10.0" Height="720" Width="1080" >
+        Title="ComPDFKit V1.10.0" Height="720" Width="1200" MinWidth="780" >
     <WindowChrome.WindowChrome>
         <WindowChrome 
             CornerRadius="3"