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

Top 5 Contributors of the Month
Post New Web Links

What does "property" direction of arguments editor in WF designer mean?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :JQuery

When you use the WF designer for managing Arguments, the direction column has several options including "in", "in/out", "out" and "property".  What does the "property" choice mean?

Thank you,


View Complete Post

More Related Resource Links

Why does VS 2010's designer clear my property value editor's properties when it is dismissed?

(This started as a Connect post but I decided it seems like I should find out if I'm doing something daft before blaming .NET.  It requires a lot of code, and Connect lets you attach projects.  I see no option to do this on these forums, so I will link to a .zip file containing the project on my hosting.)

I'm experimenting with various ideas for the design-time experience for some WPF controls.  One feature I'm trying to implement is the display of a graphical preview for enumeration values.  My first attempt at this failed due to some behaviors in the design environment that I'm not certain are expected.  Here's a description of the attached project and the behaviors I don't understand.

PreviewItem is a class that represents an enumeration value; it has properties for the value and the image that represents it.PreviewItemCollection is a collection class that contains a PreviewItem for each valid enumeration value; it relies on an implementation of PreviewItemFactory.  PreviewItemFactory is responsible for generating a collection based on an enumeration that contains one PreviewItem per enumeration value. EnumPreview is a UserControl that maintains a PreviewItemCollection and displays each PreviewItem in a ComboBox.  It contains logic for representing the selected value as the enumeration value (not a PreviewItem).  To facilitate this, when the Selec

Enumerating Variables & Arguments in Rehosted Designer

I'm trying to enumerate the variables and arguments of a workflow after I load it into my rehosted designer.  I see that I can use ActivityMetadata.GetArgumentsWithReflection() and ActivityMetadata.GetVariablesWithReflection() but those require that I have ActivityMetadata to start with.  So the real question is, how do I get the ActivityMetadata once I've done MyWorkflowDesigner.Load(XamlPath);?Thanks in advance.ChuckChuck Berg | Consulting Engineer | Corporate IT - Station Casinos, Inc.

Change Variable and Argument editor in workflow designer?

Is it possible, in Beta 2, to customize the behaviour of the editing grids use for entering data about a workflow's variables or arguments in the workflow designer?  Can I:- add my own custom column to the grid?- can I customize the variable type drop down editor? (e.g. have my own editor or otherwise filter the list of types)- can I change the "default" expression editor (and possibly remove it)?Thanks,Notre

How to set an overload group on arguments in the workflow designer?



I'm wondering how to set an overload group (http://msdn.microsoft.com/en-us/library/ee358733.aspx) to arguments using the workflow designer. If I click on an argument in the Arguments tab in Visual Studio, the properties window shows a checkbox for the Required attribute, but no property for the OverloadGroup.

Is there a way to use overload groups in the designer?

Thanks in advance,

Problem with property editor of a web user control



I created an asp.net user control with a property named 'TabList' , the property is visible when I place my control on a page, the default editor for this property was a simple text box, but I needed a DropDownList for editing the TabList property of my control, so I added following code to implement it:

<Category("Navigation Bar"), Editor(GetType(DropDownList), GetType(System.Drawing.Design.UITypeEditor)), Description("List of Tabs"), DefaultValue("SHISHIR WAHI")> Public Property TabList() As String
            Return _tablist
        End Get

        Set(ByVal value As String)
            _tablist = value
        End Set
    End Property

The Category() and DefaultValue() are working fine but Editor() and Description() are not, what could be the problem?

Please help.

WF4.0 Custom Activity - Property Editor or TypeConverter



As part of my custom activity development, I have a requirement to change the value of one property acording to another property's value.

For example, I have two properties- Position and Qualification in my custom activity. Once I select a position, the qualification should change according to the selected position value. Both, Position and Qualification  are string properties and the value of Position is populated with a TypeConverter. 

I tried with TypeConverter for Qualification property too. Issue is how to refresh the Qualification values on change of Position property?

I tried with PropertyEditor also. But not sure how to pass the data from my ActivityDesigner to PropertyEditor. I am handling the ModelItem.PropertyChanged event and getting the Qualification values. How to pass this values either to my TypeConverter or to My PropertyEditor?

PropertyEditor Code is as follows


Can we specify ChromeType Property of a web part when adding in SharePoint Designer 2010

Is it possible that with all other properties, we can specify ChromeType Property of a web part while adding it on the page using SharePoint Designer 2010? If yes, any example / syntax?

How to assign a workflow argument with Direction=Property to a workflow variable?


I created an argument 'ArgTest' with Direction=Property and ArgumentType=String and a variable VarTest with VariableType=String.

I'd like to assign ArgTest to VarTest. Direct assignment (using Assign activity) doesn't work, because there is a compiler error "'ArgTest' is not declared. It may be inaccessible due to its protection level".

I tried to change definition of Assign activity in XAML using PropertyReference (which is System.Activities. ActivityPropertyReference) :

<Assign sap:VirtualizedContainerService.HintSize="242,58">
  <OutArgument x:TypeArguments="x:String">[VarTest]</OutArgument>
   <PropertyReference x:TypeArguments="x:String" PropertyName="ArgTest" />  

, but I got runtime error: "Object of type 'System.String' cannot be converted to type 'System.Activities.Activity`1[System.String]'."


From another reasons it's important for me to have Direction of ArgTest set to Property instead of In.

I believe the solution must be easy, so I feel like I'm missing a trick. Thanks in advance for any pointers.

Toolbar Items Collection Editor: "Property editing not available" and Add disabled


I'm working on a WPF project in VS2010 and I am finding that the property editor is not behaving the way I expect (i.e. as it would for a WinForm app).

For example, I can manually edit the XAML to add items to a Toolbar, but if I open the Item Collection from the Properties window, I cannot make any changes. The Collection Editor says "Property editing not available."

If I manually add an Item, I can then edit its properties in the collection editor, but the Add option is still disabled. I could understand the first behavior since their weren't any items, but not the Add button being disabled (in both cases).

Thanks in advance.

- cawood

 blog |  twitter

How to get Rehosted Workflow Designer selected property from PropertyGrid



How to find the selected Property from PropertyGrid in Rehosted Workflow Designer.

Suppose if I select the Assign activity To Property, I need find this selected property from code when I click some button.

Hanumantha Rao

Need access to Env.DTE from a property value editor.


Hi to all!

I have created a custom property value editor based on PropertyValueEditor. I've attached it to my property type through design-time assembly and my property editor is shown in Property window when I select my control.

The problem is that in the property editor I need to list the names of all those files included in the actual solution that have a specific extension.

How can I do that?

In Winform Property Editors (extending UITypeEditor) I have access to IServiceProvider and I could manage to get Env.DTE and solve the problem, but in WPF or SL I couldn't.




Custom inline collection property editor with ExpressionTextBox


I need to create an inline collection editor inside property grid. My custom code acvitity and argument type is as bellow.

public class WorkItemOwner
  public InArgument<string> OwnerName { get; set; }
  public WorkItemOwner()
    this.OwnerName = new InArgument<string>();

public class WorkToDo : CodeActivity
  [Editor(typeof(WorkToDoOwnerEditor), typeof(PropertyValueEditor))]
  public Collection<WorkItemOwner> WorkItemOwners { get; set; }

  public WorkToDo()
    this.WorkItemOwners = new Collection<WorkItemOwner>();

  protected override 

Designer rehosting and Expression Editor(s)

Dear all, we are building a standalone designer for our workflows by rehosting the WF designer.
However one feature that we really like to have is the expression editor service in order to give the users a feedback on formula editing.

Normally the designer (in our case) is not given to application developers, and for this reason, writing also simple formulas could be a complex task, especially for the novice. I think that providing Intellisense or something like that could help on the same,... what could be done in this area?

I currently downloaded the BETA 2, and I am going to install it in the next few days. However, is there something new on this stuff, any example on the same?

Thank you for help,


SharePoint Designer

This video series shows you how to quickly and easily build complex business solutions on the SharePoint platform. Microsoft Office SharePoint Designer 2007 Business Administrator Training is a one-and-a-half hour, 300-400 level training series, produced in collaboration with the SharePoint Product Team and Total Training

WPF / Silverlight tutorial: Visibility property and binding

Visibility property is a very powerful and yet often overlooked property available in both WPF and Silverlight. It enables you to set Visibility of certain UIElement objects to different states like: Visible, Collapsed and Hidden (not supported by Silverlight). This tutorial shows you how to use it and how to bind to Visibility property

abstract away the source of the connection string using a class with a static property.

ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.

The element of a web.config file is a place to store connection strings, server names, file paths, and other miscellaneous settings needed by an application to perform work. The items inside appSettings are items that need to be configurable depending upon the environment, for instance, any database connection strings will change as you move your application from a testing and staging server into production.

Let's abstract away the source of the connection string using a class with a static property.

Get pixel format, raw format, property id list and property items image in VB.net - C#.net.

n this simple article you will learn that how we can get pixel format, raw format, property id list and property items image in VB and C#.net.

Get Pixel Format:

Image consists of pixels to get the format of the pixel we have a property named pixel format. This property returns an enumeration of pixel format. This enumeration tells the pixel format.

To demonstrate make a window application. Drag one button and a picture box on form.

Now write the following code on Button click event:
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