RadDiagramItem
Abstract base implementation of the IDiagramItem interface.
Definition
Namespace:Telerik.Windows.Controls.Diagrams
Assembly:Telerik.Windows.Controls.Diagrams.dll
Syntax:
public abstract class RadDiagramItem : ContentControl, IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible
Inheritance: objectRadDiagramItem
Derived Classes:
Implements:
Constructors
Initializes a new instance of the RadDiagramItem class.
protected RadDiagramItem()
Fields
AllowCopyProperty
DependencyProperty
Identifies the AllowCopy dependency property.
public static readonly DependencyProperty AllowCopyProperty
AllowCutProperty
DependencyProperty
Identifies the AllowCut dependency property.
public static readonly DependencyProperty AllowCutProperty
AllowDeleteProperty
DependencyProperty
Identifies the AllowDelete dependency property.
public static readonly DependencyProperty AllowDeleteProperty
AllowPasteProperty
DependencyProperty
Identifies the AllowPaste dependency property.
public static readonly DependencyProperty AllowPasteProperty
BeginEditEvent
RoutedEvent
Identifies the BeginEdit routed event.
public static readonly RoutedEvent BeginEditEvent
EditTemplateProperty
DependencyProperty
Identifies the EditTemplate dependency property.
public static readonly DependencyProperty EditTemplateProperty
EndEditEvent
RoutedEvent
Identifies the EndEdit routed event.
public static readonly RoutedEvent EndEditEvent
GroupProperty
DependencyProperty
Identifies the Group dependency property.
public static readonly DependencyProperty GroupProperty
IsConnectorsManipulationEnabledProperty
DependencyProperty
Identifies the IsConnectorsManipulationEnabled dependency property.
public static readonly DependencyProperty IsConnectorsManipulationEnabledProperty
IsDraggingEnabledProperty
DependencyProperty
Identifies the IsDraggingEnabled dependency property.
public static readonly DependencyProperty IsDraggingEnabledProperty
IsEditableProperty
DependencyProperty
Identifies the IsEditable dependency property.
public static readonly DependencyProperty IsEditableProperty
IsInEditModeProperty
DependencyProperty
Identifies the IsInEditMode dependency property.
public static readonly DependencyProperty IsInEditModeProperty
IsManipulationAdornerVisibleProperty
DependencyProperty
Identifies the IsManipulationAdornerVisible dependency property.
public static readonly DependencyProperty IsManipulationAdornerVisibleProperty
IsResizingEnabledProperty
DependencyProperty
Identifies the IsResizingEnabled dependency property.
public static readonly DependencyProperty IsResizingEnabledProperty
IsRotationEnabledProperty
DependencyProperty
Identifies the IsRotationEnabled dependency property.
public static readonly DependencyProperty IsRotationEnabledProperty
IsSelectedProperty
DependencyProperty
Identifies the IsSelected dependency property.
public static readonly DependencyProperty IsSelectedProperty
PositionProperty
DependencyProperty
Identifies the Position dependency property.
public static readonly DependencyProperty PositionProperty
PreviewBeginEditEvent
RoutedEvent
Identifies the PreviewBeginEdit routed event.
public static readonly RoutedEvent PreviewBeginEditEvent
PreviewEndEditEvent
RoutedEvent
Identifies the PreviewEndEdit routed event.
public static readonly RoutedEvent PreviewEndEditEvent
StrokeDashArrayProperty
DependencyProperty
Identifies the StrokeDashArray dependency property.
public static readonly DependencyProperty StrokeDashArrayProperty
StrokeProperty
DependencyProperty
Identifies the Stroke dependency property.
public static readonly DependencyProperty StrokeProperty
StrokeThicknessProperty
DependencyProperty
Identifies the StrokeThickness dependency property.
public static readonly DependencyProperty StrokeThicknessProperty
ZIndexProperty
DependencyProperty
Identifies the ZIndex dependency property.
public static readonly DependencyProperty ZIndexProperty
Properties
ActualSize
Size
The actual size of the item.
protected virtual Size ActualSize { get; }
Gets or sets a value indicating whether copying is allowed.
public bool AllowCopy { get; set; }
True if copying is allowed; otherwise, false.
Implements:
Gets or sets a value indicating whether cutting is allowed.
public bool AllowCut { get; set; }
True if cutting is allowed; otherwise, false.
Implements:
Gets or sets a value indicating whether deleting is allowed.
public bool AllowDelete { get; set; }
True if deleting is allowed; otherwise, false.
Implements:
Gets or sets a value indicating whether pasting is allowed.
public bool AllowPaste { get; set; }
True if pasting is allowed; otherwise, false.
Implements:
Bounds
Rect
Gets the bounds.
public virtual Rect Bounds { get; }
The bounds.
Implements:
Gets the owning diagram of this instance.
protected IGraphInternal Diagram { get; }
EditTemplate
DataTemplate
Gets or sets the edit template.
public DataTemplate EditTemplate { get; set; }
The edit template.
Gets the unique identifier of this entity.
public string Id { get; }
An identifier for this entity.
Implements:
Gets or sets a value indicating whether manipulation on the connectors is enabled.
public bool IsConnectorsManipulationEnabled { get; set; }
True if manipulation on connectors is enabled; otherwise, false.
Implements:
Gets or sets a value indicating whether dragging is enabled.
public bool IsDraggingEnabled { get; set; }
True if dragging is enabled; otherwise, false.
Implements:
Gets or sets whether this item is dynamically generated.
public bool IsDynamic { get; set; }
If true then this item will not be serialized as part of the diagram.
Implements:
In some applications or embeddings of RadDiagram (e.g. workflows) there are shapes or connections
which are generated as part of some layout or organization. In those cases it doesn't make sense to serialize
the elements which are automatically generated as part of the application. By setting this property to true the serialization pipeline will omit the element.
Gets or sets a value indicating whether editing is enabled on this item.
public bool IsEditable { get; set; }
True if editing is enabled; otherwise, false.
Implements:
Note that the similar higher-level IsEditable can potentially overrule this setting.
Gets or sets a value indicating whether this instance is in edit mode.
public bool IsInEditMode { get; set; }
True if this instance is in edit mode; otherwise, false.
Implements:
Gets or sets a value indicating whether the manipulation adorner is visible.
public bool IsManipulationAdornerVisible { get; set; }
True if the manipulation adorner is visible; otherwise, false.
Implements:
Gets or sets a value indicating whether resizing is enabled.
public bool IsResizingEnabled { get; set; }
True if resizing is enabled; otherwise, false.
Implements:
Gets or sets a value indicating whether rotation is enabled.
public bool IsRotationEnabled { get; set; }
true if this rotation is enabled; otherwise, false.
Implements:
Gets or sets whether the diagram entity is selected.
public bool IsSelected { get; set; }
True if selected; otherwise, false.
Implements:
Gets a value indicating whether this instance is selected in group.
protected bool IsSelectedInGroup { get; set; }
True if this item is selected in group; otherwise, false.
Gets whether any service is manipulating at the moment.
protected bool IsServiceManipulation { get; }
Gets the parent container shape.
public IContainerShape ParentContainer { get; }
The parent container.
Implements:
Gets or sets the group.
public IGroup ParentGroup { get; set; }
The group.
Implements:
Position
Point
Gets or sets the position of the top left corner of the bounding rectangle of the item.
public Point Position { get; set; }
Implements:
Gets the service locator.
protected IGraphServiceLocator ServiceLocator { get; }
Stroke
Brush
Gets or sets the stroke of this item.
public Brush Stroke { get; set; }
The stroke.
StrokeDashArray
DoubleCollection
Gets or sets the stroke dash array of this item.
public DoubleCollection StrokeDashArray { get; set; }
The stroke dash array.
Gets or sets the stroke thickness of this item.
public double StrokeThickness { get; set; }
The stroke thickness.
Gets or sets the horizontal position of this item.
public double X { get; set; }
The x-coordinate.
Gets or sets the vertical position of this item.
public double Y { get; set; }
The y-coordinate.
Methods
Deserializes the serialization info in this diagram entity.
public virtual void Deserialize(SerializationInfo info)
A SerializationInfo instance.
Implements:
Initializes the specified service locator and parent graph.
protected virtual void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
The service locator.
graphIGraphInternalThe diagram control.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Creates a peer associated with this object.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
An instance of the .
Called when the group name changes.
protected virtual void OnGroupNameChanged()
Called when position changes.
protected virtual void OnPositionChanged(Point oldPosition, Point newPosition)
The old position.
newPositionPointThe new position.
Called when [position coerced].
protected virtual object OnPositionCoerced(Point position)
The position.
Returns:Called when a property value changed.
protected virtual void OnPropertyChanged(string propertyName)
Name of the property.
Called when the size changes.
protected virtual void OnSizeChanged(Size newSize, Size oldSize)
The new size.
oldSizeSizeThe old size.
Invoked when the StrokeThickness property has changed.
protected virtual void OnStrokeThicknessChanged()
Refreshes the is selected in group property.
protected virtual void RefreshIsSelectedInGroup()
Serializes this instance.
Updates the visual states.
protected virtual void UpdateVisualStates()
Events
Occurs when the editing begins.
public event RadRoutedEventHandler BeginEdit
Occurs when the editing ends.
public event EventHandler<RadRoutedEditEventArgs> EndEdit
Occurs when [group changed].
public event EventHandler<PropertyEventArgs<IGroup>> ParentGroupChanged
Implements:
Occurs before the editing starts.
public event RadRoutedEventHandler PreviewBeginEdit
Occurs before the editing ends.
public event EventHandler<RadRoutedEditEventArgs> PreviewEndEdit
Occurs when a property value changes.
public event EventHandler<PropertyEventArgs> PropertyChanged
Implements: