RightCardControl.xaml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <UserControl x:Class="GeekDesk.Control.UserControls.PannelCard.RightCardControl"
  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:temp="clr-namespace:GeekDesk.ViewModel.Temp"
  7. xmlns:hc="https://handyorg.github.io/handycontrol"
  8. xmlns:cvt="clr-namespace:GeekDesk.Converts"
  9. xmlns:cst="clr-namespace:GeekDesk.Constant"
  10. xmlns:DraggAnimatedPanel="clr-namespace:DraggAnimatedPanel"
  11. xmlns:xf="clr-namespace:XamlFlair;assembly=XamlFlair.WPF"
  12. xmlns:ot="clr-namespace:GeekDesk.Control.Other"
  13. xmlns:viewmodel="clr-namespace:GeekDesk.ViewModel" d:DataContext="{d:DesignInstance Type=viewmodel:AppData}"
  14. mc:Ignorable="d"
  15. d:DesignHeight="450" d:DesignWidth="800"
  16. >
  17. <UserControl.Resources>
  18. <!--右侧栏样式动画-->
  19. <!--<Style x:Key="PanelStyle" TargetType="hc:SimpleStackPanel">
  20. <Style.Triggers>
  21. <Trigger Property="IsMouseOver" Value="true">
  22. <Setter Property="Cursor" Value="Hand"/>
  23. </Trigger>
  24. </Style.Triggers>
  25. </Style>-->
  26. <Style x:Key="ImageStyle" TargetType="Image">
  27. <Setter Property="Width" Value="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImageWidth, Mode=OneWay}"/>
  28. <Setter Property="Height" Value="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImageHeight, Mode=OneWay}"/>
  29. <Setter Property="Source" Value="{Binding BitmapImage}"/>
  30. </Style>
  31. <Style x:Key="ImageStyleNoWrite" TargetType="Image">
  32. <Setter Property="Width" Value="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImageWidth, Mode=OneWay}"/>
  33. <Setter Property="Height" Value="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImageHeight, Mode=OneWay}"/>
  34. <Setter Property="Source" Value="{Binding BitmapImage_NoWrite}"/>
  35. </Style>
  36. <Style x:Key="MyListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
  37. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  38. <Setter Property="Template">
  39. <Setter.Value>
  40. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  41. <Border>
  42. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  43. </Border>
  44. </ControlTemplate>
  45. </Setter.Value>
  46. </Setter>
  47. </Style>
  48. <Style x:Key="SearchListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
  49. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  50. <Setter Property="VerticalAlignment" Value="Center"/>
  51. <Setter Property="Template">
  52. <Setter.Value>
  53. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  54. <Border>
  55. <Border.Style>
  56. <Style TargetType="Border">
  57. <Setter Property="VerticalAlignment" Value="Center"/>
  58. </Style>
  59. </Border.Style>
  60. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  61. </Border>
  62. </ControlTemplate>
  63. </Setter.Value>
  64. </Setter>
  65. </Style>
  66. <Style x:Key="MyPoptipStyle" TargetType="Border">
  67. <Setter Property="HorizontalAlignment" Value="Center"/>
  68. <Setter Property="VerticalAlignment" Value="Center"/>
  69. <Setter Property="BorderThickness" Value="1"/>
  70. <Setter Property="Background" Value="White"/>
  71. <Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
  72. <Setter Property="CornerRadius" Value="{StaticResource DefaultCornerRadius}"/>
  73. <Setter Property="Padding" Value="{StaticResource DefaultControlPadding}"/>
  74. <!--<Setter Property="Template">
  75. <Setter.Value>
  76. <ControlTemplate TargetType="hc:Poptip">
  77. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="{Binding Path=(hc:BorderElement.CornerRadius),RelativeSource={RelativeSource TemplatedParent}}">
  78. <ContentPresenter Margin="{TemplateBinding Padding}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
  79. </Border>
  80. </ControlTemplate>
  81. </Setter.Value>
  82. </Setter>-->
  83. </Style>
  84. <Storyboard x:Key="Custom1Transition1" x:Shared="False">
  85. <DoubleAnimation From="50" To="0" Duration="0:0:0.4" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
  86. <DoubleAnimation.EasingFunction>
  87. <ElasticEase Oscillations="1"/>
  88. </DoubleAnimation.EasingFunction>
  89. </DoubleAnimation>
  90. </Storyboard>
  91. <Storyboard x:Key="Custom2Transition2" x:Shared="False">
  92. <DoubleAnimation From="10" To="0" Duration="0:0:0.4" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
  93. <DoubleAnimation.EasingFunction>
  94. <ElasticEase Oscillations="1"/>
  95. </DoubleAnimation.EasingFunction>
  96. </DoubleAnimation>
  97. </Storyboard>
  98. <Storyboard x:Key="Custom3Transition3" x:Shared="False">
  99. <DoubleAnimation From=".8" To="1" Duration="0:0:0.4">
  100. <DoubleAnimation.EasingFunction>
  101. <ElasticEase Oscillations="1"/>
  102. </DoubleAnimation.EasingFunction>
  103. </DoubleAnimation>
  104. </Storyboard>
  105. <cvt:OpcityConvert x:Key="OpcityConvert"/>
  106. <cvt:GetWidthByWWConvert x:Key="GetWidthByWWConvert"/>
  107. <temp:SearchIconList x:Key="SearchIconList"/>
  108. </UserControl.Resources>
  109. <!--右侧栏-->
  110. <Grid>
  111. <Popup Name="MyPoptip" FlowDirection="LeftToRight"
  112. PopupAnimation="None" Placement="Mouse"
  113. IsOpen="False"
  114. AllowsTransparency="True"
  115. >
  116. <Grid Background="Transparent">
  117. <Border Style="{StaticResource MyPoptipStyle}">
  118. <TextBlock Name="MyPoptipContent" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Left" Text="Test" FontSize="13"/>
  119. </Border>
  120. </Grid>
  121. </Popup>
  122. <hc:Card AllowDrop="True"
  123. x:Name="WrapCard"
  124. Visibility="Visible"
  125. Drop="Wrap_Drop"
  126. BorderThickness="1"
  127. Effect="{DynamicResource EffectShadow2}"
  128. Margin="5,0,5,5" Grid.ColumnSpan="2"
  129. PreviewMouseRightButtonDown="WrapCard_PreviewMouseRightButtonDown"
  130. hc:Dialog.Token="RightWrapCardDialog"
  131. MouseWheel="IconListBox_MouseWheel"
  132. >
  133. <hc:Card.Background>
  134. <SolidColorBrush Color="AliceBlue" hc:GeometryEffect.GeometryEffect="20" Opacity="{Binding AppConfig.CardOpacity, Mode=TwoWay, Converter={StaticResource OpcityConvert}}"/>
  135. </hc:Card.Background>
  136. <hc:Card.BorderBrush>
  137. <SolidColorBrush Color="#FFFFFFFF" Opacity="0"/>
  138. </hc:Card.BorderBrush>
  139. <hc:Card.ContextMenu>
  140. <ContextMenu Width="200">
  141. <MenuItem Header="添加URL项目" Click="AddUrlIcon"/>
  142. <MenuItem Header="添加系统项目" Click="AddSystemIcon"/>
  143. <MenuItem x:Name="CardLockCM" Header="锁定主面板" Click="LockAppPanel"/>
  144. </ContextMenu>
  145. </hc:Card.ContextMenu>
  146. <hc:DialogContainer>
  147. <Grid>
  148. <ot:PasswordDialog xf:Animations.Primary="{xf:Animate BasedOn={StaticResource FadeInAndGrowHorizontally}, Event=Visibility, Duration=50, Delay=0}"
  149. x:Name="PDDialog"
  150. Visibility="Collapsed"
  151. Panel.ZIndex="99"
  152. IsVisibleChanged="PDDialog_IsVisibleChanged"
  153. Margin="0,-100,0,0"/>
  154. <StackPanel Panel.ZIndex="1" Margin="0,-10,-0,0"/>
  155. <WrapPanel Orientation="Horizontal"
  156. Margin="10"
  157. VirtualizingPanel.VirtualizationMode="Recycling"
  158. VirtualizingPanel.IsVirtualizing="True"
  159. VirtualizingPanel.IsContainerVirtualizable="True"
  160. >
  161. <UniformGrid x:Name="WrapUFG" xf:Animations.Primary="{xf:Animate BasedOn={StaticResource FadeInAndGrowHorizontally}, Event=Visibility}">
  162. <!--<hc:TransitioningContentControl TransitionStoryboard="{StaticResource Custom3Transition3}">-->
  163. <ListBox x:Name="IconListBox"
  164. ItemsSource="{Binding AppConfig.SelectedMenuIcons, Mode=OneWay}"
  165. BorderThickness="0"
  166. Padding="0,10,0,0"
  167. ScrollViewer.CanContentScroll ="False"
  168. >
  169. <ListBox.Template>
  170. <ControlTemplate TargetType="ListBox">
  171. <hc:ScrollViewer x:Name="WrapScroll"
  172. HorizontalScrollBarVisibility="Hidden"
  173. VerticalScrollBarVisibility="Auto"
  174. IsInertiaEnabled="True"
  175. CanContentScroll="True"
  176. PreviewMouseWheel="IconListBox_MouseWheel"
  177. >
  178. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderBrush}">
  179. <ItemsPresenter/>
  180. </Border>
  181. </hc:ScrollViewer>
  182. </ControlTemplate>
  183. </ListBox.Template>
  184. <ListBox.Background>
  185. <SolidColorBrush Color="#00FFFFFF" />
  186. </ListBox.Background>
  187. <ListBox.ItemsPanel>
  188. <ItemsPanelTemplate>
  189. <!--<DraggAnimatedPanel:DraggAnimatedPanel Background="#00FFFFFF"
  190. ItemsWidth="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImgPanelWidth, Mode=OneWay}"
  191. ItemsHeight="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImgPanelHeight, Mode=OneWay}"
  192. HorizontalAlignment="Center"
  193. SwapCommand="{Binding SwapCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"/>-->
  194. <WrapPanel Background="#00FFFFFF"
  195. Width="{Binding AppConfig.WindowWidth, Mode=OneWay,
  196. Converter={StaticResource GetWidthByWWConvert},
  197. ConverterParameter={x:Static cst:WidthTypeEnum.RIGHT_CARD}}"
  198. />
  199. </ItemsPanelTemplate>
  200. </ListBox.ItemsPanel>
  201. <ListBox.Resources>
  202. <ContextMenu x:Key="IconDialog" Width="200">
  203. <MenuItem Header="管理员方式运行" Click="IconAdminStart" Tag="{Binding}"/>
  204. <MenuItem Header="打开文件所在位置" Click="ShowInExplore" Tag="{Binding}"/>
  205. <MenuItem Header="添加URL项目" Click="AddUrlIcon"/>
  206. <MenuItem Header="添加系统项目" Click="AddSystemIcon"/>
  207. <MenuItem Header="资源管理器菜单" Click="SystemContextMenu" Tag="{Binding}"/>
  208. <MenuItem Header="属性" Click="PropertyConfig" Tag="{Binding}"/>
  209. <MenuItem Header="从列表移除" Click="RemoveIcon" Tag="{Binding}"/>
  210. </ContextMenu>
  211. </ListBox.Resources>
  212. <ListBox.ItemContainerStyle>
  213. <Style TargetType="ListBoxItem" BasedOn="{StaticResource MyListBoxItemStyle}">
  214. <Setter Property="ContextMenu" Value="{StaticResource IconDialog}"/>
  215. </Style>
  216. </ListBox.ItemContainerStyle>
  217. <ListBox.ItemTemplate>
  218. <DataTemplate>
  219. <hc:SimpleStackPanel Tag="{Binding}"
  220. Height="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImgPanelHeight, Mode=OneWay}"
  221. Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImgPanelWidth, Mode=OneWay}"
  222. HorizontalAlignment="Center"
  223. Background="#00FFFFFF"
  224. MouseEnter="MenuIcon_MouseEnter"
  225. MouseLeave="MenuIcon_MouseLeave"
  226. MouseMove="MenuIcon_MouseMove"
  227. MouseLeftButtonDown="Icon_MouseLeftButtonDown"
  228. MouseLeftButtonUp="Icon_MouseLeftButtonUp"
  229. >
  230. <!--<StackPanel Background="#00FFFFFF"
  231. MouseEnter="CursorPanel_MouseEnter"
  232. MouseLeave="CursorPanel_MouseLeave"
  233. Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.ImageWidth, Mode=OneWay}">-->
  234. <Image Style="{StaticResource ImageStyle}"
  235. RenderOptions.BitmapScalingMode="HighQuality"/>
  236. <TextBlock MaxWidth="80"
  237. Margin="0,5,0,0"
  238. MaxHeight="40"
  239. FontSize="13"
  240. TextWrapping="Wrap"
  241. TextTrimming="WordEllipsis"
  242. TextAlignment="Center"
  243. VerticalAlignment="Center"
  244. Foreground="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.TextColor}"
  245. Text="{Binding Name}"/>
  246. <!--</StackPanel>-->
  247. </hc:SimpleStackPanel>
  248. </DataTemplate>
  249. </ListBox.ItemTemplate>
  250. </ListBox>
  251. <!--</hc:TransitioningContentControl>-->
  252. </UniformGrid>
  253. </WrapPanel>
  254. </Grid>
  255. </hc:DialogContainer>
  256. </hc:Card>
  257. <hc:Card x:Name="VerticalCard"
  258. Visibility="Hidden"
  259. BorderThickness="1"
  260. Effect="{DynamicResource EffectShadow2}"
  261. Margin="5,0,5,5" Grid.ColumnSpan="2"
  262. MouseLeftButtonDown="VerticalCard_MouseLeftButtonDown"
  263. >
  264. <hc:Card.Background>
  265. <SolidColorBrush Color="AliceBlue"
  266. hc:GeometryEffect.GeometryEffect="20"
  267. Opacity="{Binding AppConfig.CardOpacity, Mode=TwoWay, Converter={StaticResource OpcityConvert}}"/>
  268. </hc:Card.Background>
  269. <hc:Card.BorderBrush>
  270. <SolidColorBrush Color="#FFFFFFFF" Opacity="0"/>
  271. </hc:Card.BorderBrush>
  272. <Grid>
  273. <WrapPanel Orientation="Horizontal"
  274. Margin="10"
  275. >
  276. <UniformGrid x:Name="VerticalUFG"
  277. xf:Animations.Primary="{xf:Animate BasedOn={StaticResource FadeIn}, OffsetY= -10, Event=Visibility}"
  278. >
  279. <!--<hc:TransitioningContentControl TransitionMode="Left2RightWithFade">-->
  280. <ListBox ItemsSource="{Binding Source={StaticResource SearchIconList},Path=IconList, Mode=OneWay}"
  281. VirtualizingStackPanel.VirtualizationMode="Recycling" VirtualizingStackPanel.IsVirtualizing="True"
  282. BorderThickness="0"
  283. Padding="0,10,0,0"
  284. x:Name="SearchListBox"
  285. SelectionChanged="SearchListBox_SelectionChanged"
  286. >
  287. <ListBox.Template>
  288. <ControlTemplate TargetType="ListBox">
  289. <hc:ScrollViewer
  290. HorizontalScrollBarVisibility="Hidden"
  291. VerticalScrollBarVisibility="Auto"
  292. IsInertiaEnabled="True"
  293. CanContentScroll="True"
  294. PreviewMouseWheel="VerticalIconList_PreviewMouseWheel"
  295. ScrollChanged="VerticalCard_ScrollChanged"
  296. >
  297. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderBrush}">
  298. <ItemsPresenter/>
  299. </Border>
  300. </hc:ScrollViewer>
  301. </ControlTemplate>
  302. </ListBox.Template>
  303. <ListBox.Background>
  304. <SolidColorBrush Opacity="0"/>
  305. </ListBox.Background>
  306. <ListBox.Resources>
  307. <ContextMenu x:Key="IconDialog" Width="200">
  308. <MenuItem Header="管理员方式运行" Click="IconAdminStart" Tag="{Binding}"/>
  309. <MenuItem Header="打开文件所在位置" Click="ShowInExplore" Tag="{Binding}"/>
  310. <MenuItem Header="添加URL项目" Click="AddUrlIcon"/>
  311. <MenuItem Header="添加系统项目" Click="AddSystemIcon"/>
  312. <MenuItem Header="资源管理器菜单" Click="SystemContextMenu" Tag="{Binding}"/>
  313. <MenuItem Header="属性" Click="PropertyConfig" Tag="{Binding}"/>
  314. </ContextMenu>
  315. </ListBox.Resources>
  316. <ListBox.ItemContainerStyle>
  317. <Style TargetType="ListBoxItem" BasedOn="{StaticResource SearchListBoxItemStyle}">
  318. <Setter Property="ContextMenu" Value="{StaticResource IconDialog}"/>
  319. </Style>
  320. </ListBox.ItemContainerStyle>
  321. <ListBox.ItemsPanel>
  322. <ItemsPanelTemplate>
  323. <VirtualizingStackPanel Orientation="Vertical" Background="#00FFFFFF"
  324. Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.WindowWidth, Mode=OneWay,
  325. Converter={StaticResource GetWidthByWWConvert},
  326. ConverterParameter={x:Static cst:WidthTypeEnum.RIGHT_CARD}}"
  327. />
  328. </ItemsPanelTemplate>
  329. </ListBox.ItemsPanel>
  330. <ListBox.ItemTemplate>
  331. <DataTemplate>
  332. <Border CornerRadius="8">
  333. <Border.Style>
  334. <Style TargetType="Border">
  335. <Setter Property="VerticalAlignment" Value="Center"/>
  336. <Style.Triggers>
  337. <DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListBoxItem }}}"
  338. Value="True">
  339. <Setter Property="Background">
  340. <Setter.Value>
  341. <SolidColorBrush Color="White" Opacity="0.68"/>
  342. </Setter.Value>
  343. </Setter>
  344. </DataTrigger>
  345. </Style.Triggers>
  346. </Style>
  347. </Border.Style>
  348. <WrapPanel Tag="{Binding}"
  349. Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.WindowWidth, Mode=OneWay,
  350. Converter={StaticResource GetWidthByWWConvert},
  351. ConverterParameter={x:Static cst:WidthTypeEnum.RIGHT_CARD_HALF}}"
  352. HorizontalAlignment="Left"
  353. VerticalAlignment="Center"
  354. hc:Poptip.HitMode="None"
  355. hc:Poptip.Placement="BottomLeft"
  356. Background="#00FFFFFF"
  357. MouseEnter="SearchIcon_MouseEnter"
  358. MouseLeave="SearchIcon_MouseLeave"
  359. MouseLeftButtonDown="Icon_MouseLeftButtonDown"
  360. MouseLeftButtonUp="Icon_MouseLeftButtonUp"
  361. MouseMove="SearchIcon_MouseMove"
  362. Margin="25,10,0,10"
  363. >
  364. <Image Style="{StaticResource ImageStyleNoWrite}" RenderOptions.BitmapScalingMode="HighQuality"/>
  365. <StackPanel Width="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.WindowWidth, Mode=OneWay,
  366. Converter={StaticResource GetWidthByWWConvert},
  367. ConverterParameter={x:Static cst:WidthTypeEnum.RIGHT_CARD_HALF_TEXT}}" >
  368. <TextBlock
  369. Margin="10,5,0,0"
  370. MaxHeight="40"
  371. FontSize="13"
  372. TextTrimming="CharacterEllipsis"
  373. TextAlignment="Left"
  374. VerticalAlignment="Center"
  375. Foreground="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.TextColor}"
  376. Text="{Binding Name}"/>
  377. <TextBlock
  378. Margin="10,10,0,0"
  379. MaxHeight="40"
  380. FontSize="11"
  381. TextTrimming="CharacterEllipsis"
  382. TextAlignment="Left"
  383. VerticalAlignment="Center"
  384. Foreground="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Window}},Path=DataContext.AppConfig.TextColor}"
  385. Text="{Binding Path}"/>
  386. </StackPanel>
  387. </WrapPanel>
  388. </Border>
  389. </DataTemplate>
  390. </ListBox.ItemTemplate>
  391. </ListBox>
  392. <!--</hc:TransitioningContentControl>-->
  393. </UniformGrid>
  394. </WrapPanel>
  395. </Grid>
  396. </hc:Card>
  397. </Grid>
  398. </UserControl>