通过名称获取控件

 

 

if (TypeDescriptor.GetProperties(this)[propertyName] == null)
            {
                Debug.Fail("无效属性名称: " + propertyName);
            }

 

posted @ 2015-01-05 17:59  马语者  阅读(263)  评论(0)    收藏  举报