GoXam for WPF v3
Category Property (Part)
Northwoods.GoXam Namespace > Part Class : Category Property
Gets a string identifying the kind of Node or Group or Link or the purpose of the Adornment.
Syntax
public string Category {get; set;}

Property Value

The default value is an empty string. You cannot change this value once the Part has been added to a Diagram.

If you want to replace the DataTemplate used by a Part, you would normally set the Category property of your bound data. This would be reflected via the model in the PartManager, which handles Northwoods.GoXam.Model.ModelChange.ChangedNodeCategory by removing the Node from the Diagram and then adding it back again. The same is true for Links when Northwoods.GoXam.Model.ModelChange.ChangedLinkCategory.

But if you are not using a Category property on your data, because you have overridden PartManager.FindCategoryForNode or PartManager.FindTemplateForNode, you will need to call PartManager.RemoveNodeForData and AddNodeForData yourself.

See Also

Reference

Part Class
Part Members