-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainSettings.xaml
More file actions
95 lines (93 loc) · 7.64 KB
/
MainSettings.xaml
File metadata and controls
95 lines (93 loc) · 7.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<Page x:Class="PaperWriting.MainSettings"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:PaperWriting"
xmlns:prop="clr-namespace:PaperWriting.Properties"
mc:Ignorable="d"
d:DesignHeight="1947.2" d:DesignWidth="400"
Title="MainSettings">
<Page.Resources>
<Style x:Key="title" TargetType="Label">
<Setter Property="FontFamily" Value="微软雅黑" />
<Setter Property="FontSize" Value="30" />
<Setter Property="Foreground" Value="#010101" />
<Setter Property="Margin" Value="20,30" />
</Style>
<local:TargetPositionComboBoxItems x:Key="target_pos" />
</Page.Resources>
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel>
<Label HorizontalAlignment="Left" VerticalAlignment="Top" Style="{StaticResource title}">公式</Label>
<local:SettingsItem SettingItemName="插入的内容" SettingItemTip="使用{}包裹域代码,转义符号\{和\}表示普通的花括弧;[]包裹引用时的文本,\[和\]表示普通的方括弧;#表示光标所处位置,\#表示普通的井号。 可以使用UnicodeMath关键字。"
SettingItemValue="{Binding Path=Formula,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" Height="140" />
<local:SettingsItem SettingItemName="使用的样式"
SettingItemValue="{Binding Path=FormulaStyle,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" />
<Label HorizontalAlignment="Left" VerticalAlignment="Top" Style="{StaticResource title}">图片</Label>
<local:SettingsItem SettingItemName="图片描述文本" SettingItemTip="使用{}包裹域代码,转义符号\{和\}表示普通的花括弧;[]包裹引用时的文本,\[和\]表示普通的方括弧;#表示光标所处位置,\#表示普通的井号。"
SettingItemValue="{Binding Path=Figure,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" Height="140" />
<local:SettingsItem SettingItemName="图片出现在" SettingItemTip=""
SettingItemValue="{Binding Path=FigurePosition,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Option" SettingItemOptions="{StaticResource target_pos}"
Margin="30,3" />
<local:SettingsItem SettingItemName="使用的样式"
SettingItemValue="{Binding Path=FigureStyle,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" />
<Label HorizontalAlignment="Left" VerticalAlignment="Top" Style="{StaticResource title}">表格</Label>
<local:SettingsItem SettingItemName="表格描述文本" SettingItemTip="使用{}包裹域代码,转义符号\{和\}表示普通的花括弧;[]包裹引用时的文本,\[和\]表示普通的方括弧;#表示光标所处位置,\#表示普通的井号。"
SettingItemValue="{Binding Path=Table,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" Height="140" />
<local:SettingsItem SettingItemName="表格出现在" SettingItemTip=""
SettingItemValue="{Binding Path=TablePosition,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Option" SettingItemOptions="{StaticResource target_pos}"
Margin="30,3" />
<local:SettingsItem SettingItemName="使用的样式"
SettingItemValue="{Binding Path=TableStyle,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" />
<local:SettingsItem SettingItemName="向打开的文档中添加三线表格样式"
SettingItemValue="{Binding Path=AddTableStyle,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Check"
Margin="30,3" />
<Label HorizontalAlignment="Left" VerticalAlignment="Top" Style="{StaticResource title}">标题</Label>
<local:SettingsItem SettingItemName="一级标题内容" SettingItemTip="使用{}包裹域代码,转义符号\{和\}表示普通的花括弧;#表示光标所处位置,\#表示普通的井号。"
SettingItemValue="{Binding Path=Header1,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" Height="140" />
<local:SettingsItem SettingItemName="一级标题样式"
SettingItemValue="{Binding Path=Header1Style,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" />
<local:SettingsItem SettingItemName="二级标题内容" SettingItemTip="使用{}包裹域代码,转义符号\{和\}表示普通的花括弧;#表示光标所处位置,\#表示普通的井号。"
SettingItemValue="{Binding Path=Header2,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" Height="140" />
<local:SettingsItem SettingItemName="二级标题样式"
SettingItemValue="{Binding Path=Header2Style,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" />
<local:SettingsItem SettingItemName="三级标题内容" SettingItemTip="使用{}包裹域代码,转义符号\{和\}表示普通的花括弧;#表示光标所处位置,\#表示普通的井号。"
SettingItemValue="{Binding Path=Header3,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" Height="140" />
<local:SettingsItem SettingItemName="三级标题样式"
SettingItemValue="{Binding Path=Header3Style,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Text"
Margin="30,3" />
<Label HorizontalAlignment="Left" VerticalAlignment="Top" Style="{StaticResource title}">杂项</Label>
<local:SettingsItem SettingItemName="总是另起一段插入内容"
SettingItemValue="{Binding Path=InsertToAnotherParagraph,Source={x:Static prop:Settings.Default},Mode=TwoWay}"
SettingItemType="Check"
Margin="30,3" />
</StackPanel>
</ScrollViewer>
</Page>