当前位置:网站首页>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"));
}边栏推荐
- Analyze the knowledge transfer and sharing spirit of maker Education
- Typhoon is coming! How to prevent typhoons on construction sites!
- 【刷题记录】1. 两数之和
- leetcode:1755. 最接近目标值的子序列和
- Applet project structure
- E. Singhal and numbers (prime factor decomposition)
- 模式-“里氏替换原则”
- 教你自己训练的pytorch模型转caffe(一)
- Duchefa d5124 md5a medium Chinese and English instructions
- Abbkine trakine F-actin Staining Kit (green fluorescence) scheme
猜你喜欢

Abnova total RNA Purification Kit for cultured cells Chinese and English instructions

解读协作型机器人的日常应用功能

Abnova丨E (DIII) (WNV) 重组蛋白 中英文说明书
![[record of question brushing] 1 Sum of two numbers](/img/ea/4e981edd5570b49b4fa909ac8da6c4.png)
[record of question brushing] 1 Sum of two numbers

Abbkine丨TraKine F-actin染色试剂盒(绿色荧光)方案

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

Pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs

MySQL InnoDB架构原理

Promouvoir le développement de l'industrie culturelle et touristique par la recherche, l'apprentissage et l'enseignement pratique du tourisme

表单文本框的使用(二) 输入过滤(合成事件)
随机推荐
Duchefa细胞分裂素丨二氢玉米素 (DHZ)说明书
科普|英语不好对NPDP考试有影响吗 ?
Propping of resources
Specification of protein quantitative kit for abbkine BCA method
【UE4】UnrealInsight获取真机性能测试报告
Abnova e (diii) (WNV) recombinant protein Chinese and English instructions
Abbkine丨TraKine F-actin染色试剂盒(绿色荧光)方案
渗透创客精神文化转化的创客教育
Abnova丨荧光染料 620-M 链霉亲和素方案
Abnova total RNA Purification Kit for cultured cells Chinese and English instructions
证券开户选择哪个证券比较好?网上开户安全么?
AI 从代码中自动生成注释文档
Open source SPL eliminates tens of thousands of database intermediate tables
sql系列(基础)-第二章 限制和排序数据
Implementation of redis unique ID generator
Abbkine BCA法 蛋白质定量试剂盒说明书
2. < tag hash table, string> supplement: Sword finger offer 50 The first character DBC that appears only once
【愚公系列】2022年7月 Go教学课程 004-Go代码注释
Abnova丨CRISPR SpCas9 多克隆抗体方案
挖财商学院给的证券账户安全吗?可以开户吗?