This project has moved. For the latest updates, please go here.

PropertyGrid vs Workflow Foundation 4.0

Mar 13, 2012 at 7:15 AM

Hello,

anyone familiar with WF 4.0?
In my application I'd like to use PropertyGrid from the toolkit to display the Activity's properties when clicked on an item in the workflow.

Currently, I am updating PropertyGrid by subscription (wd is WorkflowDesigner): 

wd.Context.Items.Subscribe<Selection>(delegate(Selection selection)
{
        if (selection.PrimarySelection != null)
        {
                 PropertyGrid.SelectedObject = selection.PrimarySelection;
        }
}

Does anyone know a better way to associate the object with PropertyGrid? For example, the Grid is always titled as "ModelItemImpl" ... there is no property to change this right?