FormsToolContent.xaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <UserControl
  2. x:Class="PDF_Master.Views.Form.FormsToolContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:convert="clr-namespace:PDF_Master.DataConvert"
  6. xmlns:cus="clr-namespace:PDF_Master.CustomControl"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:form="clr-namespace:PDF_Master.ViewModels.Form"
  9. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  10. xmlns:local="clr-namespace:PDF_Master.Views.Form"
  11. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  12. xmlns:prism="http://prismlibrary.com/"
  13. d:DataContext="{d:DesignInstance Type=form:FormsToolContentViewModel}"
  14. d:DesignHeight="40"
  15. d:DesignWidth="800"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. Loaded="UserControl_Loaded"
  18. Unloaded="UserControl_Unloaded"
  19. mc:Ignorable="d">
  20. <UserControl.Resources>
  21. <convert:UnVisivleConvert x:Key="UnVisibleConvert" />
  22. <Style BasedOn="{StaticResource RectangleRadionButtonWithCorner}" TargetType="{x:Type RadioButton}">
  23. <Setter Property="Width" Value="28" />
  24. <Setter Property="Height" Value="28" />
  25. <Setter Property="Margin" Value="4,6" />
  26. <Setter Property="Background" Value="Transparent" />
  27. </Style>
  28. <!-- 外围图形的填充颜色和样式 -->
  29. <Style x:Key="BorderPath" TargetType="{x:Type Path}">
  30. <Setter Property="Width" Value="20" />
  31. <Setter Property="Height" Value="20" />
  32. <Setter Property="Stretch" Value="Uniform" />
  33. <Setter Property="Fill" Value="{StaticResource color.icon.base.brand}" />
  34. </Style>
  35. <!-- 内部图形的填充颜色和样式 -->
  36. <Style x:Key="ContentPath" TargetType="{x:Type Path}">
  37. <Setter Property="Fill" Value="{StaticResource color.icon.base.neutral.norm.lv2}" />
  38. </Style>
  39. </UserControl.Resources>
  40. <Grid VerticalAlignment="Center">
  41. <StackPanel x:Name="PnlTool" HorizontalAlignment="Center" Orientation="Horizontal">
  42. <RadioButton>
  43. <Grid>
  44. <Path Data="M3 4H18C18.2761 4 18.5 4.22386 18.5 4.5V11L13.5 16H3C2.72386 16 2.5 15.7761 2.5 15.5V4.5C2.5 4.22386 2.72386 4 3 4ZM0.5 4.5C0.5 3.11929 1.61929 2 3 2H18C19.3807 2 20.5 3.11929 20.5 4.5V15.5C20.5 16.8807 19.3807 18 18 18H3C1.61929 18 0.5 16.8807 0.5 15.5V4.5Z" Style="{StaticResource BorderPath}" />
  45. <Path Data="M6 5.5H7H9H10H12V7.5V8.5H10V7.5H9V12.5H10V14.5H6V12.5H7V7.5H6V8.5H4V7.5V5.5H6Z" Style="{StaticResource ContentPath}" />
  46. </Grid>
  47. <i:Interaction.Triggers>
  48. <i:EventTrigger EventName="Checked">
  49. <i:InvokeCommandAction Command="{Binding CheckedCommand}" CommandParameter="Text" />
  50. </i:EventTrigger>
  51. <i:EventTrigger EventName="Click">
  52. <i:InvokeCommandAction Command="{Binding ClickCommand}" CommandParameter="Text" />
  53. </i:EventTrigger>
  54. </i:Interaction.Triggers>
  55. </RadioButton>
  56. <RadioButton>
  57. <Grid>
  58. <Path Data="M17 3H4C3.72386 3 3.5 3.22386 3.5 3.5V16.5C3.5 16.7761 3.72386 17 4 17H17C17.2761 17 17.5 16.7761 17.5 16.5V3.5C17.5 3.22386 17.2761 3 17 3ZM4 1C2.61929 1 1.5 2.11929 1.5 3.5V16.5C1.5 17.8807 2.61929 19 4 19H17C18.3807 19 19.5 17.8807 19.5 16.5V3.5C19.5 2.11929 18.3807 1 17 1H4Z" Style="{StaticResource BorderPath}" />
  59. <Path Data="M16.3 6.60002L10.3 14.6C10.1261 14.8319 9.86007 14.977 9.5709 14.9975C9.28174 15.0181 8.99789 14.9121 8.79291 14.7071L4.79291 10.7071L6.20712 9.29292L9.39182 12.4776L14.7 5.40002L16.3 6.60002Z" Style="{StaticResource ContentPath}" />
  60. </Grid>
  61. <i:Interaction.Triggers>
  62. <i:EventTrigger EventName="Checked">
  63. <i:InvokeCommandAction Command="{Binding CheckedCommand}" CommandParameter="CheckBox" />
  64. </i:EventTrigger>
  65. <i:EventTrigger EventName="Click">
  66. <i:InvokeCommandAction Command="{Binding ClickCommand}" CommandParameter="CheckBox" />
  67. </i:EventTrigger>
  68. </i:Interaction.Triggers>
  69. </RadioButton>
  70. <RadioButton>
  71. <Grid>
  72. <Path Data="M10.5 18C14.9183 18 18.5 14.4183 18.5 10C18.5 5.58172 14.9183 2 10.5 2C6.08172 2 2.5 5.58172 2.5 10C2.5 14.4183 6.08172 18 10.5 18ZM10.5 20C16.0228 20 20.5 15.5228 20.5 10C20.5 4.47715 16.0228 0 10.5 0C4.97715 0 0.5 4.47715 0.5 10C0.5 15.5228 4.97715 20 10.5 20Z" Style="{StaticResource BorderPath}" />
  73. <Path Fill="{StaticResource color.icon.base.neutral.norm.lv2}">
  74. <Path.Data>
  75. <EllipseGeometry
  76. Center="10 10"
  77. RadiusX="4"
  78. RadiusY="4" />
  79. </Path.Data>
  80. </Path>
  81. </Grid>
  82. <i:Interaction.Triggers>
  83. <i:EventTrigger EventName="Checked">
  84. <i:InvokeCommandAction Command="{Binding CheckedCommand}" CommandParameter="RadioButton" />
  85. </i:EventTrigger>
  86. <i:EventTrigger EventName="Click">
  87. <i:InvokeCommandAction Command="{Binding ClickCommand}" CommandParameter="RadioButton" />
  88. </i:EventTrigger>
  89. </i:Interaction.Triggers>
  90. </RadioButton>
  91. <RadioButton>
  92. <Grid>
  93. <Path Data="M1.5 2C0.947715 2 0.5 2.44772 0.5 3V17C0.5 17.5523 0.947715 18 1.5 18H19.5C20.0523 18 20.5 17.5523 20.5 17V3C20.5 2.44772 20.0523 2 19.5 2H1.5ZM2.5 9V4H18.5V9H2.5ZM2.5 11V16H18.5V11H2.5Z" Style="{StaticResource BorderPath}" />
  94. <Path Data="M8.5 5.5H4.5V7.5H8.5V5.5ZM8.5 12.5H4.5V14.5H8.5V12.5Z" Style="{StaticResource ContentPath}" />
  95. </Grid>
  96. <i:Interaction.Triggers>
  97. <i:EventTrigger EventName="Checked">
  98. <i:InvokeCommandAction Command="{Binding CheckedCommand}" CommandParameter="ListBox" />
  99. </i:EventTrigger>
  100. <i:EventTrigger EventName="Click">
  101. <i:InvokeCommandAction Command="{Binding ClickCommand}" CommandParameter="ListBox" />
  102. </i:EventTrigger>
  103. </i:Interaction.Triggers>
  104. </RadioButton>
  105. <RadioButton>
  106. <Grid>
  107. <Path Data="M1.5 2C0.947715 2 0.5 2.44772 0.5 3V11V17C0.5 17.5523 0.947715 18 1.5 18H15.5C16.0523 18 16.5 17.5523 16.5 17V12H19.5C20.0523 12 20.5 11.5523 20.5 11V3C20.5 2.44772 20.0523 2 19.5 2H1.5ZM14.5 12H2.5V16H14.5V12ZM15.5 10H18.5V4H2.5V10H15.5Z" Style="{StaticResource BorderPath}" />
  108. <Path Data="M14.6512 8.32543C14.5714 8.41752 14.4286 8.41752 14.3488 8.32543L12.1885 5.83093C12.0763 5.7014 12.1684 5.5 12.3397 5.5L16.6603 5.5C16.8316 5.5 16.9237 5.7014 16.8115 5.83093L14.6512 8.32543Z" Style="{StaticResource ContentPath}" />
  109. </Grid>
  110. <i:Interaction.Triggers>
  111. <i:EventTrigger EventName="Checked">
  112. <i:InvokeCommandAction Command="{Binding CheckedCommand}" CommandParameter="Combox" />
  113. </i:EventTrigger>
  114. <i:EventTrigger EventName="Click">
  115. <i:InvokeCommandAction Command="{Binding ClickCommand}" CommandParameter="Combox" />
  116. </i:EventTrigger>
  117. </i:Interaction.Triggers>
  118. </RadioButton>
  119. <RadioButton>
  120. <Grid>
  121. <Path Data="M18 4H3C2.72386 4 2.5 4.22386 2.5 4.5V15.5C2.5 15.7761 2.72386 16 3 16H18C18.2761 16 18.5 15.7761 18.5 15.5V4.5C18.5 4.22386 18.2761 4 18 4ZM3 2C1.61929 2 0.5 3.11929 0.5 4.5V15.5C0.5 16.8807 1.61929 18 3 18H18C19.3807 18 20.5 16.8807 20.5 15.5V4.5C20.5 3.11929 19.3807 2 18 2H3Z" Style="{StaticResource BorderPath}" />
  122. <Path Data="M7.07715 13.1714C8.98438 13.1714 10.2017 11.8926 10.2017 9.83154V9.82275C10.2017 7.76611 8.97998 6.4873 7.07715 6.4873C5.16992 6.4873 3.94824 7.76611 3.94824 9.82275V9.83154C3.94824 11.8926 5.16113 13.1714 7.07715 13.1714ZM7.07715 11.8354C6.17627 11.8354 5.5874 11.0532 5.5874 9.83154V9.82275C5.5874 8.60547 6.18506 7.82324 7.07715 7.82324C7.96484 7.82324 8.55811 8.60547 8.55811 9.82275V9.83154C8.55811 11.0532 7.96484 11.8354 7.07715 11.8354Z" Style="{StaticResource ContentPath}" />
  123. <Path Data="M11.4014 13H13.0142V11.207L13.5723 10.4995L15.1719 13H17.0659L14.7456 9.45801L16.9385 6.65869H15.207L13.0977 9.3833H13.0142V6.65869H11.4014V13Z" Style="{StaticResource ContentPath}" />
  124. </Grid>
  125. <i:Interaction.Triggers>
  126. <i:EventTrigger EventName="Checked">
  127. <i:InvokeCommandAction Command="{Binding CheckedCommand}" CommandParameter="Button" />
  128. </i:EventTrigger>
  129. <i:EventTrigger EventName="Click">
  130. <i:InvokeCommandAction Command="{Binding ClickCommand}" CommandParameter="Button" />
  131. </i:EventTrigger>
  132. </i:Interaction.Triggers>
  133. </RadioButton>
  134. <RadioButton>
  135. <Grid>
  136. <Path Data="M7.08813 17.4917C8.62427 17.4917 9.82397 16.584 10.6047 15.0605H20.5V13.7529H11.1316C11.4363 12.7754 11.614 11.6328 11.6584 10.376C12.0583 10.2935 12.4773 10.2427 12.8962 10.2427C13.0422 10.2427 13.1248 10.3125 13.1248 10.4141C13.1248 10.8901 12.801 11.2964 12.801 11.9058C12.801 12.4771 13.22 12.8516 13.8103 12.8516C14.4691 12.8516 15.1903 12.3652 15.808 11.8576L16.1336 11.5815L16.6994 11.0837C16.9478 10.8698 17.1384 10.7251 17.2444 10.7251C17.3279 10.7251 17.3739 10.8248 17.4151 10.9782L17.5009 11.343L17.5572 11.5536C17.7076 12.0547 18.0105 12.5977 18.8821 12.5977C19.0167 12.5977 19.2501 12.5309 19.5822 12.3973L19.8911 12.2664L20.2483 12.1028L19.988 10.8015L19.6787 10.9419L19.4291 11.0471L19.2391 11.1173C19.1591 11.1436 19.1014 11.1567 19.0662 11.1567C18.9293 11.1567 18.8686 10.996 18.8206 10.7645L18.739 10.3152C18.6308 9.74942 18.4286 9.10645 17.6252 9.10645C17.0135 9.10645 16.3006 9.62197 15.7085 10.113L15.3988 10.3751L15.1211 10.6129C14.8619 10.832 14.6627 10.9854 14.5593 10.9854C14.5022 10.9854 14.4768 10.96 14.4768 10.8901C14.4768 10.8351 14.4923 10.7667 14.513 10.6887L14.5802 10.4293C14.6009 10.3358 14.6165 10.2363 14.6165 10.1348C14.6165 9.32861 14.0325 8.84619 13.0803 8.84619C12.5916 8.84619 12.1091 8.89062 11.6394 8.97949C11.4109 5.53906 9.68433 3 7.24683 3C5.39966 3 4.10474 4.40918 4.10474 6.37061C4.10474 8.51611 5.46313 10.3125 6.94849 11.4805C6.23755 12.1978 5.69165 12.9849 5.35522 13.7529H0.5V15.0605H5.0061C4.99341 15.1621 4.98706 15.2573 4.98706 15.3589C4.98706 16.6602 5.72339 17.4917 7.08813 17.4917ZM7.99585 10.5791C6.79614 9.65234 5.50122 8.23047 5.50122 6.35791C5.50122 5.22168 6.21851 4.40283 7.25317 4.40283C8.94165 4.40283 10.1477 6.5293 10.262 9.354C9.43042 9.65869 8.6687 10.0776 7.99585 10.5791ZM9.6272 13.7529H6.95483C7.24048 13.2642 7.64673 12.7563 8.14185 12.2866L8.77184 12.6472L9.7795 11.787C9.53409 11.6419 9.35213 11.5186 9.23364 11.417C9.54468 11.2139 9.8811 11.0234 10.2302 10.8584C10.1477 11.9565 9.93823 12.9404 9.6272 13.7529ZM1.39772 12.855L2.32079 11.9319L3.24386 12.855L3.99606 12.1028L3.07616 11.1829L3.99606 10.263L3.24386 9.5108L2.32079 10.4339L1.39673 9.51616L0.647705 10.2652L1.57177 11.1829L0.648698 12.106L1.39772 12.855ZM7.25317 16.0952C6.73267 16.0952 6.45972 15.7461 6.45972 15.2192C6.45972 15.1685 6.46606 15.1177 6.47241 15.0605H8.948C8.47192 15.7144 7.89429 16.0952 7.25317 16.0952Z" Style="{StaticResource BorderPath}" />
  137. </Grid>
  138. <i:Interaction.Triggers>
  139. <i:EventTrigger EventName="Checked">
  140. <i:InvokeCommandAction Command="{Binding CheckedCommand}" CommandParameter="Sign" />
  141. </i:EventTrigger>
  142. <i:EventTrigger EventName="Click">
  143. <i:InvokeCommandAction Command="{Binding ClickCommand}" CommandParameter="Sign" />
  144. </i:EventTrigger>
  145. </i:Interaction.Triggers>
  146. </RadioButton>
  147. <Separator
  148. Width="1"
  149. Height="16"
  150. Margin="4,0"
  151. BorderBrush="{StaticResource color.sys.layout.divider}"
  152. BorderThickness="1"
  153. Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
  154. <RadioButton
  155. Name="BtnAlignment"
  156. Width="44" IsChecked="{Binding IsAlignmentCheckedBtn}"
  157. Click="BtnAlignment_Click"
  158. Initialized="BtnAlignment_Initialized">
  159. <StackPanel Orientation="Horizontal">
  160. <Grid>
  161. <Path Data="M3.5 1H1.5V19H3.5V1ZM19.5 5H5.5V9H19.5V5Z" Style="{StaticResource BorderPath}" />
  162. <Path Fill="{StaticResource color.icon.base.neutral.norm.lv2}">
  163. <Path.Data>
  164. <RectangleGeometry Rect="4.5 11 9 4" />
  165. </Path.Data>
  166. </Path>
  167. </Grid>
  168. <Path
  169. Width="12"
  170. Height="12"
  171. Margin="4,0"
  172. Data="M6.5 10L11.5 4H1.5L6.5 10Z"
  173. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  174. </StackPanel>
  175. <RadioButton.ContextMenu>
  176. <ContextMenu Name="MenuAlignment" Placement="Bottom">
  177. <cus:MenuItemWithPath x:Name="LeftBtn" IsEnabled="{Binding IsLayoutAlign}" Header="Left Alignment" Tag="Left" Path="M2.01361 15V1H3.51361V15H2.01361ZM4.99994 4H10.9999V7H4.99994V4ZM13.9999 9H4.99994V12H13.9999V9Z">
  178. <i:Interaction.Triggers>
  179. <i:EventTrigger EventName="Click">
  180. <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Left"/>
  181. </i:EventTrigger>
  182. </i:Interaction.Triggers>
  183. </cus:MenuItemWithPath>
  184. <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Vertical Alignment" Tag="Vertical" Path="M8.75006 7L8.75006 9L12.0001 9L12.0001 12L8.75006 12L8.75006 15L7.25006 15L7.25006 12L4.00006 12L4.00006 9L7.25006 9L7.25006 7L2.00006 7L2.00006 4L7.25006 4L7.25006 0.999999L8.75006 1L8.75006 4L14.0001 4L14.0001 7L8.75006 7Z" >
  185. <i:Interaction.Triggers>
  186. <i:EventTrigger EventName="Click">
  187. <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Left"/>
  188. </i:EventTrigger>
  189. </i:Interaction.Triggers>
  190. </cus:MenuItemWithPath>
  191. <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Right Alignment" Tag="Right" Path="M14.0001 1L14.0001 15L12.5001 15L12.5001 1L14.0001 1ZM11.0001 12L2.00006 12L2.00006 9L11.0001 9L11.0001 12ZM4.00006 7L11.0001 7L11.0001 4L4.00006 4L4.00006 7Z" >
  192. <i:Interaction.Triggers>
  193. <i:EventTrigger EventName="Click">
  194. <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Left"/>
  195. </i:EventTrigger>
  196. </i:Interaction.Triggers>
  197. </cus:MenuItemWithPath>
  198. <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Top Alignment" Tag="Top" Path="M15 2L1 2L1 3.5L15 3.5L15 2ZM12 5L12 11L9 11L9 5L12 5ZM7 5L7 14L4 14L4 5L7 5Z" >
  199. <i:Interaction.Triggers>
  200. <i:EventTrigger EventName="Click">
  201. <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Top"/>
  202. </i:EventTrigger>
  203. </i:Interaction.Triggers>
  204. </cus:MenuItemWithPath>
  205. <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Horizontal Alignment" Tag="Horizontal" Path="M7 7.25L9 7.25L9 4L12 4L12 7.25L15 7.25L15 8.75L12 8.75L12 12L9 12L9 8.75L7 8.75L7 14L4 14L4 8.75L1 8.75L1 7.25L4 7.25L4 2L7 2L7 7.25Z" >
  206. <i:Interaction.Triggers>
  207. <i:EventTrigger EventName="Click">
  208. <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Horizontal"/>
  209. </i:EventTrigger>
  210. </i:Interaction.Triggers>
  211. </cus:MenuItemWithPath>
  212. <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAlign}" Header="Lower Alignment" Tag="Lower" Path="M9 2H12V11H9V2ZM4 5H7V11H4V5ZM1 14H15V12.5H1V14Z" >
  213. <i:Interaction.Triggers>
  214. <i:EventTrigger EventName="Click">
  215. <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Lower"/>
  216. </i:EventTrigger>
  217. </i:Interaction.Triggers>
  218. </cus:MenuItemWithPath>
  219. <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAvgAlign}" Header="Distribute Vertical" Tag="Distribute Vertical" Path="M15 12.5L1 12.5L1 14L15 14L15 12.5ZM12 9.5L4 9.5L4 6.5L12 6.5L12 9.5ZM1 2L15 2L15 3.5L1 3.5L1 2Z">
  220. <i:Interaction.Triggers>
  221. <i:EventTrigger EventName="Click">
  222. <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Distribute Vertical"/>
  223. </i:EventTrigger>
  224. </i:Interaction.Triggers>
  225. </cus:MenuItemWithPath>
  226. <cus:MenuItemWithPath IsEnabled="{Binding IsLayoutAvgAlign}" Header="Distribute Horizontal" Tag="Distribute Horizontal" Path="M2 15V1H3.5V15H2ZM6.5 4H9.5V12H6.5V4ZM12.5 1V15H14V1H12.5Z" >
  227. <i:Interaction.Triggers>
  228. <i:EventTrigger EventName="Click">
  229. <i:InvokeCommandAction Command="{Binding AlignmentCheckedCommand}" CommandParameter="Distribute Horizontal"/>
  230. </i:EventTrigger>
  231. </i:Interaction.Triggers>
  232. </cus:MenuItemWithPath>
  233. <i:Interaction.Triggers>
  234. <i:EventTrigger EventName="Closed">
  235. <i:InvokeCommandAction Command="{Binding AlignmentClosedMenuCommand}"/>
  236. </i:EventTrigger>
  237. </i:Interaction.Triggers>
  238. </ContextMenu>
  239. </RadioButton.ContextMenu>
  240. </RadioButton>
  241. <RadioButton Name="BtnMore" IsChecked="{Binding IsMoreCheckedBtn}" Width="44" Click="BtnMore_Click" Initialized="BtnMore_Initialized">
  242. <StackPanel Orientation="Horizontal">
  243. <Grid>
  244. <Path
  245. Width="21"
  246. Data="M2.5 3C2.5 2.44772 2.94772 2 3.5 2H8.5C9.05228 2 9.5 2.44772 9.5 3V8C9.5 8.55228 9.05228 9 8.5 9H3.5C2.94772 9 2.5 8.55228 2.5 8V3ZM4.5 4V7H7.5V4H4.5ZM11.5 12C11.5 11.4477 11.9477 11 12.5 11H17.5C18.0523 11 18.5 11.4477 18.5 12V17C18.5 17.5523 18.0523 18 17.5 18H12.5C11.9477 18 11.5 17.5523 11.5 17V12ZM13.5 13V16H16.5V13H13.5ZM3.5 11C2.94772 11 2.5 11.4477 2.5 12V17C2.5 17.5523 2.94772 18 3.5 18H8.5C9.05228 18 9.5 17.5523 9.5 17V12C9.5 11.4477 9.05228 11 8.5 11H3.5ZM4.5 16V13H7.5V16H4.5Z"
  247. Stretch="None"
  248. Style="{StaticResource BorderPath}" />
  249. <Path Data="M11 5.5C11 3.29086 12.7909 1.5 15 1.5C17.2091 1.5 19 3.29086 19 5.5C19 7.70914 17.2091 9.5 15 9.5C12.7909 9.5 11 7.70914 11 5.5ZM15 3.5C13.8954 3.5 13 4.39543 13 5.5C13 6.60457 13.8954 7.5 15 7.5C16.1046 7.5 17 6.60457 17 5.5C17 4.39543 16.1046 3.5 15 3.5Z" Style="{StaticResource ContentPath}" />
  250. </Grid>
  251. <Path
  252. Width="12"
  253. Height="12"
  254. Margin="4,0"
  255. Data="M6.5 10L11.5 4H1.5L6.5 10Z"
  256. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  257. </StackPanel>
  258. <RadioButton.ContextMenu>
  259. <ContextMenu Name="MenuMore" Placement="Bottom">
  260. <MenuItem Header="Show jump number" />
  261. <MenuItem Header="Highlight from field" />
  262. <MenuItem Header="Clear form fields" />
  263. <MenuItem Header="Importing data" />
  264. <MenuItem Header="Exporting data" />
  265. <MenuItem Header="Automatic form recognition" />
  266. <i:Interaction.Triggers>
  267. <i:EventTrigger EventName="Closed">
  268. <i:InvokeCommandAction Command="{Binding ClosedMenuCommand}"/>
  269. </i:EventTrigger>
  270. </i:Interaction.Triggers>
  271. </ContextMenu>
  272. </RadioButton.ContextMenu>
  273. </RadioButton>
  274. </StackPanel>
  275. <Grid VerticalAlignment="Center">
  276. <Grid HorizontalAlignment="Right">
  277. <Button
  278. Name="BtnPreview"
  279. Width="57"
  280. Height="24"
  281. Margin="16,0"
  282. Content="Preview"
  283. FontSize="12"
  284. Style="{StaticResource Btn.cta}" />
  285. <Button
  286. Name="BtnEdit"
  287. Width="57"
  288. Height="24"
  289. Margin="16,0"
  290. Content="Edit"
  291. FontSize="12"
  292. Style="{StaticResource Btn.cta}"
  293. Visibility="{Binding ElementName=BtnPreview, Path=Visibility, Converter={StaticResource UnVisibleConvert}}" />
  294. </Grid>
  295. </Grid>
  296. </Grid>
  297. </UserControl>