WF4 how to enable or disable dropdown(enum) argument based on previous/other dropdown(enum) value

Dhanasekar Velayudham 1 Reputation point
2022-05-31T15:36:21.02+00:00

I have two drop down in my codeactivity property, I want to allow the user to select second drop down based on the first drop down selection. Please see my sample code :

public enum Services
{
    Human,
    Web
}
public enum ServiceType
{
    Soap,
    Rest
}


[Category("Input")]
    public Services ServicesFrom { get; set; }

    [Category("Input")]
    public ServiceType WebServices { get; set; }

From the above code when user choose HumanValue from ServicesFrom dropdown in property grid then I am not allow him to choose value from WebServicesDropDown. I want to disable the WebServices dropdown from property grid.

Any help appreciated!!
Thanks in Advance

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
765 questions
{count} votes