MergeDialog.xaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <UserControl x:Class="PDF_Office.Views.Dialog.ToolsDialogs.MergeDialog"
  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.Dialog.PageEditDialogs"
  7. mc:Ignorable="d"
  8. xmlns:prism="http://prismlibrary.com/" xmlns:customcontrol="clr-namespace:PDF_Office.CustomControl" xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert" xmlns:toolsdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.ToolsDialogs" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" d:DataContext="{d:DesignInstance Type=toolsdialogs:MergeDialogViewModel}"
  9. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  10. Width="818"
  11. Height="600"
  12. >
  13. <UserControl.Resources>
  14. <dataconvert:IndexConverter x:Key="IndexConverter"/>
  15. <dataconvert:BoolToVisible x:Key="BoolToVisible" />
  16. <dataconvert:UnVisivleConvert x:Key="UnVisivleConvert" />
  17. <dataconvert:ListCountToVisible x:Key="ListCountToVisible"/>
  18. <dataconvert:UnVisibleToBoolConvert x:Key="UnVisibleToBoolConvert"/>
  19. <PathGeometry x:Key="Ic_ClearButtonPath" Figures="M6 1.75H10V0.25H6V1.75ZM1 4.25H2.25V15C2.25 15.4142 2.58579 15.75 3 15.75H13C13.4142 15.75 13.75 15.4142 13.75 15V4.25H15V2.75H1V4.25ZM3.75 14.25V4.25H12.25V14.25H3.75ZM7.25 6.5V11.5H8.75V6.5H7.25Z" />
  20. <PathGeometry x:Key="Ic_DeleteButtonPath" Figures="M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.5303 5.53038L9.06069 8L11.5303 10.4696L10.4697 11.5303L8.00002 9.06066L5.53033 11.5303L4.46967 10.4697L6.93936 8L4.46967 5.53033L5.53033 4.46967L8.00002 6.93934L10.4697 4.46971L11.5303 5.53038Z" />
  21. <SolidColorBrush x:Key="Item.MouseOver.Background" Color="#1F26A0DA"/>
  22. <SolidColorBrush x:Key="Item.MouseOver.Border" Color="#a826A0Da"/>
  23. <SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#3DDADADA"/>
  24. <SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="#FFDADADA"/>
  25. <SolidColorBrush x:Key="Item.SelectedActive.Background" Color="#3D26A0DA"/>
  26. <SolidColorBrush x:Key="Item.SelectedActive.Border" Color="#FF26A0DA"/>
  27. <Style x:Key="ListViewItemStyle1" TargetType="{x:Type ListViewItem}">
  28. <Setter Property="SnapsToDevicePixels" Value="True"/>
  29. <Setter Property="Padding" Value="0,2,0,0"/>
  30. <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
  31. <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
  32. <Setter Property="Background" Value="Transparent"/>
  33. <Setter Property="BorderBrush" Value="Transparent"/>
  34. <Setter Property="BorderThickness" Value="0"/>
  35. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
  36. <Setter Property="Template">
  37. <Setter.Value>
  38. <ControlTemplate TargetType="{x:Type ListViewItem}">
  39. <Border Grid.Row="2" CornerRadius="8" x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
  40. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  41. </Border>
  42. <ControlTemplate.Triggers>
  43. <MultiTrigger>
  44. <MultiTrigger.Conditions>
  45. <Condition Property="IsMouseOver" Value="True"/>
  46. </MultiTrigger.Conditions>
  47. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  48. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  49. </MultiTrigger>
  50. <MultiTrigger>
  51. <MultiTrigger.Conditions>
  52. <Condition Property="Selector.IsSelectionActive" Value="False"/>
  53. <Condition Property="IsSelected" Value="True"/>
  54. </MultiTrigger.Conditions>
  55. <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}"/>
  56. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Border}"/>
  57. </MultiTrigger>
  58. <MultiTrigger>
  59. <MultiTrigger.Conditions>
  60. <Condition Property="Selector.IsSelectionActive" Value="True"/>
  61. <Condition Property="IsSelected" Value="True"/>
  62. </MultiTrigger.Conditions>
  63. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  64. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  65. </MultiTrigger>
  66. <Trigger Property="IsEnabled" Value="False">
  67. <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  68. </Trigger>
  69. </ControlTemplate.Triggers>
  70. </ControlTemplate>
  71. </Setter.Value>
  72. </Setter>
  73. </Style>
  74. </UserControl.Resources>
  75. <Grid Background="{StaticResource color.sys.layout.anti}">
  76. <Grid.ColumnDefinitions>
  77. <ColumnDefinition Width="16"/>
  78. <ColumnDefinition Width="526"/>
  79. <ColumnDefinition Width="16"/>
  80. <ColumnDefinition Width="260"/>
  81. </Grid.ColumnDefinitions>
  82. <Grid.RowDefinitions>
  83. <RowDefinition Height="16"/>
  84. <RowDefinition Height="20"/>
  85. <RowDefinition Height="8"/>
  86. <RowDefinition Height="*"/>
  87. <RowDefinition Height="16"/>
  88. <RowDefinition Height="50"/>
  89. <RowDefinition Height="16"/>
  90. </Grid.RowDefinitions>
  91. <Border Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" Padding="50,6,50,6" Visibility="{Binding Visibility, Converter={StaticResource UnVisivleConvert}, ElementName=NoFileStackPanel}">
  92. <Grid>
  93. <TextBlock Text="File Name" HorizontalAlignment="Left" FontFamily="Segoe UI" FontSize="12" FontWeight="Bold" Foreground="{StaticResource color.sys.text.neutral.lv1}"/>
  94. <TextBlock Text="Page Range" HorizontalAlignment="Center" FontFamily="Segoe UI" FontSize="12" FontWeight="Bold" Foreground="{StaticResource color.sys.text.neutral.lv1}"/>
  95. <TextBlock Text="Size" HorizontalAlignment="Right" FontFamily="Segoe UI" FontSize="12" FontWeight="Bold" Foreground="{StaticResource color.sys.text.neutral.lv1}"/>
  96. </Grid>
  97. </Border>
  98. <Border Grid.Column="1" Grid.Row="3">
  99. <Grid AllowDrop="True" Background="{StaticResource color.sys.layout.anti}"
  100. PreviewDrop="Grid_Drop"
  101. PreviewDragEnter="Grid_DragEnter"
  102. PreviewDragOver="Grid_DragOver"
  103. PreviewDragLeave="Grid_DragLeave"
  104. >
  105. <StackPanel
  106. x:Name="NoFileStackPanel" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="{Binding MergeObjectlist.Count, Converter={StaticResource ListCountToVisible}}" >
  107. <customcontrol:ImageButton
  108. Height="128" Width="128" IconHeight="128" IconWidth="128"
  109. Icon="pack://application:,,,/PDF Office;component/Resources/Dialog/AddImage.png"
  110. IconPress="pack://application:,,,/PDF Office;component/Resources/Dialog/AddImageSuspend.png"
  111. IconMouseOver="pack://application:,,,/PDF Office;component/Resources/Dialog/AddImageSuspend.png" Command="{Binding AddFilesCommand}" CommandParameter="0"/>
  112. <TextBlock Text="Selected files" FontSize="14" FontFamily="Segoe UI" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  113. <TextBlock Text="Drop files here or Click Add Files at bottom right button. You can drag files to reorder as you need." FontSize="14" FontFamily="Segoe UI" HorizontalAlignment="Center" TextAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap"/>
  114. </StackPanel>
  115. <ListView x:Name="MergeView" AllowDrop="True"
  116. ItemContainerStyle="{StaticResource ListViewItemStyle1}"
  117. BorderThickness="0"
  118. Visibility="{Binding Visibility, Converter={StaticResource UnVisivleConvert}, ElementName=NoFileStackPanel}"
  119. Drop="MergeView_Drop"
  120. DragEnter="MergeView_DragEnter"
  121. DragOver="MergeView_DragOver"
  122. DragLeave="MergeView_DragLeave"
  123. PreviewMouseMove="MergeView_PreviewMouseMove"
  124. ItemsSource="{Binding MergeObjectlist}"
  125. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  126. HorizontalContentAlignment="Stretch">
  127. <ListView.ItemTemplate>
  128. <DataTemplate >
  129. <StackPanel>
  130. <Line X1="0" X2="{Binding ActualWidth, ElementName=ContentPanel}" HorizontalAlignment="Stretch" StrokeThickness="1" Stroke="{StaticResource color.item-state.hov.bg}" VerticalAlignment="Bottom"/>
  131. <Grid x:Name="ContentPanel" Height="76" >
  132. <Grid.ColumnDefinitions>
  133. <ColumnDefinition Width="40"/>
  134. <ColumnDefinition Width="60"/>
  135. <ColumnDefinition Width="141"/>
  136. <ColumnDefinition Width="auto"/>
  137. <ColumnDefinition Width="*"/>
  138. <ColumnDefinition Width="16"/>
  139. <ColumnDefinition Width="16"/>
  140. </Grid.ColumnDefinitions>
  141. <Line Margin="0,0,0,0" Grid.ColumnSpan="6" Visibility="{Binding IsForward, Converter={StaticResource BoolToVisible}}" X1="0" X2="{Binding ActualWidth, ElementName=ContentPanel}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" StrokeThickness="1" Stroke="{StaticResource color.sys.layout.accent}" />
  142. <Line Margin="0,0,0,0" Grid.ColumnSpan="6" Visibility="{Binding IsBackwards, Converter={StaticResource BoolToVisible}}" X1="0" X2="{Binding ActualWidth, ElementName=ContentPanel}" HorizontalAlignment="Stretch" VerticalAlignment="Top" StrokeThickness="1" Stroke="{StaticResource color.sys.layout.accent}" />
  143. <TextBlock Text="{Binding Converter={StaticResource IndexConverter}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}}"
  144. VerticalAlignment="Center" HorizontalAlignment="Center"/>
  145. <Image Margin="8" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Source="{Binding DocThumbnail}" Stretch="Uniform" />
  146. <StackPanel Grid.Column="2" Margin="16,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Center">
  147. <TextBlock Text="{Binding DocName}" FontFamily="Segoe UI" FontSize="14" FontWeight="Regular" Foreground="{StaticResource color.sys.text.neutral.lv1}" TextTrimming="CharacterEllipsis"/>
  148. <TextBlock Text="{Binding DocPageCount}" FontFamily="Segoe UI" FontSize="14" FontWeight="Regular" Foreground="{StaticResource color.sys.text.neutral.lv3}"/>
  149. </StackPanel>
  150. <StackPanel Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="16,0,0,0">
  151. <customcontrol:WritableComboBox SelectedIndex="0" Width="150" Height="30" MaxPageRange="{Binding SDKPageCount}" Text="{Binding SetPageRange, Mode=TwoWay}"/>
  152. </StackPanel>
  153. <TextBlock Grid.Column="4" Text="{Binding DocSize}" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="16,0,0,0"/>
  154. <StackPanel Grid.Column="5" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="0,0">
  155. <customcontrol:PathButton
  156. Visibility="Collapsed"
  157. HorizontalAlignment="Center"
  158. VerticalAlignment="Center"
  159. VerticalContentAlignment="Center"
  160. x:Name="DeleteIcon"
  161. Width="16" Height="16"
  162. Click="Delete_Click"
  163. Icon="{StaticResource Ic_DeleteButtonPath}" IconFill="#616469"
  164. IconHeight="16" IconWidth="16"
  165. IconMouseOver="{StaticResource Ic_DeleteButtonPath}" IconMouseOverFill="#616469"
  166. IconPress="{StaticResource Ic_DeleteButtonPath}" IconPressFill="#616469"
  167. CornerRadius="4" HorizontalContentAlignment="Center"
  168. MouseOverBackground="{StaticResource color.item-state.hov.bg}"
  169. MouseDownBackground="{StaticResource color.item-state.sel.bg.lv3}"
  170. MouseDownBorderBrush="{StaticResource color.item-state.sel.border.lv3}"
  171. />
  172. </StackPanel>
  173. </Grid>
  174. </StackPanel>
  175. <DataTemplate.Triggers>
  176. <Trigger Property="IsMouseOver" Value="True">
  177. <Setter TargetName="DeleteIcon" Property="Visibility" Value="Visible" />
  178. </Trigger>
  179. </DataTemplate.Triggers>
  180. </DataTemplate>
  181. </ListView.ItemTemplate>
  182. </ListView>
  183. </Grid>
  184. </Border>
  185. <Border Grid.Column="3" Grid.RowSpan="7" Background="{StaticResource color.sys.layout.mg}">
  186. <Grid>
  187. <Grid.RowDefinitions>
  188. <RowDefinition Height="14"/>
  189. <RowDefinition Height="*"/>
  190. <RowDefinition Height="auto"/>
  191. <RowDefinition Height="16"/>
  192. </Grid.RowDefinitions>
  193. <Grid.ColumnDefinitions>
  194. <ColumnDefinition Width="16"/>
  195. <ColumnDefinition Width="*"/>
  196. <ColumnDefinition Width="16"/>
  197. </Grid.ColumnDefinitions>
  198. <StackPanel Grid.Row="1" Grid.Column="1">
  199. <TextBlock Text=" Page Size" VerticalAlignment="Center" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold"/>
  200. <RadioButton Content="Original page size" FontWeight="Regular" FontSize="14" FontFamily="Segoe UI" Tag="0" Margin="0,14,0,0">
  201. <i:Interaction.Triggers>
  202. <i:EventTrigger EventName="Checked">
  203. <i:InvokeCommandAction Command="{Binding SetPageSizeTypeCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=RadioButton}}" PassEventArgsToCommand="True" />
  204. </i:EventTrigger>
  205. </i:Interaction.Triggers>
  206. </RadioButton>
  207. <RadioButton Content="A4" Tag="1" FontWeight="Regular" FontSize="14" FontFamily="Segoe UI" Margin="0,8,0,0">
  208. <i:Interaction.Triggers>
  209. <i:EventTrigger EventName="Checked">
  210. <i:InvokeCommandAction Command="{Binding SetPageSizeTypeCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=RadioButton}}" PassEventArgsToCommand="True" />
  211. </i:EventTrigger>
  212. </i:Interaction.Triggers>
  213. </RadioButton>
  214. <RadioButton Content="A3" Tag="2" FontWeight="Regular" FontSize="14" FontFamily="Segoe UI" Margin="0,8,0,0">
  215. <i:Interaction.Triggers>
  216. <i:EventTrigger EventName="Checked">
  217. <i:InvokeCommandAction Command="{Binding SetPageSizeTypeCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=RadioButton}}" PassEventArgsToCommand="True" />
  218. </i:EventTrigger>
  219. </i:Interaction.Triggers>
  220. </RadioButton>
  221. <RadioButton Content="U.S.Letter" Tag="3" FontWeight="Regular" FontSize="14" FontFamily="Segoe UI" Margin="0,8,0,0">
  222. <i:Interaction.Triggers>
  223. <i:EventTrigger EventName="Checked">
  224. <i:InvokeCommandAction Command="{Binding SetPageSizeTypeCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=RadioButton}}" PassEventArgsToCommand="True" />
  225. </i:EventTrigger>
  226. </i:Interaction.Triggers>
  227. </RadioButton>
  228. <RadioButton Content="U.S.Legal" Tag="4" FontWeight="Regular" FontSize="14" FontFamily="Segoe UI" Margin="0,8,0,0">
  229. <i:Interaction.Triggers>
  230. <i:EventTrigger EventName="Checked">
  231. <i:InvokeCommandAction Command="{Binding SetPageSizeTypeCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=RadioButton}}" PassEventArgsToCommand="True" />
  232. </i:EventTrigger>
  233. </i:Interaction.Triggers>
  234. </RadioButton>
  235. <RadioButton x:Name="Customized" Content="Customized" Tag="5" FontWeight="Regular" FontSize="14" FontFamily="Segoe UI" Margin="0,8,0,0">
  236. <i:Interaction.Triggers>
  237. <i:EventTrigger EventName="Checked">
  238. <i:InvokeCommandAction Command="{Binding SetPageSizeTypeCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=RadioButton}}" PassEventArgsToCommand="True" />
  239. </i:EventTrigger>
  240. </i:Interaction.Triggers>
  241. </RadioButton>
  242. <StackPanel IsEnabled="{Binding ElementName=Customized, Path=IsChecked}" Margin="0,8,0,0" Orientation="Horizontal" HorizontalAlignment="Stretch">
  243. <customcontrol:TextBoxEx Width="85" PreviewKeyDown="TextBoxEx_PreviewKeyDown" x:Name="TextWidth" PlaceholderText="595" Text="{Binding InputWidth,Mode=TwoWay}" PreviewTextInput="TextBox_PreviewTextInput" LostFocus="TextBoxEx_LostFocus"/>
  244. <TextBlock Text="X" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8,0"/>
  245. <customcontrol:TextBoxEx Width="85" PreviewKeyDown="TextBoxEx_PreviewKeyDown" x:Name="TextHeight" PlaceholderText="841" Grid.Column="2" Text="{Binding InputHeight,Mode=TwoWay}" PreviewTextInput="TextBox_PreviewTextInput" LostFocus="TextBoxEx_LostFocus"/>
  246. <TextBlock Text="mm" VerticalAlignment="Center" FontWeight="Regular" FontSize="14" FontFamily="Segoe UI" Margin="8,0,0,0"/>
  247. </StackPanel>
  248. </StackPanel>
  249. <StackPanel Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Bottom">
  250. <Button x:Name="BtnMerge" Width="228" Content="Merge" Height="32" Style="{StaticResource Btn.cta}" Command="{Binding MergeCommand}" IsEnabled="{Binding ElementName=NoFileStackPanel,Path=Visibility,Converter={StaticResource UnVisibleToBoolConvert}}"/>
  251. <Button Margin="0,16,0,0" Width="228" Content="Cancel" Height="32" Style="{StaticResource btn.sec}" Command="{Binding CancelCommand}"/>
  252. </StackPanel>
  253. </Grid>
  254. </Border>
  255. <ComboBox Grid.Column="1" SelectedIndex="0" Grid.Row="5" Width="113" Height="32" HorizontalAlignment="Left" VerticalAlignment="Bottom" >
  256. <ComboBoxItem Tag="0">
  257. <TextBlock Text="Add Files" />
  258. <i:Interaction.Triggers>
  259. <i:EventTrigger EventName="PreviewMouseUp">
  260. <i:InvokeCommandAction
  261. Command="{Binding AddFilesCommand}"
  262. CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ComboBoxItem}},Path=Tag}"
  263. PassEventArgsToCommand="True" />
  264. </i:EventTrigger>
  265. </i:Interaction.Triggers>
  266. </ComboBoxItem>
  267. <ComboBoxItem Tag="1">
  268. <TextBlock Text="添加文件夹"/>
  269. <i:Interaction.Triggers>
  270. <i:EventTrigger EventName="PreviewMouseUp">
  271. <i:InvokeCommandAction
  272. Command="{Binding AddFilesCommand}"
  273. CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ComboBoxItem}},Path=Tag}"
  274. PassEventArgsToCommand="True" />
  275. </i:EventTrigger>
  276. </i:Interaction.Triggers>
  277. </ComboBoxItem>
  278. <ComboBoxItem Tag="2">
  279. <TextBlock Text="添加已打开文件"/>
  280. <i:Interaction.Triggers>
  281. <i:EventTrigger EventName="PreviewMouseUp">
  282. <i:InvokeCommandAction
  283. Command="{Binding AddFilesCommand}"
  284. CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ComboBoxItem}},Path=Tag}"
  285. PassEventArgsToCommand="True" />
  286. </i:EventTrigger>
  287. </i:Interaction.Triggers>
  288. </ComboBoxItem>
  289. </ComboBox>
  290. <Border BorderThickness="1" Width="32" Height="32" Grid.Column="1" Grid.Row="5" BorderBrush="{StaticResource color.btn.sec.border-color}"
  291. HorizontalAlignment="Right" VerticalAlignment="Bottom" CornerRadius="4">
  292. <customcontrol:PathButton
  293. HorizontalAlignment="Center"
  294. VerticalAlignment="Center"
  295. VerticalContentAlignment="Center"
  296. x:Name="BtnAdd"
  297. Width="32" Height="32"
  298. Command="{Binding ClearCommand}"
  299. Icon="{StaticResource Ic_ClearButtonPath}" IconFill="#616469"
  300. IconHeight="16" IconWidth="16"
  301. IconMouseOver="{StaticResource Ic_ClearButtonPath}" IconMouseOverFill="#616469"
  302. IconPress="{StaticResource Ic_ClearButtonPath}" IconPressFill="#616469"
  303. CornerRadius="4" HorizontalContentAlignment="Center"
  304. MouseOverBackground="{StaticResource color.item-state.hov.bg}"
  305. MouseDownBackground="{StaticResource color.item-state.sel.bg.lv3}"
  306. MouseDownBorderBrush="{StaticResource color.item-state.sel.border.lv3}"
  307. />
  308. </Border>
  309. </Grid>
  310. </UserControl>