Abstract base class for ContentControls that can be used
to display IModelItems like INode, ILabel, etc. in a
CanvasControl.
Namespace: yWorks.yFiles.UI.DrawingAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
[TemplateVisualStateAttribute(Name = "ItemHighlighted", GroupName = "ItemHighlightStates")] [TemplateVisualStateAttribute(Name = "ItemSelected", GroupName = "ItemSelectionStates")] [TemplateVisualStateAttribute(Name = "ItemUnselected", GroupName = "ItemSelectionStates")] [TemplateVisualStateAttribute(Name = "ItemFocused", GroupName = "ItemFocusStates")] [TemplateVisualStateAttribute(Name = "ItemUnhighlighted", GroupName = "ItemHighlightStates")] [TemplateVisualStateAttribute(Name = "ItemUnfocused", GroupName = "ItemFocusStates")] [TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "MouseStates")] [TemplateVisualStateAttribute(Name = "MouseOutside", GroupName = "MouseStates")] public abstract class GraphItemControlBase<TModelItem> : ContentControl where TModelItem : class, IModelItem |
| Visual Basic |
|---|
<TemplateVisualStateAttribute(Name := "ItemHighlighted", GroupName := "ItemHighlightStates")> _ <TemplateVisualStateAttribute(Name := "ItemSelected", GroupName := "ItemSelectionStates")> _ <TemplateVisualStateAttribute(Name := "ItemUnselected", GroupName := "ItemSelectionStates")> _ <TemplateVisualStateAttribute(Name := "ItemFocused", GroupName := "ItemFocusStates")> _ <TemplateVisualStateAttribute(Name := "ItemUnhighlighted", GroupName := "ItemHighlightStates")> _ <TemplateVisualStateAttribute(Name := "ItemUnfocused", GroupName := "ItemFocusStates")> _ <TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "MouseStates")> _ <TemplateVisualStateAttribute(Name := "MouseOutside", GroupName := "MouseStates")> _ Public MustInherit Class GraphItemControlBase(Of TModelItem As {Class, IModelItem}) _ Inherits ContentControl |
Type Parameters
- TModelItem
- The type of the model item.
Remarks
Non-abstract subclasses of this control are used by INodeStyle implementations and the like
for the visualization of the rendering.
Inheritance Hierarchy
System..::..Object
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
System.Windows.Controls..::..ContentControl
yWorks.yFiles.UI.Drawing..::..GraphItemControlBase<(Of <(<'TModelItem>)>)>
yWorks.yFiles.UI.Drawing..::..EdgeSegmentControl
yWorks.yFiles.UI.Drawing..::..LabelControl
yWorks.yFiles.UI.Drawing..::..NodeControl
yWorks.yFiles.UI.Drawing..::..PortControl
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
System.Windows.Controls..::..ContentControl
yWorks.yFiles.UI.Drawing..::..GraphItemControlBase<(Of <(<'TModelItem>)>)>
yWorks.yFiles.UI.Drawing..::..EdgeSegmentControl
yWorks.yFiles.UI.Drawing..::..LabelControl
yWorks.yFiles.UI.Drawing..::..NodeControl
yWorks.yFiles.UI.Drawing..::..PortControl