Search
Palette Members
Constructors Fields Properties Methods Events
 


Represents a tool palette control that displays DiagramItem objects grouped into categories. Items from the palette can be added to a diagram by drag-and-drop.

The following tables list the members exposed by the Palette type.

 Public Constructors

  Name Description

Palette

Initializes a new instance of the Palette class.

 Public Fields

  Name Description

AllowMultipleExpandsProperty

Identifies the AllowMultipleExpands dependency property.

AutoConnectDistanceProperty

Identifies the AutoConnectDistance dependency property.

AutoConnectLinksProperty

Identifies the AutoConnectLinks dependency property.

CategoriesProperty

Identifies the Categories dependency property.

ExpanderIconAlignmentProperty

Identifies the ExpanderIconAlignment dependency property.

IconSizeProperty

Identifies the IconSize dependency property.

ItemsSourceProperty

Identifies the ItemsSource dependency property.

LinkSelectedEvent

Identifies the LinkSelected routed event.

NewInstanceSizeProperty

Identifies the NewInstanceSize dependency property.

NodeSelectedEvent

Identifies the NodeSelected routed event.

 Public Properties

  Name Description

AllowMultipleExpands

Gets or sets a value indicating whether more than one category can be expanded at a time.

AutoConnectDistance

Gets or sets the maximum distance within which a link dropped from the palette will attempt to auto-connect to a nearby node.

AutoConnectLinks

Gets or sets a value indicating whether links should be automatically connected to nearby nodes when dropped from the palette.

Categories

Gets the collection of categories in the palette.

ExpanderIconAlignment

Gets or sets the alignment of the expand/collapse icon in the category headers.

IconSize

Gets or sets the size of the icons displayed in the palette's item list.

ItemsSource

Gets or sets a collection used to generate the content of the Palette.

NewInstanceSize

Gets or sets the default size of items created by drag-and-drop from this palette onto a diagram.

 Public Methods

  Name Description

AddCategory

Adds a new category to the palette.

AddItem

Overloaded. Adds a diagram item to the specified category.

ClearAll

Removes all categories and items from the palette.

CollapseCategory

Overloaded. Collapses the specified category.

ExpandCategory

Overloaded. Expands the specified category.

RemoveCategory

Overloaded. Removes a category from the palette.

RemoveItem

Removes a diagram item from the palette.

ToggleCategory

Toggles the expanded/collapsed state of the category with the specified title.

 Public Events

  Name Description

LinkSelected

Raised when a link is selected from the palette.

NodeSelected

Raised when a node is selected from the palette.

 See Also