通过名称获取控件

 

 

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

 

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