如何通过单击按钮在文本框中显示按钮内容?

问题描述:

变量与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();