StampAnnotProperty.xaml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.StampAnnotProperty"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  5. xmlns:customcontrol="clr-namespace:PDF_Office.CustomControl"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
  9. xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
  10. xmlns:model="clr-namespace:PDF_Office.Model.AnnotPanel"
  11. xmlns:dd="clr-namespace:PDFSettings;assembly=PDFSettings"
  12. xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert"
  13. d:DataContext="{d:DesignInstance Type=annotpanel:StampAnnotPropertyViewModel}"
  14. mc:Ignorable="d"
  15. Background="#FCFDFF"
  16. KeyDown="UserControl_KeyDown"
  17. Loaded="UserControl_Loaded"
  18. >
  19. <UserControl.Resources>
  20. <PathGeometry x:Key="Ic_SettingButtonPath" Figures="M8.24998 1.87558L13.1782 4.72088C13.3329 4.8102 13.4282 4.97526 13.4282 5.15389V10.8445C13.4282 11.0231 13.3329 11.1882 13.1782 11.2775L8.24998 14.1228C8.09528 14.2121 7.90468 14.2121 7.74998 14.1228L2.82178 11.2775C2.66708 11.1882 2.57178 11.0231 2.57178 10.8445V5.15389C2.57178 4.97526 2.66708 4.8102 2.82178 4.72088L7.74998 1.87558C7.90468 1.78626 8.09528 1.78626 8.24998 1.87558ZM6.99998 0.576543C7.61878 0.219277 8.38118 0.219277 8.99998 0.576543L13.9282 3.42184C14.547 3.77911 14.9282 4.43936 14.9282 5.15389V10.8445C14.9282 11.559 14.547 12.2193 13.9282 12.5765L8.99998 15.4218C8.38118 15.7791 7.61878 15.7791 6.99998 15.4218L2.07178 12.5765C1.45298 12.2193 1.07178 11.559 1.07178 10.8445V5.15389C1.07178 4.43936 1.45298 3.77911 2.07178 3.42184L6.99998 0.576543ZM9.99998 7.99919C9.99998 9.10376 9.10455 9.99919 7.99998 9.99919C6.89541 9.99919 5.99998 9.10376 5.99998 7.99919C5.99998 6.89462 6.89541 5.99919 7.99998 5.99919C9.10455 5.99919 9.99998 6.89462 9.99998 7.99919ZM11.5 7.99919C11.5 9.93219 9.93298 11.4992 7.99998 11.4992C6.06698 11.4992 4.49998 9.93219 4.49998 7.99919C4.49998 6.0662 6.06698 4.49919 7.99998 4.49919C9.93298 4.49919 11.5 6.0662 11.5 7.99919Z"/>
  21. <dataconvert:BoolToVisible x:Key="BoolToVisible"/>
  22. <dataconvert:ListCountToVisible x:Key="ListCountToVisible"/>
  23. <dataconvert:UnVisivleConvert x:Key="UnVisivleConvert"/>
  24. <Style TargetType="{x:Type TabItem}">
  25. <Setter Property="Width" Value="74.67 " />
  26. <Setter Property="Height" Value="28" />
  27. <Setter Property="BorderThickness" Value="0" />
  28. <Setter Property="Template" Value="{StaticResource Segmented}" />
  29. </Style>
  30. <SolidColorBrush x:Key="Item.MouseOver.Background" Color="#1F26A0DA"/>
  31. <SolidColorBrush x:Key="Item.MouseOver.Border" Color="#a826A0Da"/>
  32. <SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="#3DDADADA"/>
  33. <SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="#FFDADADA"/>
  34. <SolidColorBrush x:Key="Item.SelectedActive.Background" Color="#3D26A0DA"/>
  35. <SolidColorBrush x:Key="Item.SelectedActive.Border" Color="#FF26A0DA"/>
  36. </UserControl.Resources>
  37. <Grid>
  38. <Grid.RowDefinitions>
  39. <RowDefinition Height="50"/>
  40. <RowDefinition Height="*"/>
  41. </Grid.RowDefinitions>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="16"/>
  44. <ColumnDefinition Width="*"/>
  45. <ColumnDefinition Width="16"/>
  46. </Grid.ColumnDefinitions>
  47. <Grid Grid.Column="1">
  48. <Grid.ColumnDefinitions>
  49. <ColumnDefinition Width="*"/>
  50. <ColumnDefinition Width="auto"/>
  51. </Grid.ColumnDefinitions>
  52. <TextBlock x:Name="AnnoteTypeTitle" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0 14 0 0" FontFamily="Segoe UI" FontWeight="SemiBold" FontSize="14"/>
  53. <customcontrol:PathButton Grid.Column="1"
  54. Visibility="{Binding UnStandard,Converter={StaticResource BoolToVisible}}"
  55. Command="{Binding ShowDialogCommand}"
  56. Height="24" Width="24" IconHeight="16" IconWidth="16"
  57. Icon="{StaticResource Ic_SettingButtonPath}" IconFill="#616469"
  58. IconPress="{StaticResource Ic_SettingButtonPath}" IconPressFill="#C04CF8"
  59. IconMouseOver="{StaticResource Ic_SettingButtonPath}" IconMouseOverFill="#C04CF8" />
  60. </Grid>
  61. <Grid Grid.Column="1" Grid.Row="1">
  62. <ListBox ItemsSource="{Binding StandardStampList}" SelectionMode="Single" Height="auto" VerticalAlignment="Top" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" >
  63. <ListBox.ItemTemplate>
  64. <DataTemplate >
  65. <Grid >
  66. <Grid.ContextMenu>
  67. <ContextMenu>
  68. <MenuItem Header="导出图章">
  69. <MenuItem x:Name="SavePNG" Header="PNG" Tag="PNG" Click="Save_Click"/>
  70. <MenuItem x:Name="SavePDF" Header="PDF" Tag="PDF" Click="Save_Click"/>
  71. </MenuItem>
  72. </ContextMenu>
  73. </Grid.ContextMenu>
  74. <Image Source="{Binding SourcePath}" Stretch="Uniform" Height="40"/>
  75. </Grid>
  76. </DataTemplate>
  77. </ListBox.ItemTemplate>
  78. <ListBox.ItemContainerStyle>
  79. <Style TargetType="ListBoxItem">
  80. <Setter Property="Height" Value="65"/>
  81. <Setter Property="Padding" Value="8"/>
  82. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  83. <Setter Property="Template">
  84. <Setter.Value>
  85. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  86. <Border x:Name="Bd" CornerRadius="8" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
  87. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  88. </Border>
  89. <ControlTemplate.Triggers>
  90. <MultiTrigger>
  91. <MultiTrigger.Conditions>
  92. <Condition Property="IsMouseOver" Value="True"/>
  93. </MultiTrigger.Conditions>
  94. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  95. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  96. </MultiTrigger>
  97. <MultiTrigger>
  98. <MultiTrigger.Conditions>
  99. <Condition Property="Selector.IsSelectionActive" Value="False"/>
  100. <Condition Property="IsSelected" Value="True"/>
  101. </MultiTrigger.Conditions>
  102. <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}"/>
  103. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Border}"/>
  104. </MultiTrigger>
  105. <MultiTrigger>
  106. <MultiTrigger.Conditions>
  107. <Condition Property="Selector.IsSelectionActive" Value="True"/>
  108. <Condition Property="IsSelected" Value="True"/>
  109. </MultiTrigger.Conditions>
  110. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.sel.bg.lv3}"/>
  111. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.sel.border.lv3}"/>
  112. </MultiTrigger>
  113. <Trigger Property="IsEnabled" Value="False">
  114. <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  115. </Trigger>
  116. </ControlTemplate.Triggers>
  117. </ControlTemplate>
  118. </Setter.Value>
  119. </Setter>
  120. <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListBoxItem_PreviewMouseLeftButtonDown"/>
  121. </Style>
  122. </ListBox.ItemContainerStyle>
  123. </ListBox>
  124. </Grid>
  125. <!--<TabControl Padding="0" Grid.Column="1" BorderThickness="0" Grid.Row="1" Name="StampTabControl" SelectedIndex="{Binding TabControlSelectedIndex,Mode=TwoWay}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" Style="{StaticResource FormTabControl}">
  126. <TabItem x:Name="TabStandard"
  127. Header="Standard"
  128. FontFamily="Segoe UI"
  129. HorizontalContentAlignment="Center"
  130. FontSize="12"
  131. IsSelected="True">
  132. <Grid>
  133. <ListBox ItemsSource="{Binding StandardStampList}" SelectionMode="Single" Height="auto" VerticalAlignment="Top" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" >
  134. <ListBox.ItemTemplate>
  135. <DataTemplate >
  136. <Grid >
  137. <Grid.ContextMenu>
  138. <ContextMenu>
  139. <MenuItem Header="导出图章">
  140. <MenuItem x:Name="SavePNG" Header="PNG" Tag="PNG" Click="Save_Click"/>
  141. <MenuItem x:Name="SavePDF" Header="PDF" Tag="PDF" Click="Save_Click"/>
  142. </MenuItem>
  143. </ContextMenu>
  144. </Grid.ContextMenu>
  145. <Image Source="{Binding SourcePath}" Stretch="Uniform" Height="40"/>
  146. </Grid>
  147. </DataTemplate>
  148. </ListBox.ItemTemplate>
  149. <ListBox.ItemContainerStyle>
  150. <Style TargetType="ListBoxItem">
  151. <Setter Property="Height" Value="65"/>
  152. <Setter Property="Padding" Value="8"/>
  153. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  154. <Setter Property="Template">
  155. <Setter.Value>
  156. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  157. <Border x:Name="Bd" CornerRadius="8" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
  158. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  159. </Border>
  160. <ControlTemplate.Triggers>
  161. <MultiTrigger>
  162. <MultiTrigger.Conditions>
  163. <Condition Property="IsMouseOver" Value="True"/>
  164. </MultiTrigger.Conditions>
  165. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  166. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  167. </MultiTrigger>
  168. <MultiTrigger>
  169. <MultiTrigger.Conditions>
  170. <Condition Property="Selector.IsSelectionActive" Value="False"/>
  171. <Condition Property="IsSelected" Value="True"/>
  172. </MultiTrigger.Conditions>
  173. <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}"/>
  174. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Border}"/>
  175. </MultiTrigger>
  176. <MultiTrigger>
  177. <MultiTrigger.Conditions>
  178. <Condition Property="Selector.IsSelectionActive" Value="True"/>
  179. <Condition Property="IsSelected" Value="True"/>
  180. </MultiTrigger.Conditions>
  181. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.sel.bg.lv3}"/>
  182. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.sel.border.lv3}"/>
  183. </MultiTrigger>
  184. <Trigger Property="IsEnabled" Value="False">
  185. <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  186. </Trigger>
  187. </ControlTemplate.Triggers>
  188. </ControlTemplate>
  189. </Setter.Value>
  190. </Setter>
  191. <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListBoxItem_PreviewMouseLeftButtonDown"/>
  192. </Style>
  193. </ListBox.ItemContainerStyle>
  194. </ListBox>
  195. </Grid>
  196. </TabItem>
  197. <TabItem x:Name="TabDydamic"
  198. Header="Dynamic"
  199. FontFamily="Segoe UI" Foreground="#FF666666"
  200. HorizontalContentAlignment="Center"
  201. FontSize="12"
  202. >
  203. <ListBox Tag="Dynamic" DataContext="{Binding}" ItemsSource="{Binding DynamicStampList}" Loaded="DydamicListBox_Loaded" SelectionMode="Single" Height="auto" VerticalAlignment="Top" BorderThickness="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" >
  204. <ListBox.ItemTemplate>
  205. <DataTemplate >
  206. <Grid>
  207. <Image Source="{Binding ImageSource}" Stretch="Uniform" Height="48"/>
  208. </Grid>
  209. </DataTemplate>
  210. </ListBox.ItemTemplate>
  211. <ListBox.ItemContainerStyle>
  212. <Style TargetType="ListBoxItem">
  213. <Setter Property="Height" Value="65"/>
  214. <Setter Property="Padding" Value="8"/>
  215. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  216. <Setter Property="Template">
  217. <Setter.Value>
  218. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  219. <Border x:Name="Bd" CornerRadius="8" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
  220. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  221. </Border>
  222. <ControlTemplate.Triggers>
  223. <MultiTrigger>
  224. <MultiTrigger.Conditions>
  225. <Condition Property="IsMouseOver" Value="True"/>
  226. </MultiTrigger.Conditions>
  227. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  228. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  229. </MultiTrigger>
  230. <MultiTrigger>
  231. <MultiTrigger.Conditions>
  232. <Condition Property="Selector.IsSelectionActive" Value="False"/>
  233. <Condition Property="IsSelected" Value="True"/>
  234. </MultiTrigger.Conditions>
  235. <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}"/>
  236. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Border}"/>
  237. </MultiTrigger>
  238. <MultiTrigger>
  239. <MultiTrigger.Conditions>
  240. <Condition Property="Selector.IsSelectionActive" Value="True"/>
  241. <Condition Property="IsSelected" Value="True"/>
  242. </MultiTrigger.Conditions>
  243. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.sel.bg.lv3}"/>
  244. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.sel.border.lv3}"/>
  245. </MultiTrigger>
  246. <Trigger Property="IsEnabled" Value="False">
  247. <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  248. </Trigger>
  249. </ControlTemplate.Triggers>
  250. </ControlTemplate>
  251. </Setter.Value>
  252. </Setter>
  253. <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListBoxItem_PreviewMouseLeftButtonDown"/>
  254. </Style>
  255. </ListBox.ItemContainerStyle>
  256. </ListBox>
  257. </TabItem>
  258. <TabItem x:Name="TabCustom"
  259. Header="Custom"
  260. FontFamily="Segoe UI" Foreground="#FF666666"
  261. FontSize="12"
  262. HorizontalContentAlignment="Center"
  263. >
  264. <Grid>
  265. <StackPanel VerticalAlignment="Center" x:Name="NoStampStackPanel" Visibility="{Binding CustomStampList.Count, Converter={StaticResource ListCountToVisible}}">
  266. <Image Source="pack://application:,,,/PDF Office;component/Resources/PropertyPanel/nostamp.png" />
  267. <TextBlock Text="No custom stamp created" FontSize="14" FontFamily="Segoe UI" Height="22" HorizontalAlignment="Center"/>
  268. <TextBlock Width="168" FontSize="12" FontFamily="Segoe UI" TextWrapping="Wrap" Foreground="#94989C" HorizontalAlignment="Center">
  269. <Run Text="Click the" />
  270. <Run Text="Add button" FontWeight="Bold"/>
  271. <Run Text="in the upper right corner to create a new stamp." />
  272. </TextBlock>
  273. </StackPanel>
  274. <ListBox Name="CusListbox" Margin="0 0 0 56" Visibility="{Binding ElementName=NoStampStackPanel,Path=Visibility,Converter={StaticResource UnVisivleConvert}}"
  275. VerticalAlignment="Top"
  276. Height="auto"
  277. BorderThickness="0"
  278. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  279. ItemsSource="{Binding CustomStampList}"
  280. SelectedIndex="{Binding CusListboxIndex,Mode=TwoWay}"
  281. >
  282. <ListBox.ItemTemplate>
  283. <HierarchicalDataTemplate DataType="{x:Type model:Stamp}" >
  284. <Grid>
  285. <Grid.ContextMenu>
  286. <ContextMenu>
  287. <MenuItem x:Name="Delete" Header="删除图章" Click="Delete_Click"/>
  288. <MenuItem x:Name="DeleteAll" Header="删除全部图章" Click="DeleteAll_Click"/>
  289. <MenuItem Header="导出图章">
  290. <MenuItem x:Name="SavePNG" Header="PNG" Tag="PNG" Click="Save_Click"/>
  291. <MenuItem x:Name="SavePDF" Header="PDF" Tag="PDF" Click="Save_Click"/>
  292. </MenuItem>
  293. <MenuItem Header="编辑文字图章" Click="Editor_Click" Visibility="Collapsed"/>
  294. </ContextMenu>
  295. </Grid.ContextMenu>
  296. <StackPanel Orientation="Horizontal">
  297. <Image Source="{Binding SourcePath}"/>
  298. <Button HorizontalAlignment="Right" VerticalAlignment="Top" x:Name="DeleteIcon" Width="20" Height="20" Click="Delete_Click" Visibility="Hidden"/>
  299. </StackPanel>
  300. </Grid>
  301. <HierarchicalDataTemplate.Triggers>
  302. <Trigger Property="IsMouseOver" Value="True">
  303. <Setter TargetName="DeleteIcon" Property="Visibility" Value="Visible" />
  304. </Trigger>
  305. </HierarchicalDataTemplate.Triggers>
  306. </HierarchicalDataTemplate>
  307. </ListBox.ItemTemplate>
  308. <ListBox.ItemContainerStyle>
  309. <Style TargetType="ListBoxItem">
  310. <Setter Property="Height" Value="65"/>
  311. <Setter Property="Padding" Value="8"/>
  312. <Setter Property="Template">
  313. <Setter.Value>
  314. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  315. <Border x:Name="Bd" CornerRadius="8" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
  316. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  317. </Border>
  318. <ControlTemplate.Triggers>
  319. <MultiTrigger>
  320. <MultiTrigger.Conditions>
  321. <Condition Property="IsMouseOver" Value="True"/>
  322. </MultiTrigger.Conditions>
  323. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  324. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.hov.bg}"/>
  325. </MultiTrigger>
  326. <MultiTrigger>
  327. <MultiTrigger.Conditions>
  328. <Condition Property="Selector.IsSelectionActive" Value="False"/>
  329. <Condition Property="IsSelected" Value="True"/>
  330. </MultiTrigger.Conditions>
  331. <Setter Property="Background" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Background}"/>
  332. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource Item.SelectedInactive.Border}"/>
  333. </MultiTrigger>
  334. <MultiTrigger>
  335. <MultiTrigger.Conditions>
  336. <Condition Property="Selector.IsSelectionActive" Value="True"/>
  337. <Condition Property="IsSelected" Value="True"/>
  338. </MultiTrigger.Conditions>
  339. <Setter Property="Background" TargetName="Bd" Value="{StaticResource color.item-state.sel.bg.lv3}"/>
  340. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource color.item-state.sel.border.lv3}"/>
  341. </MultiTrigger>
  342. <Trigger Property="IsEnabled" Value="False">
  343. <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  344. </Trigger>
  345. </ControlTemplate.Triggers>
  346. </ControlTemplate>
  347. </Setter.Value>
  348. </Setter>
  349. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  350. <EventSetter Event="PreviewMouseLeftButtonDown" Handler="ListBoxItem_PreviewMouseLeftButtonDown"/>
  351. </Style>
  352. </ListBox.ItemContainerStyle>
  353. </ListBox>
  354. </Grid>
  355. </TabItem>
  356. </TabControl>-->
  357. </Grid>
  358. </UserControl>