|
I am very new to Windows WF Development so I apologize if this is a dumb question, however, it seems like this would be a common task so I thought I would ask.
I am trying to create a custom activity that will allow a user to choose an item from the fabulous provider model. For the sake of reference, let's pretend I had the code for the System.Web.Security.RoleProvider class. In addition, let's also pretend that I had the code for the providers that derive from it (AuthorizationStoreRoleProvider, SqlRoleProvider, WindowsTokenRoleProvider).
From my perspective right now, I'm viewing the desired output as the listed "properties" within visual studio 2005. I am trying to accomplish 2 things, and I debated placing these in 2 separate threads:
- I want to have a DependencyProperty within my custom activity such that the user can select from options that derive from a class. In our example, I would like my users to be able to select either "AuthorizationStoreRoleProvider", "SqlRoleProvider", or "WindowsTokenRoleProvider", it would be a bonus if I could also use the "DisplayName" attribute to provide more friendly names for these derived classes.
- Then, once the user has selected a Provider, I would like them to be presented with the DependencyProperties that are specific to that provider, for instance, The SQLRoleProvider would want a connection string, whera the WindowsTokenRoleProvider wold not want to show this info.
Has anyone been able to successfully do this? I fumbled around for about 6 hours and I grew frustrated. I knew the super talented community could provide some input. Thank you for any help you can provide! |