GoXam for WPF v3
FindTemplateForLink Method
Northwoods.GoXam Namespace > PartManager Class : FindTemplateForLink Method
Given a category and the link data, find a DataTemplate to use in making the Link.
Syntax
protected virtual DataTemplate FindTemplateForLink( 
   object linkdata,
   IDiagramModel model,
   string category
)

Parameters

linkdata
model
category

Return Value

a DataTemplate taken from either LinkTemplate or LinkTemplateDictionary, or null if no template is found
Remarks

For the default category (the empty string ""), this uses LinkTemplate if it is non-null, or else the default entry ("") in the LinkTemplateDictionary if there is a dictionary. For any other category, this looks up the category in the LinkTemplateDictionary if there is a dictionary, and if that fails it uses LinkTemplate or the default entry ("") in the LinkTemplateDictionary. This may return null if no appropriate template is found for the category. The result is used in a call to MakeLinkForData.

You may wish to override this method to customize the selection of the template based on the link data.

See Also

Reference

PartManager Class
PartManager Members