3
比方說,我有一個DependencyProperty
,我想要它的字符串名稱。在.NET Framework中,我只能訪問DependencyProperty的Name
屬性。例如,我可以這樣做:的DependencyProperty
doesn't seem to have a Name
property在Windows應用商店應用中獲取DependencyProperty的名稱
string propertyName = FrameworkElement.VisibilityProperty.Name;
Windows應用商店的版本。
什麼是獲取名稱的好方法?