Closed pdrasko closed 10 years ago
Hi pdrasko,
ATF PropertyEditor uses the following editors to handle enums. public class LongEnumEditor : IPropertyEditor, IAnnotatedParams and public class FlagsUITypeEditor : UITypeEditor, IAnnotatedParams
Browse the source and docs for more info.
Both classes have a public method used to define enums names and values. Instantiate either one using default constructor then call public void DefineEnum(string[] names, int[] values) to populate enum names and values.
Look at SchemaLoader.cs in DomPropertyEditorSample. The SchemaLoader.cs shows how to expose DomNode properties to PropertyEditor.
Most of the PropertyDescriptors made to work on DomNode if you are not planning to use ATF Dom then you need to implement your own Descriptors.
Thanks,
I extended the FlagsUITypeEditor class to suit my needs.
Does ATF support a Property Editor which would enumerate based on an XPath evaluation?