当前位置:网站首页>WPF DataGrid two lines with one color
WPF DataGrid two lines with one color
2022-07-20 19:15:00 【Brother Xiaohui】
Datagrid Row style
style
<Style TargetType="DataGridRow">
<Style.Triggers>
<!-- Change colors between lines -->
<Trigger Property="AlternationIndex" Value="2" >
<Setter Property="Background" Value="#f4f9ff" />
</Trigger>
<Trigger Property="AlternationIndex" Value="3" >
<Setter Property="Background" Value="#f4f9ff" />
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#ffeedb"/>
</Trigger>
</Style.Triggers>
</Style>
Set up DataGrid attribute
AlternationCount="4"
边栏推荐
- MATLAB绘制环形比例图
- lpad()函数和(row_number()over( order by )+ ...)
- What is the basic principle of MySQL read / write separation
- Calculate the centroid with MATLAB
- WPF MVVM下 关闭窗体 并打开新窗体
- Geoscience academic resources III (zoning data)
- STM32F103C8T6 操作矩阵键盘
- MATLAB回归分析获取预测变量的系数和p值和R2(仅一行代码)
- Leetcode 115.不同的子序列
- C# 去掉图片多余白色部分
猜你喜欢
【YOLOv5实战3】基于YOLOv5的交通标志识别系统-模型训练
Draw 95% confidence interval diagram with MATLAB
XSS(跨站脚本攻击)漏洞理解
Matlab与1stOpt多元非线性回归
Matlab regression analysis obtains the coefficient, P value and R2 of predictive variables (only one line of code)
快速提取PDF文件中的表格
Matlab绘制95%置信区间图
Matlab TRMM_3B42数据格式转换(nc转tif,附代码)
单片机调试 — Event Recorder 的使用
若依框架-表单按照字段合计,按照某个字段排序
随机推荐
[problem solving] the port number is occupied
Chip low power sleep mode and the use of watchdog
Leetcode 115.不同的子序列
Chapter 7: Set
WPF RadioButton样式 (2)
I interviewed a 37 year old programmer and had some insights
ArcGIS custom coordinate system (taking Albers as an example)
MATLAB realizes LMDI decomposition method (including zero value processing)
Browser compatibility problems and common solutions
Map和Set
浏览器兼容性问题及常见的解决方法
Multithreaded FTP project (4) -- MySQL database + FTP
MATLAB实现LMDI分解方法(含零值处理)
Drawing circular scale map with MATLAB
oracle建表语句模板
STM32F103C8T6 操作矩阵键盘
Orthanc set up IP access
Matlab数据写入文件常用函数
Mswep data NC format to TIF format
降水数据汇总