Browse Source

文档补充

liuaoran 2 years ago
parent
commit
cdf65cfe45

+ 29 - 0
PDF Office/StyleAndTemplateList.txt

@@ -7,6 +7,18 @@
 用途:用于调整HeaderPanel水平居中(不影响Content位置的前提下)
 目前用于:阅读页工具栏、BOTA多页签部分
 
+2.InsideBarBtnStyle
+样式位置:PDF Office\Styles\TabControlStyle.xaml
+用途:工具条的透明按钮
+示例:D:\PDF_Office\PDF Office\Views\Tools\ToolsBarContent.xaml
+
+3.CheckBoxStyle
+样式位置:PDF Office\Styles\TabControlStyle.xaml
+用途:是否设置相对目标页面比例的CheckBox,点击后变为黑底白勾
+示例:D:\PDF_Office\PDF Office\Views\EditTools\Background\BackgroundCreateColorContent.xaml
+备注:勾符号的Path可能需要重绘
+
+
 自定义控件
 1.LoadingContorl
 位置:PDF Office\CustomControl\LoadingControl.xaml
@@ -17,3 +29,20 @@
 位置:PDF Office\CustomControl\ToastControl.xaml
 用途:部分操作后,在界面中间显示提示,一段时候后自动渐隐消失
 使用方法:VM里绑定一个bool变量,设为True时,Toast开始显示,开始渐隐时间(beginTime),和渐隐时间(Duration)在xaml里设置
+
+3.WritableComboBox
+位置:PDF Office\CustomControl\WritableComboBox.xaml
+用途:设置页面范围
+提供可选项:全部页面,奇数页,偶数页,自定义页面,可在xaml.cs中用Loading方式添加当前页选项
+使用方法:绑定Text,搭配Helper/HomePageEditHelper.cs中的GetPagerange方法。
+
+4.NumericUpDown
+位置:PDF Office\CustomControl\NumericUpDown.xaml
+用途:一个TextBox和两个按钮,可以输入数字,并通过旁边的按钮调节数字,每次+1/-1
+使用方法:Text和后台属性绑定,按按钮或者输入数字时自动修改。
+
+5.CommonWritableComboBox
+位置:PDF Office\CustomControl\CommonWritableComboBox.xaml
+用途:设置带单位可输入的ComboBox
+提供可选项:绑定TypeSource设置可选项
+使用方法:设置Text设置初始值,绑定Value获得无单位的真值,Unit设置单位无单位为" "空格,其他单位为单个字符单位"%" 

+ 1 - 1
PDF Office/Views/Dialog/ToolsDialogs/CompressDialogs/CompressDialog.xaml

@@ -3,7 +3,7 @@
              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"
-             xmlns:prism="http://prismlibrary.com/"             
+             xmlns:prism="http://prismlibrary.com/" xmlns:compressdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.ToolsDialogs.CompressDialogs" d:DataContext="{d:DesignInstance Type=compressdialogs:CompressDialogViewModel}"
              prism:ViewModelLocator.AutoWireViewModel="True">
     <UserControl.Resources>
         <ResourceDictionary>