public enum MyEnum{ [EnumDisplayValue("My Value Display")] MyValue1, [EnumDisplayValue("MyValueDisplayLocalizationKey", true)] MyValue2}
MicroFour.StrataFrame.Tools.EnumDisplayValueAttribute
This allows you to set the text or to set the localization key used to retrieve the text:
Public Enum MyEnum <EnumDisplayValue("My Value Display")> _ MyValue1 <EnumDisplayValue("MyValueDisplayLocalizationKey", True)> _ MyValue2End Enum
The first example is how you just set the text... the second example shows how to set the localization key used to retrieve the text from the localization system.
I am using a ComboBoxEdit from the StrataFrame DevExpress wrapper, and I use Enumaration as the PopulationType of the control. It all works fine, but how can I localize the values that are displayed in the combo drop down list?
Thank you...