DependencyProperty 附加到属性的属性

发布于 2024-07-13 01:16:55 字数 231 浏览 5 评论 0原文

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

public Person userAccount {get;set;}

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

是否有可能做到这一点? 如果是的话我需要改变什么?

I have a workflow with a property in it, declared like this:

public Person userAccount {get;set;}

Person is a class with it's own properties (like Person.Name) and with WF I can bind to the userAccount property fine yet I can't seem to bind to the userAccount.Name.

Is it possible to do this? If so what do I need to change?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

追我者格杀勿论 2024-07-20 01:16:55

不,

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

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

No

i don't think that its possible to driectly bind to Memebers of Variables in Workflow

you will have to bind to entier class i.e. userAccount

执妄 2024-07-20 01:16:55

这是可能的,而且很符合逻辑,只是 Visual Studio 编辑器在执行此操作时遇到了一些问题。 您的路径属性只需要正确设置即可。
示例(以上面的场景为例):
Activity=BusinessProcess,Path=userAccount.Name

It is possible and so logical just the Visual Studio editor has some issues doing it. Your path property would just need to be a set correctly.
Example (taking my scenario from above):
Activity=BusinessProcess, Path=userAccount.Name

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文