NumericEditor and CurrencyEditor has a property called MaskInput. Using reflector I found the appropriate type converter. This code will produce a dropdown but it is empty. Any ideas how I can fix this?
[TypeConverter(typeof(MaskTypeConverter))][Editor(typeof(MaskUITypeEditor), typeof(UITypeEditor))]public string MaskInput{ get { return this.ultraNumericEditor1.MaskInput; } set { this.ultraNumericEditor1.MaskInput = value; }}
I have submitted a sample of how I am trying to get the MaskInput. The user control NumericEditorBase and the NumericEditorBaseDesigner are in Shared. I have added 5 properties to be changed on the user control through the designer. All work except for MaskInput. I have tried to implement Infragistics.Win.IEditType but I do not understand how to implement this interface.
I have dropped the control onto the TestMaskInputDropDown the control has all five properties available but still does not accept MaskInput.
Any help would be appreciated. Thanks
Is there an example of how to properly implement the interface. I am having trouble with IEditType needing EditType implemented.
I took a look at the code and the converter expects the context to be of type Infragistics.Win.IEditType, an interface that it uses to get the default masks. You probably have to implement that interface.