Returns the Style associated with the first criterion to match the item.

Namespace:  Mindscape.WpfDiagramming.Foundation
Assembly:  Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
protected override Style SelectStyleCore(
	Object item,
	DependencyObject container
)
Visual Basic (Declaration)
Protected Overrides Function SelectStyleCore ( _
	item As Object, _
	container As DependencyObject _
) As Style

Parameters

item
Type: System..::.Object
The item for which to select the style.
container
Type: System.Windows..::.DependencyObject
The data-bound object.

Return Value

The template from the first matching entry in the Styles list if any; otherwise the DefaultStyle.

See Also