工作流属性未显示在绑定列表中 [英] Workflow property not showing up in bind list

查看:71
本文介绍了工作流属性未显示在绑定列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

道歉,如果已经有了答案,我无法通过搜索找到一个。

我有一个工作流,其属性类型为CustomObject,其中CustomObject是一个类I用一些简单的属性创建。我在该工作流中有一个自定义活动,它具有类型为CustomObject的依赖项属性。

我正在尝试绑定这两个属性,但工作流的CustomObject未显示在"绑定到现有成员"中当我单击自定义活动的属性中的绑定图标时,对话框。

现在有一个扭曲,我在另一个库中有CustomObject类。如果我将它放在工作流库中,它会显示在绑定对话框中。如果我把它放回到单独的库中,它就不再出现在对话框中。

绑定设计器中的两个属性会添加一个活动绑定到designer.cs文件,如果我保留自动生成的代码,即使我将CustomObject移动到单独的库,工作流仍然有效。它只是没有出现在WF设计器绑定对话框中。

任何人都知道如何通过设计器使这个对象可绑定?我不想担心绑定代码。从我可以告诉它看起来设计师根据工作流中属性的类型过滤"绑定到现有成员"对话框,在我的情况下,它无法弄清楚它是一个有效的绑定类型。

Hi, apologies if there's an answer to this already, I wasn't able to find one via the search.

I have a workflow that has a property of type CustomObject, where CustomObject is an class I created with a few simple properties.  I have a custom activity in that workflow that has a dependency property of type CustomObject.

I'm trying to bind these two properties but the workflow's CustomObject doesn't show up in the 'Bind to an existing member' dialog box when I click on the bind icon in the custom activity's properties.

Now there's a twist here in that I have the CustomObject class in a separate library.  If I put it in the workflow library it DOES show up in the binding dialog.  If I put it back in the separate library it no longer appears in the dialog.

Binding the two properties in the designer adds an activity binding to the designer.cs file and if I keep that auto-generated code the workflow still works even if I move the CustomObject out to a separate library.  It just doesn't show up in the WF designer binding dialog box.

Anyone know how I can get this object to be bindable via the designer?  I don't want to have to worry about that binding code.  From what I can tell it looks like the designer filters the 'bind to existing members' dialog based on the type of the properties in the workflow and in my case it can't figure out that it's a valid type to bind.

推荐答案

您好,
如何在自定义活动中注册CustomObject?你能展示一些代码吗?
Hi,
How do you register the CustomObject in the custom activity? Can you show some code ?


这篇关于工作流属性未显示在绑定列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆