当前位置:网站首页>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"));
}边栏推荐
- bazel是否有学习的必要
- Mathematical analysis_ Notes_ Chapter 9: curve integral and surface integral
- Research and development efficiency improvement practice of large insurance groups with 10000 + code base and 3000 + R & D personnel
- ts 之 类的简介、构造函数和它的this、继承、抽象类、接口
- 《SAS编程和数据挖掘商业案例》学习笔记# 19
- Which is the best online collaboration product? Microsoft loop, notion, flowus
- Write an interface based on flask
- XML建模
- 如何让化工企业的ERP库存账目更准确
- Pytorch实战——MNIST数据集手写数字识别
猜你喜欢

基于flask写一个接口

phpstudy小皮的mysql点击启动后迅速闪退,已解决

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

Typhoon is coming! How to prevent typhoons on construction sites!

PVC 塑料片BS 476-6 火焰传播性能测定

Abnova CRISPR spcas9 polyclonal antibody protocol

EN 438-7建筑覆盖物装饰用层压板材产品—CE认证

2. < tag hash table, string> supplement: Sword finger offer 50 The first character DBC that appears only once

示波器探头对信号源阻抗的影响

解析五育融合之下的steam教育模式
随机推荐
LeetCode: Distinct Subsequences [115]
How to make ERP inventory accounts of chemical enterprises more accurate
haas506 2.0开发教程 - 阿里云ota - pac 固件升级(仅支持2.2以上版本)
Where is a good stock account? Is online account manager safe to open an account
Popular science | does poor English affect the NPDP exam?
中国管理科学研究院凝聚行业专家,傅强荣获智库专家“十佳青年”称号
Duchefa丨P1001植物琼脂中英文说明书
Abbkine BCA法 蛋白质定量试剂盒说明书
shell编程100例
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?
Is the securities account given by the school of Finance and business safe? Can I open an account?
Abnova丨E (DIII) (WNV) 重组蛋白 中英文说明书
AITM2-0002 12s或60s垂直燃烧试验
基於flask寫一個接口
概率论机器学习的先验知识(上)
浅聊我和一些编程语言的缘分
Duchefa丨D5124 MD5A 培养基中英文说明书
手机开户股票开户安全吗?我家比较偏远,有更好的开户途径么?
示波器探头对测量带宽的影响
当Steam教育进入个性化信息技术课程