Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I have a custom activity property to display a drop down list of options to pick from?

0
Posted

How can I have a custom activity property to display a drop down list of options to pick from?

0

You can use the template given below, from which you can create a custom type converter. For a type converter to show up for a property, associate the type converter with the property by providing the TypeConverter attribute as shown in the code: [TypeConverter(typeof(ParameterLookupConverter))] public string MyName { get { return _myName; } set { _myName = value; } } internal class ParameterLookupConverter : TypeConverter { public ParameterLookupConverter() { } ///

/// Returns whether this TypeConverter supports a standard set of values that can be picked from a list /// i.e. a drop down list of standard values ///

/// /// public override Boolean GetStandardValuesSupported(ITypeDescriptorContext context) { return true; } ///

/// Returns a collection of standard values for the data type this type converter is designed for. ///

/// /// public ov

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123