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