<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Shared.xaml" />
</ResourceDictionary.MergedDictionaries> <!--<SnippetListBox>-->
<Style x:Key="{x:Type ListBox}"
TargetType="ListBox">
<Setter Property="SnapsToDevicePixels"
Value="true" />
<Setter Property="OverridesDefaultStyle"
Value="true" />
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
Value="Auto" />
<Setter Property="ScrollViewer.VerticalScrollBarVisibility"
Value="Auto" />
<Setter Property="ScrollViewer.CanContentScroll"
Value="true" />
<Setter Property="MinWidth"
Value="" />
<Setter Property="MinHeight"
Value="" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBox">
<Border Name="Border"
BorderThickness=""
CornerRadius="">
<Border.Background>
<SolidColorBrush Color="{StaticResource ControlLightColor}" />
</Border.Background>
<Border.BorderBrush>
<SolidColorBrush Color="{StaticResource BorderMediumColor}" />
</Border.BorderBrush>
<ScrollViewer Margin=""
Focusable="false">
<StackPanel Margin=""
IsItemsHost="True" />
</ScrollViewer>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled"
Value="false">
<Setter TargetName="Border"
Property="Background">
<Setter.Value>
<SolidColorBrush Color="{StaticResource DisabledControlLightColor}" />
</Setter.Value>
</Setter>
<Setter TargetName="Border"
Property="BorderBrush">
<Setter.Value>
<SolidColorBrush Color="{DynamicResource DisabledBorderLightColor}" />
</Setter.Value> </Setter>
</Trigger>
<Trigger Property="IsGrouping"
Value="true">
<Setter Property="ScrollViewer.CanContentScroll"
Value="false" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style> <Style x:Key="{x:Type ListBoxItem}"
TargetType="ListBoxItem">
<Setter Property="SnapsToDevicePixels"
Value="true" />
<Setter Property="OverridesDefaultStyle"
Value="true" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<Border x:Name="Border"
Padding=""
SnapsToDevicePixels="true">
<Border.Background>
<SolidColorBrush Color="Transparent" />
</Border.Background>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="SelectionStates">
<VisualState x:Name="Unselected" />
<VisualState x:Name="Selected">
<Storyboard>
<ColorAnimationUsingKeyFrames Storyboard.TargetName="Border"
Storyboard.TargetProperty="(Panel.Background).
(SolidColorBrush.Color)">
<EasingColorKeyFrame KeyTime=""
Value="{StaticResource SelectedBackgroundColor}" />
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="SelectedUnfocused">
<Storyboard>
<ColorAnimationUsingKeyFrames Storyboard.TargetName="Border"
Storyboard.TargetProperty="(Panel.Background).
(SolidColorBrush.Color)">
<EasingColorKeyFrame KeyTime=""
Value="{StaticResource SelectedUnfocusedColor}" />
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<ContentPresenter />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--</SnippetListBox>-->
</ResourceDictionary>

最新文章

  1. UI控件封装一般步骤
  2. Java语言的安全性的体现
  3. Microsoft Win32 to Microsoft .NET Framework API Map
  4. 知方可补不足~UPDLOCK更新锁的使用
  5. js实现移动端手指左右上下滑动翻页效果
  6. 【AngularJS】—— 8 自定义指令
  7. Python学习笔记06
  8. C语言+SDL2 图形化编程
  9. 关于C++函数思考1(缺省的六大函数)
  10. xlrd的使用详细介绍以及基于Excel数据参数化实例详解
  11. php中的XML转数组
  12. javascript 常用方法 解析URL,补充前导字符
  13. $Django 图片验证刷新 上传头像
  14. Python全栈之路----常用模块学习----模块的种类和导入方法
  15. mybatis 思考
  16. &lt;&lt;浪潮之巅&gt;&gt;阅读笔记三
  17. 【2017-03-13】Tsql 表连接
  18. JAVA基础知识总结:二十二
  19. jsonp封装成promise
  20. 虹软人脸识别iOS SDK2.0

热门文章

  1. 自定义Java Validator
  2. 三,k8s集群的应用入门
  3. java8学习之内部迭代与外部迭代本质剖析及流本源分析
  4. 页面内置函数${fn:}
  5. zabbix的简单操作(proxy代理分布式监控)
  6. solaris启动脚本S33installramdisk
  7. OSM全球地图MBTiles,非postgresql方式。
  8. TCP下的套接字服务端实现并发 作业题
  9. css,scss解决样式:表格的重叠边框
  10. 手写一个类加载器demo