1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //----------------------------------------------------------------
5 namespace System.Activities.Presentation.Hosting
7 //WorkflowCommandExtensionItem - this class allows user to update each workflow's designer command
8 //(i.e. input gestures collection). user has to provide IWorkflowCommandExtensionCallback implementation
9 //to get notifications flowing in.
10 public sealed class WorkflowCommandExtensionItem : ContextItem
12 public WorkflowCommandExtensionItem()
16 public WorkflowCommandExtensionItem(IWorkflowCommandExtensionCallback callback)
20 throw FxTrace.Exception.AsError(new ArgumentNullException("callback"));
22 this.CommandExtensionCallback = callback;
25 public override Type ItemType
27 get { return typeof(WorkflowCommandExtensionItem); }
30 internal IWorkflowCommandExtensionCallback CommandExtensionCallback