Posted Mon Oct 27, 2008 @ 7:06 AM
public sealed class MaskedInput : BaseInput { ... [TypeConverter(typeof(MaskedInputTransformConverter))] public string Transform { get {...} set {...} } ... }
/// <summary> /// Provides Visual Studio intellisense for Transform property. /// The list of StandardValues here corresponds to the properties of client-side ComponentArt_MaskedInput_Transforms object. /// </summary> public class MaskedInputTransformConverter : TypeConverter { public string[] StandardValues = { "empty", "CreditCard_VisaMasterCard", "CreditCard_AmEx", "Telephone_NorthAmerica", "ZipCode", "PostalCode", "PostalCode_Australia", "EmailAddress" }; public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) { return new StandardValuesCollection(StandardValues); } public override bool GetStandardValuesSupported(ITypeDescriptorContext context) { return true; } }
Eli Gassert
Posted on Mon Oct 27, 2008 @ 7:06 AM
jovan
Some very interesting ideas, thank you. I will look into this as soon as I get a chance. Probably later this week. I'll report back if I am able to get any of these techniques to work.