.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links


Posted By:      Posted Date: May 22, 2011    Points: 0   Category :JQuery
I am completely new at this and trying to figure this out for someone else, so please forgive me if I use the wrong terms.  We have boxes that have been created using the ActivityDesigner.  However, we want to change the look of the boxes for the default template.  I am sure that it is simple once you know how, but we can't figure out where to go to make the changes.  Any help that you could give would be HIGHLY appreciated.  Thank you in advance!

View Complete Post

More Related Resource Links

MouseUp event not firing on ActivityDesigner class?

I have a custom control derived from ActivityDesigner.  I'm basically retemplating the contol to give it a stylized look and feel ... I want to add the ability to change the Display Name by swapping out the TextBlock with a TextBox on MouseUP - but this event is not firing. I can handle the MouseDown event and it works OK, except it enters the Edit mode when dragging the activity around.  Is the MouseUp handled at the base level?  Is there a way to work around this? 

Rehosted Designer does not display custom Activities with custom ActivityDesigner


In a custom Rehosted Designer, when attempt to load a custom activity that has the Designer Attribute, referecing a custom ActivityDesigner, the rehosted designer display only the message "Could not generate view for MyCustomActivity" with red backtext.

When the mouse pointer is passed over the text, the following message is displayed:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation, --> System.Exception: The component 'Procwork.Software.Mersey.CORE.Common.ProcessManager.Designers.BusinessSourceActivityDesigner' does not have a resource identified by the URI '/Procwork.Software.Mersey.CORE.Common.ProcessManager;component/designers/businesssourceactivitydesigner.xaml'.
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at Procwork.Software.Mersey.CORE.Common.ProcessManager.Designers.BusinessSourceActivityDesigner.InitializeComponent() in c:\Procwork\PW.Mersey\Modules\CORE\Common\ProcessManager\Designers\BusinessSourceActivityDesigner.xaml:line 1
       at Procwork.Software.Mersey.CORE.Common.ProcessManager.Designers.BusinessSourceActivityDesigner..ctor() in C:\Procwork\PW

How to Bind ExpressionTextBox to my class object in ActivityDesigner?



I am just learning WF so this may be a easy question to answer.

I have a custom code activity, AddJobToQueue that takes as input arguments a MessageQueue and a JobTicket. JobTicket is my custom class from a separate library (added as a Reference).

In trying to create an custom activity designer for my activity, I have hit a snag. My activity designer uses two ExpressionTextBoxes for the two input arguments. I was able to get the binding correct for the MessageQueue, but I cannot determine how to get the binding for my custom class.

My current XAML is this:

<sap:ActivityDesigner x:Class="QueueActivityLibrary.AddJobToQueueDesigner"  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

Can you access the WorkflowDesigner from a custom ActivityDesigner?


Is it possible to access the WorkflowDesigner that my current custom activity is contained in ... from within that custom activity's designer? 

I tried walking up the visual tree looking for WorkflowDesigner type, but it never gets there.

How do I disable activityDesigner option to become root designer?




I'm building a package of activities with custom designers,

Thing is that when I double click on the custom designer (even an empty ActivityDesigner) the flowchart set my activity as root (IsRootDesigner is true), and since there is no content or expanded designer than what I get is an empty box on the screen. (an empty designer)


The default behaviour is to allow the ActivityDesigner to open up as a new root, so that the ony thing showing in screen is the empty desginer (on double click by default),


meaning lets say that the scope that looks as such : Workflow1>FlowChart>CertainActivity is not allowed (since CertainActivity is not allowed as root).

A scope like Workflow1>FlowChart>FlowChart is ok ofcourse since FlowChart has functionality as root.


Is there a way to forbid that so that opening an activity on the entire screen (as root actually) is not allowed?


Thanks in advance.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend