当前位置:网站首页>WPF gets the control in the datagridtemplatecolumn of the specified row and column in the DataGrid
WPF gets the control in the datagridtemplatecolumn of the specified row and column in the DataGrid
2022-07-05 20:56:00 【ReflexMechanism】
/// <summary>
/// Get controls
/// </summary>
/// <param name="control_name"> Control name </param>
/// <param name="row"> That's ok </param>
/// <param name="col"> Column </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"));
}
边栏推荐
- Abnova丨荧光染料 620-M 链霉亲和素方案
- Abnova丨血液总核酸纯化试剂盒预装相关说明书
- Is it safe to open a stock account by mobile phone? My home is relatively remote. Is there a better way to open an account?
- 五层网络协议
- 序列联配Sequence Alignment
- How to make ERP inventory accounts of chemical enterprises more accurate
- 解析五育融合之下的steam教育模式
- Abnova maxpab mouse derived polyclonal antibody solution
- MySQL ifnull usage function
- MySQL InnoDB架构原理
猜你喜欢
PHP deserialization +md5 collision
解析五育融合之下的steam教育模式
MySQL InnoDB架构原理
Duchefa d5124 md5a medium Chinese and English instructions
Phpstudy Xiaopi's MySQL Click to start and quickly flash back. It has been solved
Abnova丨E (DIII) (WNV) 重组蛋白 中英文说明书
渗透创客精神文化转化的创客教育
2. < tag hash table, string> supplement: Sword finger offer 50 The first character DBC that appears only once
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
Duchefa p1001 plant agar Chinese and English instructions
随机推荐
phpstudy小皮的mysql点击启动后迅速闪退,已解决
Graph embedding learning notes
五层网络协议
Promouvoir le développement de l'industrie culturelle et touristique par la recherche, l'apprentissage et l'enseignement pratique du tourisme
字典树简单入门题(居然是蓝题?)
教你自己训练的pytorch模型转caffe(三)
Abnova丨E (DIII) (WNV) 重组蛋白 中英文说明书
systemd-resolved 开启 debug 日志
Abnova e (diii) (WNV) recombinant protein Chinese and English instructions
Where is a good stock account? Is online account manager safe to open an account
Abnova丨DNA 标记高质量控制测试方案
Abbkine丨TraKine F-actin染色试剂盒(绿色荧光)方案
Pytorch实战——MNIST数据集手写数字识别
2.<tag-哈希表, 字符串>补充: 剑指 Offer 50. 第一个只出现一次的字符 dbc
CLion配置visual studio(msvc)和JOM多核编译
大二下个人发展小结
Abnova丨 MaxPab 小鼠源多克隆抗体解决方案
教你自己训练的pytorch模型转caffe(二)
How to open an account online for futures? Is it safe?
Implementation of redis unique ID generator