简体   繁体   English

使用按钮编辑WPF数据网格单元格

[英]Edit a WPF datagrid cell using buttons

I have replicated numeric keys as buttons in a WPF window. 我已将数字键复制为WPF窗口中的按钮。 Now I want to edit the Selected WPF datagrid cell with those button. 现在,我想使用这些按钮来编辑“选定的WPF数据网格”单元格。 How can I get the focused cell and replace the field value with button click? 如何获得焦点单元格并用按钮单击替换字段值?

您可能希望通过结合使用EventTriggers或类似方法来查看DataTemplates来执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM