Dependency property - Bind/Concat multiple values

Is it possible in XOML to bind a dependency property of an activity to concatenated values, say a workflow property and some extra string or multiple concatenated workflow properties? I'd prefer not to create a property on the workflow itself just to combine two of its other properties. Is there any way to do this?
[318 byte] By [wenogg] at [2008-1-4]
# 1

What is the type of property that you want to bind? I did not quite understand why you might need to have concatenated values of multiple properties for one property directly. Is that a list-like data structure? It would be helpful if you could provide more detail.

Thanks

Elif

ElifOn-MSFT at 2007-10-3 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2
Sure... Say I have a Library of custom activities that I want to have no coupling to the actual workflow. The activity (call it DeleteFilesActivity) might have a dependency property named Path. Inside the workflow (seperate project) there could be a dependency property named RootDir that gets initialized form the workflow parameters. I'd like to drop a DeleteFilesActivity into the workflow and set the Path property to be workflow1.RootDir + "\\bin" or even workflow1.RootDir + "\\" + workflow1.SomeOtherProperty right in the XOML (designer). I know I could create another property on the workflow to do this but i would like to do it declaritively if possible.
wenogg at 2007-10-3 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 3

Well there are some ways to workaround the issue but i guess they would be even worse than having a property on the workflow that would deal with this. I still will tell the ways that come to my mind:

1. Have your DeleteFilesActivity a gray box composite activity that you can drop a Policy activity in and set your Path in that Policy activity

2. Have x number of properties x being the number of different properties that you might want to bind to as in PathVar1, PathVar2, or Folder1, Folder2...etc in your custom activity. The user would set each of those folder names and in your custom activity set the Path to be the concatenation of whatever values you may have other than null for each of those properties based on how many of them are bound/set.

I will post more ways once i come up with more, however i dont think we provide such "concatenated" binding for a property.

Thanks

Elif

ElifOn-MSFT at 2007-10-3 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified