index > Windows Workflow Foundation > DependencyProperty

DependencyProperty

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!

Frustrated WF Developer

You might want to implement IDynamicPropertyTypeProvider on your activity. See eg. http://blogs.msdn.com/ghenap/archive/2006/05/08/592236.aspx. I have my self been trying to fool around with this (displaying properties on a activity according to the public properties on a selected Form). I have only got i partly to work but I guess it is the way to go.

Anders Jacobsen

anderskj1

This is Great!

Thank you so much for taking the time to help.

Frustrated WF Developer
reply 3

You can use google to search for other answers

 

More Articles

• Beta 2 Bug?
• Error en Sample Application "Order Processing State Machine ...
• Error: Changing a workflow and getting a state on a persisted Wor...
• Is it a bug in Clone of composite activity
• How to GetActivityByName however the Activity Enabled property.?
• custom the persistance
• Errors while compiling xoml
• Workflow Lifecylcle Events
• How to call & pass the parameter to a workflow inside a workf...
• Error in VS2005 Workflow Designer after fresh install of Beta 1.2
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Qury Regarding Long Running Workflows ....
• Changes between Beta 1 and Beta 2
• 'advanced' tracking
• IPendingWork vs IWorkBatch
• Dependency Property
• There is Event When Server is failed (WCF)
• E-mails: Tamper-proof URL's with secure
• TimeoutActivity
• Heavy action and thread blocking
• Trouble with InvokeWorkflowActivity
• Who said 'WWF Designers cant fly?' - WWF
• WorkflowXSDGenerator Issues?
• InvokeWorkflow activity
• Persistence without binaries
• OT: Forum Available on Usenet?

Hot Articles

• BUG in System.Workflow.ComponentModel.Ac
• Cannot find custom tool 'WorkflowXSDGene
• HUman Interaction Sample
• WWF-SqlWorkflowPersistenceService
• Workflow Tracking + Workflow Monitor = A
• Owner ID in SqlPersistence
• Runtime Engine Durability
• Adding InstanceID as SOAP Header to outg
• SQL Database Setup and Persistence Service
• State Machine Workflow with partial Huma
• Can't start VS 2005 after installing Win
• DTC Problem in Transaction Scope
• embedded rule file with spaces in the fi
• How to pass a Strongly-Typed Dataset to
• set .Rules file from host

Recommend Articles

• What happens to running workflows when t
• how to save the process def. in rehosted
• EventQueueName question
• Expense Reporting Instructions & Con
• How to get Workflowinstance from a State
• Windows Service Hosting
• Workflow enabled ASP.NET WebCast on Tomo
• Designer wish list?
• How to evalute a workflow parameter in a
• view Cancel handler / faults cause code-
• Workflow Startup in transactional way...
• how to access output parameters from wor
• re-deploy and conversion issue
• problems communicating with the host
• Not getting drop down from design time v