请问我知道控件的名称如何得到这个控件对象呢?
var button = this.FindName("button1") as Button; Button button = this.FindName("button1") as Button;