当前位置:网站首页>wpf 获取datagrid 中指定行列的DataGridTemplateColumn中的控件
wpf 获取datagrid 中指定行列的DataGridTemplateColumn中的控件
2022-07-05 20:49:00 【ReflexMechanism】
/// <summary>
/// 获取控件
/// </summary>
/// <param name="control_name">控件名</param>
/// <param name="row">行</param>
/// <param name="col">列</param>
private void setStar(string control_name, int row, int col = 4)
{
DataGridTemplateColumn templeColumn = grd_fan.Columns[col] as DataGridTemplateColumn;
FrameworkElement s = grd_fan.Columns[col].GetCellContent(grd_fan.Items[row]);
Button tbOper = templeColumn.CellTemplate.FindName(control_name, s) as Button;
tbOper.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#ffc400"));
}边栏推荐
- Specification of protein quantitative kit for abbkine BCA method
- Applet global configuration
- bazel是否有学习的必要
- Kubernetes resource object introduction and common commands (V) - (configmap & Secret)
- MYSQL IFNULL使用功能
- 【愚公系列】2022年7月 Go教学课程 004-Go代码注释
- go 文件路径操作
- ViewRootImpl和WindowManagerService笔记
- [UE4] unrealinsight obtains the real machine performance test report
- haas506 2.0开发教程 - 阿里云ota - pac 固件升级(仅支持2.2以上版本)
猜你喜欢

Norgen AAV提取剂盒说明书(含特色)

Duchefa丨MS培养基含维生素说明书

CVPR 2022 | common 3D damage and data enhancement

10000+ 代码库、3000+ 研发人员大型保险集团的研发效能提升实践

Abnova CRISPR spcas9 polyclonal antibody protocol

2022 Beijing eye health products exhibition, eye care products exhibition, China eye Expo held in November

从架构上详解技术(SLB,Redis,Mysql,Kafka,Clickhouse)的各类热点问题

Duchefa d5124 md5a medium Chinese and English instructions

Chemical properties and application instructions of prosci Lag3 antibody

Abnova blood total nucleic acid purification kit pre installed relevant instructions
随机推荐
【刷题记录】1. 两数之和
Web Service简单入门示例
10000+ 代码库、3000+ 研发人员大型保险集团的研发效能提升实践
Abnova fluorescent dye 620-m streptavidin scheme
Is the securities account given by the school of Finance and business safe? Can I open an account?
Clear app data and get Icon
Which securities is better for securities account opening? Is online account opening safe?
Material Design组件 - 使用BottomSheet展现扩展内容(二)
[quick start of Digital IC Verification] 2. Through an example of SOC project, understand the architecture of SOC and explore the design process of digital system
概率论机器学习的先验知识(上)
Abnova丨E (DIII) (WNV) 重组蛋白 中英文说明书
解析创客教育的知识迁移和分享精神
Chemical properties and application instructions of prosci Lag3 antibody
Prosci LAG-3 recombinant protein specification
Duchefa d5124 md5a medium Chinese and English instructions
证券开户选择哪个证券比较好?网上开户安全么?
Binary search
ts 之 泛型
How to renew NPDP? Here comes the operation guide!
Cutting edge technology for cultivating robot education creativity