DependencyProperty 附加到属性的属性
我有一个包含属性的工作流程,声明如下:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,
我不认为可以直接绑定到工作流中的变量成员,
您必须绑定到整个类,即 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
这是可能的,而且很符合逻辑,只是 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