更多资源:http://denghejun.github.io

    <Style x:Key="SearchTextBoxStyle" BasedOn="{x:Null}" TargetType="{x:Type TextBox}">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
<Setter Property="BorderBrush" Value="{StaticResource TextBoxBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="AllowDrop" Value="true"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Grid>
<Rectangle x:Name="Bd" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Fill="{TemplateBinding Background}" SnapsToDevicePixels="true" RadiusX="5" RadiusY="5">
</Rectangle>
<ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Template="{DynamicResource ScrollViewerControlTemplate1}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Fill" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

最新文章

  1. Bootstrap-datetimepicker年月日
  2. websocket实例(显示文件导入处理进度)
  3. ssh远程连接ubuntu
  4. openfalcon客户端自定义push 传输到transfer
  5. Repeated DNA Sequences
  6. VMware Workstation 10.0.0.1295980 CN
  7. Ruby Class
  8. centos nginx环境下删除CI框架Index.php入口遇到404问题
  9. RDD缓存策略
  10. Win7下的本地网站发布
  11. 虚拟机备份转移后,网络启动异常,提示“SIOCSIFADDR: No such device”的解决方案
  12. SQL rank() 用法
  13. 【转】网络视频监控P2P解决方案
  14. 使用xtrabakcup 备份inodb数据库
  15. T - stl 的mapⅡ
  16. SERVERCONFIG
  17. python只re模块
  18. Extensions in UWP Community Toolkit - WebViewExtensions
  19. HashMap 你真的了解吗?
  20. ThinkPHP5 添加多个文字水印及疑难解答

热门文章

  1. C#操作XML之读取数据
  2. javascript 核心语言笔记 6 - 对象
  3. 数据结构与算法之链表-javascript实现
  4. 四、线程同步之Lock和Condition
  5. Redsi和Memcached区别总结
  6. Datazen笔记索引
  7. docker 1.8+之后ubuntu安装指定版本docker-engine
  8. [转] 前后端分离开发模式的 mock 平台预研
  9. linux shell basic command
  10. linux菜鸟日记(3)