随笔分类 -  WPF 默认样式存档

摘要:1 <Style TargetType="{x:Type Thumb}"> 2 <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/> 3 <Setter Property="Background" Value="{Dynami 阅读全文
posted @ 2023-08-16 15:05 xiejiang 阅读(73) 评论(0) 推荐(0) 编辑
摘要:1 <SolidColorBrush 2 x:Key="{x:Static DataGrid.FocusBorderBrushKey}" 3 Color="#FF000000" /> 4 5 <Style 6 x:Key="DataGridCellStyle1" 7 TargetType="{x:T 阅读全文
posted @ 2022-06-07 22:09 xiejiang 阅读(97) 评论(0) 推荐(0) 编辑
摘要:1 <Style 2 x:Key="DataGridRowStyle1" 3 TargetType="{x:Type DataGridRow}"> 4 <Setter Property="Background" Value="{DynamicResource {x:Static SystemColo 阅读全文
posted @ 2022-06-07 22:02 xiejiang 阅读(910) 评论(0) 推荐(0) 编辑
摘要:需要引入命名空间 1 xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2" 1 <!-- 宽度调节柄样式 --> 2 <Style 3 x:Key="ColumnHeader 阅读全文
posted @ 2022-06-07 21:54 xiejiang 阅读(495) 评论(0) 推荐(0) 编辑
摘要:1 <!-- 全选按钮样式 --> 2 <Style 3 x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, 4 TypeInTargetAssembly={x:Type DataGrid}}" 5 Target 阅读全文
posted @ 2022-06-07 21:47 xiejiang 阅读(83) 评论(0) 推荐(0) 编辑
摘要:1 <SolidColorBrush 2 x:Key="ListBox.Static.Background" 3 Color="#FFFFFFFF" /> 4 <SolidColorBrush 5 x:Key="ListBox.Static.Border" 6 Color="#FFABADB3" / 阅读全文
posted @ 2022-05-15 22:09 xiejiang 阅读(85) 评论(0) 推荐(0) 编辑
摘要:1 <!-- ItemsControl 的样式 --> 2 <Style x:Key = "ItemsControlStyle1" 3 TargetType = "{x:Type ItemsControl}" > 4 <Setter Property = "Template" > 5 <Setter 阅读全文
posted @ 2022-05-15 22:02 xiejiang 阅读(145) 评论(0) 推荐(0) 编辑
摘要:1 <Style x:Key="FocusVisual"> 2 <Setter Property="Control.Template"> 3 <Setter.Value> 4 <ControlTemplate> 5 <Rectangle Margin="2" StrokeDashArray="1 2 阅读全文
posted @ 2022-05-15 21:56 xiejiang 阅读(112) 评论(0) 推荐(0) 编辑
摘要:1 <Style x:Key="FocusVisual"> 2 <Setter Property="Control.Template"> 3 <Setter.Value> 4 <ControlTemplate> 5 <Rectangle 6 Margin="2" 7 SnapsToDevicePix 阅读全文
posted @ 2022-05-06 21:43 xiejiang 阅读(243) 评论(0) 推荐(0) 编辑
摘要:1 <SolidColorBrush 2 x:Key="TextBox.Static.Border" 3 Color="#FFABAdB3" /> 4 <SolidColorBrush 5 x:Key="TextBox.MouseOver.Border" 6 Color="#FF7EB4EA" /> 阅读全文
posted @ 2022-05-06 21:38 xiejiang 阅读(101) 评论(0) 推荐(0) 编辑
摘要:1 <SolidColorBrush 2 x:Key="Menu.Static.Background" 3 Color="#FFF0F0F0" /> 4 <SolidColorBrush 5 x:Key="Menu.Static.Border" 6 Color="#FF999999" /> 7 <S 阅读全文
posted @ 2022-04-20 17:14 xiejiang 阅读(376) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示