GoXam for WPF v3
FindCategoryForLink Method (PartManager)
Northwoods.GoXam Namespace > PartManager Class : FindCategoryForLink Method
if the model is an Northwoods.GoXam.Model.ILinksModel, this is the link data; otherwise this is a PartManager.VirtualLinkData
Determine the category for the link, to be able to decide between different templates for the Link.
Syntax
protected virtual string FindCategoryForLink( 
   object linkdata,
   IDiagramModel model
)

Parameters

linkdata
if the model is an Northwoods.GoXam.Model.ILinksModel, this is the link data; otherwise this is a PartManager.VirtualLinkData
model

Return Value

If there is no category associated with the link data, this uses the category of the "from" node data if it is not an empty string, or else tries to use the category of the "to" node data. The default category is the empty string.
Remarks
The result is used in a call to FindTemplateForLink.
See Also

Reference

PartManager Class
PartManager Members