清理引用,将NavigatorServices更改为使用Message来实现导航的切换
This commit is contained in:
@@ -24,12 +24,11 @@ public class EnumDescriptionConverter : IValueConverter
|
||||
{
|
||||
var fi = enumObj.GetType().GetField(enumObj.ToString());
|
||||
|
||||
DescriptionAttribute[] attributes =
|
||||
var attributes =
|
||||
(DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
|
||||
|
||||
if (attributes != null && attributes.Length > 0)
|
||||
return attributes[0].Description;
|
||||
else
|
||||
return enumObj.ToString();
|
||||
return enumObj.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user