469,356 Members | 2,626 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

Windows Workflow Foundation: Custom activity property dialog?

Is it possible to have a custom dialog for setting the properties of a custom WF activity?

For example, in the designer, if you drag-and-drop a custom control onto the flow chart, I would like to be able to double-click the flow node and open a pre-built modal dialog box that sets the node's properties, rather than jump into the code-beside window.

Jon

Mar 12 '07 #1
6 3973
On Mar 12, 3:18 pm, "Jon Davis" <j...@REMOVE.ME.PLEASE.jondavis.net>
wrote:
Is it possible to have a custom dialog for setting the properties of a custom WF activity?

For example, in the designer, if you drag-and-drop a custom control onto the flow chart, I would like to be able to double-click the flow node and open a pre-built modal dialog box that sets the node's properties, rather than jump into the code-beside window.
I'm very interested in this, too. If you find an answer elsewhere, can
you please post it to this thread?

Mar 13 '07 #2
http://blogs.msdn.com/tomlake/archiv...05/618185.aspx

"Bruce Wood" <br*******@canada.comwrote in message
news:11*********************@q40g2000cwq.googlegro ups.com...
On Mar 12, 3:18 pm, "Jon Davis" <j...@REMOVE.ME.PLEASE.jondavis.net>
wrote:
>Is it possible to have a custom dialog for setting the properties of a
custom WF activity?

For example, in the designer, if you drag-and-drop a custom control onto
the flow chart, I would like to be able to double-click the flow node and
open a pre-built modal dialog box that sets the node's properties, rather
than jump into the code-beside window.

I'm very interested in this, too. If you find an answer elsewhere, can
you please post it to this thread?

Mar 13 '07 #3
On Mar 13, 4:16 am, "Jon Davis" <j...@REMOVE.ME.PLEASE.jondavis.net>
wrote:
http://blogs.msdn.com/tomlake/archiv...05/618185.aspx

"Bruce Wood" <brucew...@canada.comwrote in message

news:11*********************@q40g2000cwq.googlegro ups.com...
On Mar 12, 3:18 pm, "Jon Davis" <j...@REMOVE.ME.PLEASE.jondavis.net>
wrote:
Is it possible to have a custom dialog for setting the properties of a
custom WF activity?
For example, in the designer, if you drag-and-drop a custom control onto
the flow chart, I would like to be able to double-click the flow node and
open a pre-built modal dialog box that sets the node's properties, rather
than jump into the code-beside window.
I'm very interested in this, too. If you find an answer elsewhere, can
you please post it to this thread?
Many thanks.

Mar 13 '07 #4
On Mar 12, 3:18 pm, "Jon Davis" <j...@REMOVE.ME.PLEASE.jondavis.net>
wrote:
Is it possible to have a custom dialog for setting the properties of a custom WF activity?

For example, in the designer, if you drag-and-drop a custom control onto the flow chart, I would like to be able to double-click the flow node and open a pre-built modal dialog box that sets the node's properties, rather than jump into the code-beside window.
I'm very interested in this, too. If you find an answer elsewhere, can
you please post it to this thread?

Mar 13 '07 #5
I truncated the sample to the following minimal demonstration. Add this to a workflow project, compile, then add the activity to a workflow designer and double-click it.
using System;
using System.Workflow.ComponentModel;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Workflow.ComponentModel.Design;
namespace WorkflowConsoleApplication1
{
[Designer(typeof(MyHelloWorldActivity.Designer), typeof(IDesigner))]
public class MyHelloWorldActivity : Activity
{
public class Designer : ActivityDesigner
{
protected override void OnMouseDoubleClick
System.Windows.Forms.MouseEventArgs e)
{
System.Windows.Forms.MessageBox.Show("hello world");
}
}
}
}

Mar 19 '07 #6
Of course, this only demonstrates the event handler. It does not demonstrate saving the modified properties successfully, which is what the original link to http://blogs.msdn.com/tomlake/archiv...05/618185.aspx was all about.

Jon

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.netwrote in message news:uZ*************@TK2MSFTNGP06.phx.gbl...
I truncated the sample to the following minimal demonstration. Add this to a workflow project, compile, then add the activity to a workflow designer and double-click it.
using System;
using System.Workflow.ComponentModel;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Workflow.ComponentModel.Design;
namespace WorkflowConsoleApplication1
{
[Designer(typeof(MyHelloWorldActivity.Designer), typeof(IDesigner))]
public class MyHelloWorldActivity : Activity
{
public class Designer : ActivityDesigner
{
protected override void OnMouseDoubleClick
System.Windows.Forms.MouseEventArgs e)
{
System.Windows.Forms.MessageBox.Show("hello world");
}
}
}
}

Mar 19 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Urs | last post: by
reply views Thread by Claudia Fong | last post: by
2 posts views Thread by Speccy | last post: by
2 posts views Thread by =?Utf-8?B?QXJtaW4gR2FsbGlrZXI=?= | last post: by
1 post views Thread by Sanjay Poria | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.