WPF-xaml文件中使用常量
2021-06-03 10:03
标签:back widget get 表格 white name isp off otto WPF-xaml文件中使用常量 标签:back widget get 表格 white name isp off otto 原文地址:https://www.cnblogs.com/wangyinlon/p/10907043.html使用常量的好出:清晰,方便维护
xmlns:sys="clr-namespace:System;assembly=mscorlib">
sys:Double x:Key="ColumnHeader.Height">33sys:Double>
sys:Double x:Key="DataGridRow.Height">33sys:Double>
Thickness x:Key="DataGrid.BorderThickness" Bottom="1" Left="0" Right="0" Top="1" />
Thickness x:Key="ColumnHeader.BorderThickness" Bottom="0" Left="0" Right="1" Top="0" />
Thickness x:Key="DataGridRow.BorderThickness" Bottom="1" Left="0" Right="0" Top="1" />
SolidColorBrush x:Key="DataGrid.BorderBrush" Color="#CCCEDB" />
SolidColorBrush x:Key="ColumnHeader.Background" Color="White" />
SolidColorBrush x:Key="ColumnHeader.Foreground" Color="#aeaeae" />
SolidColorBrush x:Key="ColumnHeader.BorderBrush" Color="#AEAEAE" />