【问题标题】:DependancyProperty attach to a property of a propertyDependancyProperty 附加到属性的属性
【发布时间】:2009-02-05 10:38:17
【问题描述】:

我有一个包含属性的工作流,声明如下:

public Person userAccount {get;set;}

Person 是一个具有自己属性(如 Person.Name)的类,使用 WF 我可以很好地绑定到 userAccount 属性,但我似乎无法绑定到 userAccount.Name。

可以这样做吗?如果是这样,我需要改变什么?

【问题讨论】:

    标签: c# workflow workflow-foundation dependency-properties


    【解决方案1】:

    没有

    我认为它不可能直接绑定到工作流中的变量成员

    您必须绑定到整个类,即 userAccount

    【讨论】:

      【解决方案2】:

      这是可能的,而且很合乎逻辑,只是 Visual Studio 编辑器有一些问题。您的路径属性只需要正确设置即可。
      示例(从上面取我的场景):
      Activity=BusinessProcess, Path=userAccount.Name

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-02-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-10-03
        • 1970-01-01
        • 2011-11-01
        • 2011-02-07
        相关资源
        最近更新 更多