Northwoods.GoSilverlight 1.2.2 Assembly
GroupTemplateDictionary Property
See Also  Send Feedback
Northwoods.GoXam Namespace > Diagram Class : GroupTemplateDictionary Property

Gets or sets a DataTemplateDictionary that determines the appearance of all Groups.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Appearance")>
Public Property GroupTemplateDictionary As DataTemplateDictionary
C# 
[CategoryAttribute("Appearance")]
public DataTemplateDictionary GroupTemplateDictionary {get; set;}

Property Value

The default value is null, but the default style for Diagram will set this to a shared DataTemplateDictionary with reasonable (but minimal) data templates for all predefined categories.

Remarks

This is used by PartManager.AddNodeForData. Many data templates expand into something containing a GroupPanel.

The dictionary is keyed by the group's Part.Category. The value of Diagram.GroupTemplate takes precedence over any entry in this dictionary with the key an empty string, "", which is the default category. If Diagram.GroupTemplate is null, you should be sure to have a data template in this dictionary for the default category, "". One way of doing that is by setting the Default property.

Requirements

See Also

© 2010 All Rights Reserved.