如何通过单击按钮在文本框中显示按钮内容? [英] How to display button content in Textbox,by clicking on the button?
本文介绍了如何通过单击按钮在文本框中显示按钮内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
变量与x:名字对我不好。
Variant with x:Name is not good for me.
推荐答案
//在按钮点击事件中......
textBox1.Text = button1.Text;
那是所有:)
希望这个帮助。 - CCB
//In your button click event...
textBox1.Text = button1.Text;
That's all :)
Hope this help. - CCB
我添加了Tag属性到button.Then
I added Tag property to button.Then
Display.Text = Display.Text+((FrameworkElement)sender).Tag.ToString();
这篇关于如何通过单击按钮在文本框中显示按钮内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文