SignatureCreateDialog.xaml 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. <UserControl
  2. x:Class="PDF_Master.Views.PropertyPanel.AnnotPanel.SignatureCreateDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:annotpanel="clr-namespace:PDF_Master.ViewModels.PropertyPanel.AnnotPanel"
  6. xmlns:cus="clr-namespace:PDF_Master.CustomControl"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:dataconvert="clr-namespace:PDF_Master.DataConvert"
  9. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  10. xmlns:local="clr-namespace:PDF_Master.Views.PropertyPanel.AnnotPanel"
  11. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  12. xmlns:prism="http://prismlibrary.com/"
  13. Width="468"
  14. Height="392"
  15. d:DataContext="{d:DesignInstance Type=annotpanel:SignatureCreateDialogViewModel}"
  16. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  17. Loaded="UserControl_Loaded"
  18. mc:Ignorable="d">
  19. <UserControl.Resources>
  20. <Style TargetType="{x:Type TabItem}">
  21. <Setter Property="Width" Value="74.67 " />
  22. <Setter Property="Height" Value="28" />
  23. <Setter Property="BorderThickness" Value="0" />
  24. <Setter Property="Template" Value="{DynamicResource Segmented}" />
  25. </Style>
  26. <dataconvert:UnVisivleConvert x:Key="UnVisivleConvert" />
  27. <dataconvert:IntAndTagToBoolMultiBinding x:Key="IntAndTagToBoolMultiBinding" />
  28. <dataconvert:ListCountAndBoolToVisible x:Key="ListCountAndBoolToVisible" />
  29. <dataconvert:IntToColorBrush x:Key="IntToColorBrush" />
  30. <dataconvert:ListCountToVisible x:Key="ListCountToVisible" />
  31. <dataconvert:CenterToolTipConverter x:Key="CenterToolTipConverter" />
  32. <dataconvert:SignatureButtonConvert x:Key="SignatureButtonConvert" />
  33. <Style x:Key="TriangleToolTipStyle" TargetType="ToolTip">
  34. <Setter Property="Template">
  35. <Setter.Value>
  36. <ControlTemplate>
  37. <StackPanel>
  38. <Path
  39. Margin="0,0,10,0"
  40. HorizontalAlignment="Center"
  41. VerticalAlignment="Center"
  42. Data="M 6 0 L 0 6 L 12 6 Z"
  43. Fill="#E6333333" />
  44. <Border
  45. HorizontalAlignment="Stretch"
  46. VerticalAlignment="Stretch"
  47. Background="#E6333333"
  48. CornerRadius="8">
  49. <TextBlock
  50. Margin="6"
  51. Foreground="White"
  52. LineHeight="20"
  53. Text="{TemplateBinding ContentControl.Content}" />
  54. </Border>
  55. </StackPanel>
  56. </ControlTemplate>
  57. </Setter.Value>
  58. </Setter>
  59. </Style>
  60. </UserControl.Resources>
  61. <cus:DialogContent x:Name="DialogHeader">
  62. <cus:DialogContent.Content>
  63. <TabControl
  64. BorderThickness="0"
  65. SelectedIndex="{Binding TabItemIndex, Mode=TwoWay}"
  66. Style="{StaticResource FormTabControl}">
  67. <TabItem x:Name="InputItem">
  68. <Grid>
  69. <Grid.RowDefinitions>
  70. <RowDefinition Height="*" />
  71. <RowDefinition Height="32" />
  72. </Grid.RowDefinitions>
  73. <Grid.ColumnDefinitions>
  74. <ColumnDefinition Width="16" />
  75. <ColumnDefinition Width="*" />
  76. <ColumnDefinition Width="16" />
  77. </Grid.ColumnDefinitions>
  78. <cus:TextBoxEx
  79. x:Name="InPutTextBox"
  80. Grid.Column="1"
  81. Height="182"
  82. HorizontalContentAlignment="Center"
  83. VerticalContentAlignment="Center"
  84. Background="{StaticResource color.sys.layout.mg}"
  85. FontFamily="{Binding ElementName=TextComBox, Path=SelectedValue, TargetNullValue=Segoe UI}"
  86. FontSize="20"
  87. Foreground="{Binding RadioButtonIndex, Converter={StaticResource IntToColorBrush}}"
  88. PlaceholderText="Input"
  89. ShowClose="False"
  90. Text="{Binding InputText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  91. TextChanged="TextBoxEx_TextChanged" />
  92. <Button
  93. x:Name="BtnTextClear"
  94. Grid.Column="1"
  95. Width="43"
  96. Height="24"
  97. Margin="0,0,8,24"
  98. HorizontalAlignment="Right"
  99. VerticalAlignment="Bottom"
  100. Command="{Binding ClearTextCommnad}"
  101. Style="{StaticResource btn.sec}"
  102. Visibility="{Binding ShowTextButton}" />
  103. <ComboBox
  104. x:Name="TextComBox"
  105. Grid.Row="1"
  106. Grid.Column="1"
  107. Width="200"
  108. HorizontalAlignment="Left"
  109. VerticalContentAlignment="Center"
  110. ItemsSource="{Binding FontNameList}"
  111. SelectedIndex="{Binding FontNameIndex, Mode=TwoWay}" />
  112. <StackPanel
  113. Grid.Row="1"
  114. Grid.Column="1"
  115. HorizontalAlignment="Right"
  116. VerticalAlignment="Center"
  117. Orientation="Horizontal">
  118. <cus:PathRadioButton
  119. Checked="TextRadioButton_Checked"
  120. CornerRadius="4"
  121. MouseDownBackground="#CED0D4"
  122. MouseDownBackgroundOpacity="0.6"
  123. MouseOverBackground="#EDEEF0"
  124. Tag="1">
  125. <cus:PathRadioButton.Content>
  126. <Grid Width="32" Height="32">
  127. <Ellipse
  128. Width="20"
  129. Height="20"
  130. Fill="#252629" />
  131. </Grid>
  132. </cus:PathRadioButton.Content>
  133. <i:Interaction.Triggers>
  134. <i:EventTrigger EventName="Checked">
  135. <i:InvokeCommandAction
  136. Command="{Binding CheckedCommnad}"
  137. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Tag}"
  138. PassEventArgsToCommand="True" />
  139. </i:EventTrigger>
  140. </i:Interaction.Triggers>
  141. <RadioButton.IsChecked>
  142. <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
  143. <Binding Source="1" />
  144. <Binding Path="RadioButtonIndex" />
  145. </MultiBinding>
  146. </RadioButton.IsChecked>
  147. </cus:PathRadioButton>
  148. <cus:PathRadioButton
  149. Margin="11,0"
  150. Checked="TextRadioButton_Checked"
  151. CornerRadius="4"
  152. MouseDownBackground="#CED0D4"
  153. MouseDownBackgroundOpacity="0.6"
  154. MouseOverBackground="#EDEEF0"
  155. Tag="2">
  156. <cus:PathRadioButton.Content>
  157. <Grid Width="32" Height="32">
  158. <Ellipse
  159. Width="20"
  160. Height="20"
  161. Fill="#F3465B" />
  162. </Grid>
  163. </cus:PathRadioButton.Content>
  164. <i:Interaction.Triggers>
  165. <i:EventTrigger EventName="Checked">
  166. <i:InvokeCommandAction
  167. Command="{Binding CheckedCommnad}"
  168. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Tag}"
  169. PassEventArgsToCommand="True" />
  170. </i:EventTrigger>
  171. </i:Interaction.Triggers>
  172. <RadioButton.IsChecked>
  173. <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
  174. <Binding Source="2" />
  175. <Binding Path="RadioButtonIndex" />
  176. </MultiBinding>
  177. </RadioButton.IsChecked>
  178. </cus:PathRadioButton>
  179. <cus:PathRadioButton
  180. Checked="TextRadioButton_Checked"
  181. CornerRadius="4"
  182. MouseDownBackground="#CED0D4"
  183. MouseDownBackgroundOpacity="0.6"
  184. MouseOverBackground="#EDEEF0"
  185. Tag="3">
  186. <cus:PathRadioButton.Content>
  187. <Grid Width="32" Height="32">
  188. <Ellipse
  189. Width="20"
  190. Height="20"
  191. Fill="#273C62" />
  192. </Grid>
  193. </cus:PathRadioButton.Content>
  194. <i:Interaction.Triggers>
  195. <i:EventTrigger EventName="Checked">
  196. <i:InvokeCommandAction
  197. Command="{Binding CheckedCommnad}"
  198. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Tag}"
  199. PassEventArgsToCommand="True" />
  200. </i:EventTrigger>
  201. </i:Interaction.Triggers>
  202. <RadioButton.IsChecked>
  203. <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
  204. <Binding Source="3" />
  205. <Binding Path="RadioButtonIndex" />
  206. </MultiBinding>
  207. </RadioButton.IsChecked>
  208. </cus:PathRadioButton>
  209. <cus:PathRadioButton
  210. Margin="11,0,0,0"
  211. Checked="TextRadioButton_Checked"
  212. CornerRadius="4"
  213. MouseDownBackground="#CED0D4"
  214. MouseDownBackgroundOpacity="0.6"
  215. MouseOverBackground="#EDEEF0"
  216. Tag="4">
  217. <cus:PathRadioButton.Content>
  218. <Grid Width="32" Height="32">
  219. <Ellipse
  220. Width="20"
  221. Height="20"
  222. Fill="#94989C" />
  223. </Grid>
  224. </cus:PathRadioButton.Content>
  225. <i:Interaction.Triggers>
  226. <i:EventTrigger EventName="Checked">
  227. <i:InvokeCommandAction
  228. Command="{Binding CheckedCommnad}"
  229. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Tag}"
  230. PassEventArgsToCommand="True" />
  231. </i:EventTrigger>
  232. </i:Interaction.Triggers>
  233. <RadioButton.IsChecked>
  234. <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
  235. <Binding Source="4" />
  236. <Binding Path="RadioButtonIndex" />
  237. </MultiBinding>
  238. </RadioButton.IsChecked>
  239. </cus:PathRadioButton>
  240. </StackPanel>
  241. </Grid>
  242. </TabItem>
  243. <TabItem x:Name="DrawItem">
  244. <Grid>
  245. <Grid.RowDefinitions>
  246. <RowDefinition Height="*" />
  247. <RowDefinition Height="32" />
  248. </Grid.RowDefinitions>
  249. <Grid.ColumnDefinitions>
  250. <ColumnDefinition Width="16" />
  251. <ColumnDefinition Width="*" />
  252. <ColumnDefinition Width="16" />
  253. </Grid.ColumnDefinitions>
  254. <Border
  255. Grid.Column="1"
  256. Height="182"
  257. BorderBrush="{StaticResource color.field.border.norm}"
  258. BorderThickness="1"
  259. CornerRadius="4">
  260. <Grid>
  261. <InkCanvas
  262. x:Name="inkCanvas"
  263. Background="{StaticResource color.sys.layout.mg}"
  264. DefaultDrawingAttributes="{Binding DrawingAttributeObject}"
  265. PreviewMouseLeftButtonDown="inkCanvas_MouseLeftButtonDown"
  266. PreviewMouseLeftButtonUp="inkCanvas_MouseLeftButtonUp"
  267. Strokes="{Binding StrokesObject}" />
  268. <Grid
  269. x:Name="PlanGrid"
  270. Background="{StaticResource color.sys.layout.mg}"
  271. IsHitTestVisible="False"
  272. Opacity="0.7">
  273. <Grid.Visibility>
  274. <MultiBinding Converter="{StaticResource ListCountAndBoolToVisible}" Mode="OneWay">
  275. <Binding Path="StrokesObject.Count" />
  276. <Binding Path="IsMouseDown" />
  277. </MultiBinding>
  278. </Grid.Visibility>
  279. <TextBlock
  280. x:Name="DrawHint"
  281. HorizontalAlignment="Center"
  282. VerticalAlignment="Center" />
  283. </Grid>
  284. <Button
  285. x:Name="BtnDrawClear"
  286. Width="43"
  287. Height="24"
  288. Margin="0,0,8,8"
  289. HorizontalAlignment="Right"
  290. VerticalAlignment="Bottom"
  291. Command="{Binding ClearInkCanvasCommnad}"
  292. Style="{StaticResource btn.sec}"
  293. Visibility="{Binding ElementName=PlanGrid, Path=Visibility, Converter={StaticResource UnVisivleConvert}}" />
  294. </Grid>
  295. </Border>
  296. <ComboBox
  297. Grid.Row="1"
  298. Grid.Column="1"
  299. Width="80"
  300. HorizontalAlignment="Left"
  301. VerticalContentAlignment="Center"
  302. ItemsSource="{Binding ThicknessList}"
  303. SelectedIndex="{Binding ThicknessListIndex, Mode=TwoWay}" />
  304. <StackPanel
  305. Grid.Row="1"
  306. Grid.Column="1"
  307. HorizontalAlignment="Right"
  308. VerticalAlignment="Center"
  309. Orientation="Horizontal">
  310. <cus:PathRadioButton
  311. Checked="ImageRadioButton_Checked"
  312. CornerRadius="4"
  313. MouseDownBackground="#CED0D4"
  314. MouseDownBackgroundOpacity="0.6"
  315. MouseOverBackground="#EDEEF0"
  316. Tag="1">
  317. <cus:PathRadioButton.Content>
  318. <Grid Width="32" Height="32">
  319. <Ellipse
  320. Width="20"
  321. Height="20"
  322. Fill="#252629" />
  323. </Grid>
  324. </cus:PathRadioButton.Content>
  325. <i:Interaction.Triggers>
  326. <i:EventTrigger EventName="Checked">
  327. <i:InvokeCommandAction
  328. Command="{Binding CheckedCommnad}"
  329. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Tag}"
  330. PassEventArgsToCommand="True" />
  331. </i:EventTrigger>
  332. </i:Interaction.Triggers>
  333. <RadioButton.IsChecked>
  334. <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
  335. <Binding Source="1" />
  336. <Binding Path="ImageRadioButtonIndex" />
  337. </MultiBinding>
  338. </RadioButton.IsChecked>
  339. </cus:PathRadioButton>
  340. <cus:PathRadioButton
  341. Margin="11,0"
  342. CornerRadius="4"
  343. Checked="ImageRadioButton_Checked"
  344. MouseDownBackground="#CED0D4"
  345. MouseDownBackgroundOpacity="0.6"
  346. MouseOverBackground="#EDEEF0"
  347. Tag="2">
  348. <cus:PathRadioButton.Content>
  349. <Grid Width="32" Height="32">
  350. <Ellipse
  351. Width="20"
  352. Height="20"
  353. Fill="#FC1F1F" />
  354. </Grid>
  355. </cus:PathRadioButton.Content>
  356. <i:Interaction.Triggers>
  357. <i:EventTrigger EventName="Checked">
  358. <i:InvokeCommandAction
  359. Command="{Binding CheckedCommnad}"
  360. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Tag}"
  361. PassEventArgsToCommand="True" />
  362. </i:EventTrigger>
  363. </i:Interaction.Triggers>
  364. <RadioButton.IsChecked>
  365. <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
  366. <Binding Source="2" />
  367. <Binding Path="ImageRadioButtonIndex" />
  368. </MultiBinding>
  369. </RadioButton.IsChecked>
  370. </cus:PathRadioButton>
  371. <cus:PathRadioButton
  372. CornerRadius="4"
  373. Checked="ImageRadioButton_Checked"
  374. MouseDownBackground="#CED0D4"
  375. MouseDownBackgroundOpacity="0.6"
  376. MouseOverBackground="#EDEEF0"
  377. Tag="3">
  378. <cus:PathRadioButton.Content>
  379. <Grid Width="32" Height="32">
  380. <Ellipse
  381. Width="20"
  382. Height="20"
  383. Fill="#273C62" />
  384. </Grid>
  385. </cus:PathRadioButton.Content>
  386. <i:Interaction.Triggers>
  387. <i:EventTrigger EventName="Checked">
  388. <i:InvokeCommandAction
  389. Command="{Binding CheckedCommnad}"
  390. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Tag}"
  391. PassEventArgsToCommand="True" />
  392. </i:EventTrigger>
  393. </i:Interaction.Triggers>
  394. <RadioButton.IsChecked>
  395. <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
  396. <Binding Source="3" />
  397. <Binding Path="ImageRadioButtonIndex" />
  398. </MultiBinding>
  399. </RadioButton.IsChecked>
  400. </cus:PathRadioButton>
  401. <cus:PathRadioButton
  402. Margin="11,0,0,0"
  403. CornerRadius="4"
  404. Checked="ImageRadioButton_Checked"
  405. MouseDownBackground="#CED0D4"
  406. MouseDownBackgroundOpacity="0.6"
  407. MouseOverBackground="#EDEEF0"
  408. Tag="4">
  409. <cus:PathRadioButton.Content>
  410. <Grid Width="32" Height="32">
  411. <Ellipse
  412. Width="20"
  413. Height="20"
  414. Fill="#94989C" />
  415. </Grid>
  416. </cus:PathRadioButton.Content>
  417. <i:Interaction.Triggers>
  418. <i:EventTrigger EventName="Checked">
  419. <i:InvokeCommandAction
  420. Command="{Binding CheckedCommnad}"
  421. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Tag}"
  422. PassEventArgsToCommand="True" />
  423. </i:EventTrigger>
  424. </i:Interaction.Triggers>
  425. <RadioButton.IsChecked>
  426. <MultiBinding Converter="{StaticResource IntAndTagToBoolMultiBinding}" Mode="OneWay">
  427. <Binding Source="4" />
  428. <Binding Path="ImageRadioButtonIndex" />
  429. </MultiBinding>
  430. </RadioButton.IsChecked>
  431. </cus:PathRadioButton>
  432. </StackPanel>
  433. </Grid>
  434. </TabItem>
  435. <TabItem x:Name="PictureItem">
  436. <Grid>
  437. <Grid.RowDefinitions>
  438. <RowDefinition Height="*" />
  439. <RowDefinition Height="32" />
  440. </Grid.RowDefinitions>
  441. <Grid.ColumnDefinitions>
  442. <ColumnDefinition Width="16" />
  443. <ColumnDefinition Width="*" />
  444. <ColumnDefinition Width="16" />
  445. </Grid.ColumnDefinitions>
  446. <Border
  447. Grid.Column="1"
  448. Height="182"
  449. BorderBrush="{StaticResource color.field.border.norm}"
  450. BorderThickness="1"
  451. CornerRadius="4">
  452. <Grid Background="{StaticResource color.sys.layout.mg}">
  453. <StackPanel
  454. x:Name="AddStackPanel"
  455. HorizontalAlignment="Center"
  456. VerticalAlignment="Center"
  457. Visibility="{Binding ShowImageButton}">
  458. <cus:ImageButton
  459. Width="128"
  460. Height="128"
  461. Command="{Binding OpenImageCommnad}"
  462. Icon="pack://application:,,,/PDF Master;component/Resources/Dialog/AddImage.png"
  463. IconHeight="128"
  464. IconMouseOver="pack://application:,,,/PDF Master;component/Resources/Dialog/AddImageSuspend.png"
  465. IconPress="pack://application:,,,/PDF Master;component/Resources/Dialog/AddImageSuspend.png"
  466. IconWidth="128" />
  467. <TextBlock
  468. x:Name="ImageHint"
  469. HorizontalAlignment="Center"
  470. VerticalAlignment="Center"
  471. FontFamily="Segoe UI"
  472. FontSize="14"
  473. FontWeight="Regular"
  474. Foreground="{StaticResource color.sys.text.neutral.lv3}" />
  475. </StackPanel>
  476. <Grid Visibility="{Binding ElementName=AddStackPanel, Path=Visibility, Converter={StaticResource UnVisivleConvert}}">
  477. <Grid.RowDefinitions>
  478. <RowDefinition Height="24" />
  479. <RowDefinition Height="*" />
  480. </Grid.RowDefinitions>
  481. <Image
  482. Grid.RowSpan="2"
  483. Width="200"
  484. Height="200"
  485. Source="{Binding ImagePreviewSource}" />
  486. <Button
  487. x:Name="BtnPictureReselect"
  488. Grid.Row="1"
  489. Width="60"
  490. Height="24"
  491. Margin="0,0,8,8"
  492. HorizontalAlignment="Right"
  493. VerticalAlignment="Bottom"
  494. Command="{Binding OpenImageCommnad}"
  495. Style="{StaticResource btn.sec}" />
  496. </Grid>
  497. </Grid>
  498. </Border>
  499. <StackPanel
  500. Grid.Row="1"
  501. Grid.Column="1"
  502. HorizontalAlignment="Center"
  503. Orientation="Horizontal">
  504. <CheckBox
  505. Width="20"
  506. Height="20"
  507. IsChecked="{Binding IsRemoveBackground}" />
  508. <TextBlock
  509. x:Name="BtnReBkg"
  510. HorizontalAlignment="Center"
  511. VerticalAlignment="Center"
  512. FontFamily="Segoe UI"
  513. FontSize="14" />
  514. <cus:ImageButton
  515. Width="16"
  516. Height="16"
  517. Margin="8,0,0,0"
  518. Icon="pack://application:,,,/PDF Master;component/Resources/Dialog/help.png"
  519. IconHeight="16"
  520. IconMouseOver="pack://application:,,,/PDF Master;component/Resources/Dialog/helphover.png"
  521. IconPress="pack://application:,,,/PDF Master;component/Resources/Dialog/help.png"
  522. IconWidth="16">
  523. <cus:ImageButton.ToolTip>
  524. <ToolTip
  525. x:Name="BtnReBkgHint"
  526. Placement="Bottom"
  527. Style="{StaticResource TriangleToolTipStyle}">
  528. <ToolTip.HorizontalOffset>
  529. <MultiBinding Converter="{StaticResource CenterToolTipConverter}">
  530. <Binding Path="PlacementTarget.ActualWidth" RelativeSource="{RelativeSource Self}" />
  531. <Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
  532. </MultiBinding>
  533. </ToolTip.HorizontalOffset>
  534. </ToolTip>
  535. </cus:ImageButton.ToolTip>
  536. </cus:ImageButton>
  537. </StackPanel>
  538. </Grid>
  539. </TabItem>
  540. </TabControl>
  541. </cus:DialogContent.Content>
  542. <cus:DialogContent.BottmBar>
  543. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  544. <Button
  545. x:Name="BtnOK"
  546. Grid.Column="0"
  547. Width="80"
  548. Height="32"
  549. HorizontalAlignment="Right"
  550. Command="{Binding CreateCommnad}"
  551. Style="{StaticResource Btn.cta}">
  552. <Button.IsEnabled>
  553. <MultiBinding Converter="{StaticResource SignatureButtonConvert}" Mode="OneWay">
  554. <Binding Path="TabItemIndex" />
  555. <Binding Path="InputText" />
  556. <Binding Path="StrokesObject.Count" />
  557. <Binding Path="ImagePreviewSource" />
  558. </MultiBinding>
  559. </Button.IsEnabled>
  560. </Button>
  561. <Button
  562. x:Name="BtnNo"
  563. Grid.Column="2"
  564. Width="80"
  565. Height="32"
  566. Margin="16,0,16,0"
  567. HorizontalAlignment="Left"
  568. Command="{Binding CancelCommand}"
  569. Style="{StaticResource btn.sec}" />
  570. </StackPanel>
  571. </cus:DialogContent.BottmBar>
  572. </cus:DialogContent>
  573. </UserControl>