For ToolTip.
public enum NicType
{
[Description("xxx")]
Ethernet,
[Description("xxx")]
Wlan,
[Description("xxx")]
Vm,
[Description("xxx")]
Ohter
}
<Label ToolTip="{Binding NicType, Converter={StaticResource EnumDescriptionConverter}}" />
Further, a generic MemberDescriptionConverter can be implemented, supporting not only Enum, but any member modified by the Description attribute.
For ToolTip.
Further, a generic
MemberDescriptionConvertercan be implemented, supporting not only Enum, but any member modified by theDescriptionattribute.