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