随笔分类 - WPF 默认样式存档
摘要:1 <Style TargetType="{x:Type Thumb}"> 2 <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/> 3 <Setter Property="Background" Value="{Dynami
阅读全文
摘要:1 <SolidColorBrush 2 x:Key="{x:Static DataGrid.FocusBorderBrushKey}" 3 Color="#FF000000" /> 4 5 <Style 6 x:Key="DataGridCellStyle1" 7 TargetType="{x:T
阅读全文
摘要:1 <Style 2 x:Key="DataGridRowStyle1" 3 TargetType="{x:Type DataGridRow}"> 4 <Setter Property="Background" Value="{DynamicResource {x:Static SystemColo
阅读全文
摘要:需要引入命名空间 1 xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2" 1 <!-- 宽度调节柄样式 --> 2 <Style 3 x:Key="ColumnHeader
阅读全文
摘要:1 <!-- 全选按钮样式 --> 2 <Style 3 x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, 4 TypeInTargetAssembly={x:Type DataGrid}}" 5 Target
阅读全文
摘要:1 <SolidColorBrush 2 x:Key="ListBox.Static.Background" 3 Color="#FFFFFFFF" /> 4 <SolidColorBrush 5 x:Key="ListBox.Static.Border" 6 Color="#FFABADB3" /
阅读全文
摘要:1 <!-- ItemsControl 的样式 --> 2 <Style x:Key = "ItemsControlStyle1" 3 TargetType = "{x:Type ItemsControl}" > 4 <Setter Property = "Template" > 5 <Setter
阅读全文
摘要:1 <Style x:Key="FocusVisual"> 2 <Setter Property="Control.Template"> 3 <Setter.Value> 4 <ControlTemplate> 5 <Rectangle Margin="2" StrokeDashArray="1 2
阅读全文
摘要:1 <Style x:Key="FocusVisual"> 2 <Setter Property="Control.Template"> 3 <Setter.Value> 4 <ControlTemplate> 5 <Rectangle 6 Margin="2" 7 SnapsToDevicePix
阅读全文
摘要:1 <SolidColorBrush 2 x:Key="TextBox.Static.Border" 3 Color="#FFABAdB3" /> 4 <SolidColorBrush 5 x:Key="TextBox.MouseOver.Border" 6 Color="#FF7EB4EA" />
阅读全文
摘要:1 <SolidColorBrush 2 x:Key="Menu.Static.Background" 3 Color="#FFF0F0F0" /> 4 <SolidColorBrush 5 x:Key="Menu.Static.Border" 6 Color="#FF999999" /> 7 <S
阅读全文