FreetextAnnotProperty.xaml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.FreetextAnnotProperty"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
  7. xmlns:CompositeControl="clr-namespace:PDF_Office.CustomControl.CompositeControl"
  8. xmlns:cusColor="clr-namespace:PDF_Office.CustomControl.CompositeControl"
  9. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  10. xmlns:prism="http://prismlibrary.com/"
  11. prism:ViewModelLocator.AutoWireViewModel="True"
  12. xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
  13. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  14. mc:Ignorable="d"
  15. d:DesignHeight="850" d:DesignWidth="800">
  16. <UserControl.Resources>
  17. <ResourceDictionary>
  18. <ResourceDictionary.MergedDictionaries>
  19. <ResourceDictionary Source="../../../Styles/SliderStyle.xaml"></ResourceDictionary>
  20. <ResourceDictionary Source="../../../Styles/CustomBtnStyle.xaml"/>
  21. </ResourceDictionary.MergedDictionaries>
  22. <Convert:InvertBoolToVisibleConvert x:Key="InvertBoolToVisibleConvert"/>
  23. <Convert:CheckToVisibleMutiConvert x:Key="CheckToVisibleMutiConvert"/>
  24. <Style x:Key="line1Style" TargetType="{x:Type Line}">
  25. <Setter Property="Visibility">
  26. <Setter.Value>
  27. <MultiBinding Converter="{StaticResource CheckToVisibleMutiConvert}">
  28. <Binding ElementName="TextAlignLeftBtn" Path="IsChecked"/>
  29. <Binding ElementName="TextAlignCenterBtn" Path="IsChecked"/>
  30. </MultiBinding>
  31. </Setter.Value>
  32. </Setter>
  33. </Style>
  34. <Style x:Key="line2Style" TargetType="{x:Type Line}">
  35. <Setter Property="Visibility">
  36. <Setter.Value>
  37. <MultiBinding Converter="{StaticResource CheckToVisibleMutiConvert}">
  38. <Binding ElementName="TextAlignCenterBtn" Path="IsChecked"/>
  39. <Binding ElementName="TextAlignRightBtn" Path="IsChecked"/>
  40. </MultiBinding>
  41. </Setter.Value>
  42. </Setter>
  43. </Style>
  44. <DataTemplate x:Key="FontStyleData">
  45. <Grid >
  46. <TextBlock Text="{Binding mFontStyleName}" Foreground="Black"/>
  47. </Grid>
  48. </DataTemplate>
  49. </ResourceDictionary>
  50. </UserControl.Resources>
  51. <Grid Background="#F3F3F3">
  52. <StackPanel>
  53. <TextBlock Name="AnnotTypeTitle" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="18" LineHeight="24" HorizontalAlignment="Left" Margin="10,8,0,0">Freetext</TextBlock>
  54. <Border Width="228" Height="100" BorderThickness="1" CornerRadius="2" BorderBrush="#DDDDDD" Background="White" Margin="0,8,0,0"
  55. Visibility="{Binding IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"
  56. >
  57. <Grid>
  58. <Border Name="FreeTextBorder" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5"
  59. Opacity="{Binding FillOpacity}"
  60. Background="{Binding FillColor}">
  61. <TextBlock Name="SampleText"
  62. Foreground="{Binding SelectColor}"
  63. FontFamily="{Binding CurrentFontFamily.ValueStr}"
  64. FontWeight="{Binding FontWeightItem}"
  65. FontStyle="{Binding FontStyleItem}"
  66. FontSize="{Binding CurrentFontSize.Value}" Opacity="{Binding FillOpacity}"
  67. Text="Sample" HorizontalAlignment="Center" VerticalAlignment="Center">
  68. </TextBlock>
  69. </Border>
  70. <Path Name="UnderlinePath" HorizontalAlignment="Center" StrokeThickness="2" Margin="0,51,0,0" Visibility="Collapsed">
  71. <Path.Data>
  72. <LineGeometry StartPoint="0,0" EndPoint="62,0"></LineGeometry>
  73. </Path.Data>
  74. </Path>
  75. <Path Name="StrikeoutPath" HorizontalAlignment="Center" StrokeThickness="2" Margin="0,40,0,0" Visibility="Collapsed">
  76. <Path.Data>
  77. <LineGeometry StartPoint="0,0" EndPoint="62,0"></LineGeometry>
  78. </Path.Data>
  79. </Path>
  80. <Path Name="SquigglyPath" HorizontalAlignment="Center" StrokeThickness="2" Margin="0,51,0,0" Visibility="Collapsed">
  81. </Path>
  82. </Grid>
  83. </Border>
  84. <Border
  85. Height="32"
  86. Margin="15,8,15,18"
  87. BorderBrush="#E2E3E6"
  88. BorderThickness="0">
  89. <Grid>
  90. <Grid.ColumnDefinitions>
  91. <ColumnDefinition/>
  92. <ColumnDefinition Width="auto"/>
  93. </Grid.ColumnDefinitions>
  94. <CompositeControl:CustomComboControl
  95. x:Name="FontTitleBox"
  96. Width="188"
  97. Height="32"
  98. HorizontalAlignment="Left"
  99. IsValueContent="True"
  100. ItemSource="{Binding PresetFontItems}"
  101. SelectedItems="{Binding CurrentPresetFont, Mode=TwoWay}" />
  102. <Button Grid.Column="1"
  103. Width="32"
  104. Height="32"
  105. HorizontalAlignment="Left" Command="{Binding CustomFontStyleCommand}"
  106. Style="{StaticResource btn.sec}">
  107. <Path
  108. Width="16"
  109. Height="16"
  110. Data="M4 8C4 8.82843 3.32843 9.5 2.5 9.5C1.67157 9.5 1 8.82843 1 8C1 7.17157 1.67157 6.5 2.5 6.5C3.32843 6.5 4 7.17157 4 8ZM9.3999 8C9.3999 8.82843 8.72833 9.5 7.8999 9.5C7.07148 9.5 6.3999 8.82843 6.3999 8C6.3999 7.17157 7.07148 6.5 7.8999 6.5C8.72833 6.5 9.3999 7.17157 9.3999 8ZM13.5 9.5C14.3284 9.5 15 8.82843 15 8C15 7.17157 14.3284 6.5 13.5 6.5C12.6716 6.5 12 7.17157 12 8C12 8.82843 12.6716 9.5 13.5 9.5Z"
  111. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  112. </Button>
  113. </Grid>
  114. </Border>
  115. <StackPanel Margin="15,0,15,0">
  116. <TextBlock
  117. Margin="0,0,0,10"
  118. Style="{StaticResource PropertyHeaderLv2}"
  119. Text="文本" />
  120. <StackPanel>
  121. <CompositeControl:CustomComboControl
  122. x:Name="FontFamilyBox"
  123. Height="32"
  124. IsValueContent="True"
  125. ItemSource="{Binding FontFamilyItems}"
  126. IsSelectedEmpty ="{Binding IsSelectedEmpty}"
  127. SelectedItems="{Binding CurrentFontFamily, Mode=TwoWay}" />
  128. <Grid Margin="0,8">
  129. <CompositeControl:CustomComboControl
  130. x:Name="FontStyleBox"
  131. Width="110"
  132. Height="32"
  133. HorizontalAlignment="Left"
  134. IsValueContent="True"
  135. ItemSource="{Binding FontStyleItems}"
  136. IsSelectedEmpty ="{Binding IsSelectedEmpty}"
  137. SelectedItems="{Binding CurrrentFontWeightStyle, Mode=TwoWay}" />
  138. <CompositeControl:CustomComboControl
  139. x:Name="FontSizeBox"
  140. Width="110"
  141. Height="32"
  142. HorizontalAlignment="Right"
  143. IsSelectedEmpty ="{Binding IsSelectedEmpty}"
  144. SelectedItems="{Binding CurrentFontSize, Mode=TwoWay}" />
  145. </Grid>
  146. <Grid>
  147. <StackPanel Orientation="Horizontal">
  148. <RadioButton
  149. x:Name="TextAlignLeftBtn"
  150. Width="32"
  151. Height="32"
  152. VerticalContentAlignment="Center"
  153. Background="Transparent"
  154. Foreground="#616469"
  155. GroupName="TextAlign"
  156. IsChecked="True"
  157. Style="{DynamicResource GreyBgRadioBtnStyle}"
  158. Tag="AlignLeft">
  159. <RadioButton.Content>
  160. <Grid Width="32" Height="32">
  161. <Canvas Margin="5,10,0,0">
  162. <Rectangle
  163. Canvas.Top="0.25"
  164. Width="14"
  165. Height="1.5"
  166. Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
  167. StrokeThickness="1.5" />
  168. <Rectangle
  169. Canvas.Top="4.25"
  170. Width="8"
  171. Height="1.5"
  172. Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
  173. StrokeThickness="1.5" />
  174. <Rectangle
  175. Canvas.Top="12.25"
  176. Width="8"
  177. Height="1.5"
  178. Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
  179. StrokeThickness="1.5" />
  180. <Rectangle
  181. Canvas.Top="8.25"
  182. Width="14"
  183. Height="1.5"
  184. Stroke="{Binding ElementName=TextAlignLeftBtn, Path=Foreground}"
  185. StrokeThickness="1.5" />
  186. </Canvas>
  187. </Grid>
  188. </RadioButton.Content>
  189. <i:Interaction.Triggers>
  190. <i:EventTrigger EventName="Checked">
  191. <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignLeftBtn, Path=Tag}" />
  192. </i:EventTrigger>
  193. </i:Interaction.Triggers>
  194. </RadioButton>
  195. <RadioButton
  196. x:Name="TextAlignCenterBtn"
  197. Width="32"
  198. Height="32"
  199. Margin="8,0"
  200. VerticalContentAlignment="Center"
  201. Background="Transparent"
  202. Foreground="#616469"
  203. GroupName="TextAlign"
  204. Style="{DynamicResource GreyBgRadioBtnStyle}"
  205. Tag="AlignCenter">
  206. <RadioButton.Content>
  207. <Grid Width="32" Height="32">
  208. <Canvas Margin="5,10,0,0">
  209. <Rectangle
  210. Canvas.Top="0.25"
  211. Width="14"
  212. Height="1.5"
  213. Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
  214. StrokeThickness="1.5" />
  215. <Rectangle
  216. Canvas.Left="3"
  217. Canvas.Top="4.25"
  218. Width="8"
  219. Height="1.5"
  220. Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
  221. StrokeThickness="1.5" />
  222. <Rectangle
  223. Canvas.Left="3"
  224. Canvas.Top="12.25"
  225. Width="8"
  226. Height="1.5"
  227. Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
  228. StrokeThickness="1.5" />
  229. <Rectangle
  230. Canvas.Top="8.25"
  231. Width="14"
  232. Height="1.5"
  233. Stroke="{Binding ElementName=TextAlignCenterBtn, Path=Foreground}"
  234. StrokeThickness="1.5" />
  235. </Canvas>
  236. </Grid>
  237. </RadioButton.Content>
  238. <i:Interaction.Triggers>
  239. <i:EventTrigger EventName="Checked">
  240. <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignCenterBtn, Path=Tag}" />
  241. </i:EventTrigger>
  242. </i:Interaction.Triggers>
  243. </RadioButton>
  244. <RadioButton
  245. x:Name="TextAlignRightBtn"
  246. Grid.Column="2"
  247. Width="32"
  248. Height="32"
  249. VerticalContentAlignment="Center"
  250. Background="Transparent"
  251. Foreground="#616469"
  252. GroupName="TextAlign"
  253. Style="{DynamicResource GreyBgRadioBtnStyle}"
  254. Tag="AlignRight">
  255. <RadioButton.Content>
  256. <Grid Width="32" Height="32">
  257. <Canvas Margin="5,10,0,0">
  258. <Rectangle
  259. Canvas.Top="0.25"
  260. Width="14"
  261. Height="1.5"
  262. Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
  263. StrokeThickness="1.5" />
  264. <Rectangle
  265. Canvas.Left="6"
  266. Canvas.Top="4.25"
  267. Width="8"
  268. Height="1.5"
  269. Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
  270. StrokeThickness="1.5" />
  271. <Rectangle
  272. Canvas.Left="6"
  273. Canvas.Top="12.25"
  274. Width="8"
  275. Height="1.5"
  276. Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
  277. StrokeThickness="1.5" />
  278. <Rectangle
  279. Canvas.Top="8.25"
  280. Width="14"
  281. Height="1.5"
  282. Stroke="{Binding ElementName=TextAlignRightBtn, Path=Foreground}"
  283. StrokeThickness="1.5" />
  284. </Canvas>
  285. </Grid>
  286. </RadioButton.Content>
  287. <i:Interaction.Triggers>
  288. <i:EventTrigger EventName="Checked">
  289. <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignRightBtn, Path=Tag}" />
  290. </i:EventTrigger>
  291. </i:Interaction.Triggers>
  292. </RadioButton>
  293. <RadioButton
  294. x:Name="TextAlignBtn"
  295. Grid.Column="3"
  296. Width="32"
  297. Height="32"
  298. Margin="8,0"
  299. VerticalContentAlignment="Center"
  300. Background="Transparent"
  301. Foreground="#616469"
  302. GroupName="TextAlign"
  303. Style="{DynamicResource GreyBgRadioBtnStyle}"
  304. Tag="Align">
  305. <RadioButton.Content>
  306. <Grid Width="32" Height="32">
  307. <Canvas Margin="5,10,0,0">
  308. <Rectangle
  309. Canvas.Top="0.25"
  310. Width="14"
  311. Height="1.5"
  312. Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
  313. StrokeThickness="1.5" />
  314. <Rectangle
  315. Canvas.Top="8.25"
  316. Width="14"
  317. Height="1.5"
  318. Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
  319. StrokeThickness="1.5" />
  320. <Rectangle
  321. Canvas.Top="4.25"
  322. Width="14"
  323. Height="1.5"
  324. Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
  325. StrokeThickness="1.5" />
  326. <Rectangle
  327. Canvas.Top="12.25"
  328. Width="14"
  329. Height="1.5"
  330. Stroke="{Binding ElementName=TextAlignBtn, Path=Foreground}"
  331. StrokeThickness="1.5" />
  332. </Canvas>
  333. </Grid>
  334. </RadioButton.Content>
  335. <i:Interaction.Triggers>
  336. <i:EventTrigger EventName="Checked">
  337. <i:InvokeCommandAction Command="{Binding TextAlignCheckedCommand}" CommandParameter="{Binding ElementName=TextAlignBtn, Path=Tag}" />
  338. </i:EventTrigger>
  339. </i:Interaction.Triggers>
  340. </RadioButton>
  341. </StackPanel>
  342. <cusColor:ColorContent
  343. x:Name="FontColorBox"
  344. Width="56"
  345. HorizontalAlignment="Right"
  346. ShowColorList="Collapsed"
  347. UIColor="{Binding CurrentFontColor,Mode=OneWay}"
  348. >
  349. <i:Interaction.Triggers>
  350. <i:EventTrigger EventName="SelectedColorInvoke">
  351. <i:InvokeCommandAction Command="{Binding SelectedColorCommand}" CommandParameter="{Binding ElementName=FontColorBox,Path=SelectedColor}"/>
  352. </i:EventTrigger>
  353. </i:Interaction.Triggers>
  354. </cusColor:ColorContent>
  355. </Grid>
  356. </StackPanel>
  357. </StackPanel>
  358. <Grid Margin="15,18,15,0">
  359. <Grid.RowDefinitions>
  360. <RowDefinition Height="auto"/>
  361. <RowDefinition/>
  362. </Grid.RowDefinitions>
  363. <TextBlock Text="Fill" VerticalAlignment="Center"/>
  364. <CompositeControl:SlidContent x:Name="layerThick" HorizontalAlignment="Right"
  365. Visibility="{Binding IsMultiSelected,Converter={StaticResource InvertBoolToVisibleConvert}}"
  366. >
  367. <i:Interaction.Triggers>
  368. <i:EventTrigger EventName="SelectedValueChanged">
  369. <i:InvokeCommandAction Command="{Binding SelectedOpacityValueCommand}" CommandParameter="{Binding ElementName=layerThick,Path=Value}"/>
  370. </i:EventTrigger>
  371. </i:Interaction.Triggers>
  372. </CompositeControl:SlidContent>
  373. <CompositeControl:ColorContent Grid.Row="1" x:Name="cusColor" UIColor="{Binding CurrentFillColor,Mode=OneWay}">
  374. <i:Interaction.Triggers>
  375. <i:EventTrigger EventName="SelectedColorInvoke">
  376. <i:InvokeCommandAction Command="{Binding SelectedFillColorCommand}" CommandParameter="{Binding ElementName=cusColor,Path=SelectedColor}"/>
  377. </i:EventTrigger>
  378. </i:Interaction.Triggers>
  379. </CompositeControl:ColorContent>
  380. </Grid>
  381. <!--MVP不上-->
  382. <TextBlock x:Name="thicknessText" Visibility="Collapsed" FontFamily="Segoe UI Semibold" FontWeight="SemiBold" FontSize="14" LineHeight="20" Margin="12,14,0,0" >Thickness</TextBlock>
  383. <Grid Visibility="Collapsed">
  384. <Grid.ColumnDefinitions>
  385. <ColumnDefinition Width="*"></ColumnDefinition>
  386. <ColumnDefinition Width="auto"></ColumnDefinition>
  387. </Grid.ColumnDefinitions>
  388. <Slider Name="ThicknessSlider" VerticalAlignment="Center" Margin="12,0,0,0" Width="148" Minimum="0" Maximum="24" IsSelectionRangeEnabled="True" IsMoveToPointEnabled="True"
  389. Style="{StaticResource RoundThumbSlider}" TickFrequency="1" IsSnapToTickEnabled="True" >
  390. <Slider.Resources>
  391. <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#477EDE" />
  392. <SolidColorBrush x:Key="{x:Static SystemColors.ControlDarkDarkBrushKey}" Color="#E2E3E6" />
  393. </Slider.Resources>
  394. </Slider>
  395. <Border Grid.Column="1" BorderBrush="#E2E3E6" Width="80" Height="32" Margin="0,0,11,0" BorderThickness="0">
  396. <Grid>
  397. <ComboBox Name="ThicknessBox" BorderThickness="1" Padding="10" Background="Transparent" BorderBrush="#FFE2E3E6"
  398. MaxDropDownHeight="200">
  399. <ComboBox.ItemContainerStyle>
  400. <Style TargetType="{x:Type ComboBoxItem}">
  401. <Setter Property="Padding" Value="10 0 0 0"/>
  402. </Style>
  403. </ComboBox.ItemContainerStyle>
  404. <ComboBoxItem Content="1" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  405. <ComboBoxItem Content="3" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  406. <ComboBoxItem Content="6" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  407. <ComboBoxItem Content="9" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  408. <ComboBoxItem Content="12" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  409. <ComboBoxItem Content="15" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  410. <ComboBoxItem Content="18" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  411. <ComboBoxItem Content="21" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  412. <ComboBoxItem Content="24" Height="32" VerticalContentAlignment="Center" Template="{StaticResource comboxitem}"/>
  413. </ComboBox>
  414. <TextBox Name="ThicknessText" Background="White" FontFamily="Segoe UI" FontSize="14" Height="20" Margin="10,0,35,0" IsReadOnly="True"
  415. BorderThickness="0" VerticalAlignment="Center" TextAlignment="Left" >
  416. </TextBox>
  417. </Grid>
  418. </Border>
  419. </Grid>
  420. <StackPanel Visibility="Collapsed" Orientation="Horizontal" Margin="0,20,0,0">
  421. <RadioButton x:Name="BtnSolid" Tag="Solid" GroupName="LineMode"
  422. Width="105" Height="32" Margin="0,0,10,0" Foreground="#616469"
  423. VerticalContentAlignment="Center" Background="Transparent"
  424. Style="{DynamicResource GreyBgRadioBtnStyle}">
  425. <RadioButton.Content>
  426. <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" />
  427. </RadioButton.Content>
  428. <i:Interaction.Triggers>
  429. <i:EventTrigger EventName="Checked">
  430. <i:InvokeCommandAction Command="{Binding LineModeCheckedCommand}" CommandParameter="{Binding ElementName=BtnSolid, Path=Tag}" />
  431. </i:EventTrigger>
  432. </i:Interaction.Triggers>
  433. </RadioButton>
  434. <RadioButton x:Name="BtnDashed" Tag="Dashed" GroupName="LineMode"
  435. Width="105" Height="32" Margin="0,0" Foreground="#616469"
  436. VerticalContentAlignment="Center" Background="Transparent"
  437. Style="{DynamicResource GreyBgRadioBtnStyle}">
  438. <RadioButton.Content>
  439. <Line X1="10" Y1="5" X2="90" Y2="5" Stroke="Black" StrokeThickness="2" StrokeDashArray="2"/>
  440. </RadioButton.Content>
  441. <i:Interaction.Triggers>
  442. <i:EventTrigger EventName="Checked">
  443. <i:InvokeCommandAction Command="{Binding LineModeCheckedCommand}" CommandParameter="{Binding ElementName=BtnDashed, Path=Tag}" />
  444. </i:EventTrigger>
  445. </i:Interaction.Triggers>
  446. </RadioButton>
  447. </StackPanel>
  448. </StackPanel>
  449. </Grid>
  450. </UserControl>