Class RadDiagramItem
Abstract base implementation of the IDiagram
Inheritance
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
Constructors
RadDiagramItem()
Fields
AllowCopyProperty
Identifies the AllowCopy dependency property.
Declaration
public static readonly DependencyProperty AllowCopyProperty
Field Value
System.
|
AllowCutProperty
Identifies the AllowCut dependency property.
Declaration
public static readonly DependencyProperty AllowCutProperty
Field Value
System.
|
AllowDeleteProperty
Identifies the AllowDelete dependency property.
Declaration
public static readonly DependencyProperty AllowDeleteProperty
Field Value
System.
|
AllowPasteProperty
Identifies the AllowPaste dependency property.
Declaration
public static readonly DependencyProperty AllowPasteProperty
Field Value
System.
|
BeginEditEvent
Identifies the BeginEdit routed event.
Declaration
public static readonly RoutedEvent BeginEditEvent
Field Value
System.
|
EditTemplateProperty
Identifies the EditTemplate dependency property.
Declaration
public static readonly DependencyProperty EditTemplateProperty
Field Value
System.
|
EndEditEvent
Identifies the EndEdit routed event.
Declaration
public static readonly RoutedEvent EndEditEvent
Field Value
System.
|
GroupProperty
Identifies the Group dependency property.
Declaration
public static readonly DependencyProperty GroupProperty
Field Value
System.
|
IsConnectorsManipulationEnabledProperty
Identifies the IsConnectorsManipulationEnabled dependency property.
Declaration
public static readonly DependencyProperty IsConnectorsManipulationEnabledProperty
Field Value
System.
|
IsDraggingEnabledProperty
Identifies the IsDraggingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsDraggingEnabledProperty
Field Value
System.
|
IsEditableProperty
Identifies the IsEditable dependency property.
Declaration
public static readonly DependencyProperty IsEditableProperty
Field Value
System.
|
IsInEditModeProperty
Identifies the IsInEditMode dependency property.
Declaration
public static readonly DependencyProperty IsInEditModeProperty
Field Value
System.
|
IsManipulationAdornerVisibleProperty
Identifies the IsManipulationAdornerVisible dependency property.
Declaration
public static readonly DependencyProperty IsManipulationAdornerVisibleProperty
Field Value
System.
|
IsResizingEnabledProperty
Identifies the IsResizingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsResizingEnabledProperty
Field Value
System.
|
IsRotationEnabledProperty
Identifies the IsRotationEnabled dependency property.
Declaration
public static readonly DependencyProperty IsRotationEnabledProperty
Field Value
System.
|
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.
|
PositionProperty
Identifies the Position dependency property.
Declaration
public static readonly DependencyProperty PositionProperty
Field Value
System.
|
PreviewBeginEditEvent
Identifies the PreviewBeginEdit routed event.
Declaration
public static readonly RoutedEvent PreviewBeginEditEvent
Field Value
System.
|
PreviewEndEditEvent
Identifies the PreviewEndEdit routed event.
Declaration
public static readonly RoutedEvent PreviewEndEditEvent
Field Value
System.
|
StrokeDashArrayProperty
Identifies the StrokeDashArray dependency property.
Declaration
public static readonly DependencyProperty StrokeDashArrayProperty
Field Value
System.
|
StrokeProperty
Identifies the Stroke dependency property.
Declaration
public static readonly DependencyProperty StrokeProperty
Field Value
System.
|
StrokeThicknessProperty
Identifies the StrokeThickness dependency property.
Declaration
public static readonly DependencyProperty StrokeThicknessProperty
Field Value
System.
|
ZIndexProperty
Identifies the ZIndex dependency property.
Declaration
public static readonly DependencyProperty ZIndexProperty
Field Value
System.
|
Properties
ActualSize
The actual size of the item.
Declaration
protected virtual Size ActualSize { get; }
Property Value
System.
|
AllowCopy
Gets or sets a value indicating whether copying is allowed.
Declaration
public bool AllowCopy { get; set; }
Property Value
System.
|
Implements
AllowCut
Gets or sets a value indicating whether cutting is allowed.
Declaration
public bool AllowCut { get; set; }
Property Value
System.
|
Implements
AllowDelete
Gets or sets a value indicating whether deleting is allowed.
Declaration
public bool AllowDelete { get; set; }
Property Value
System.
|
Implements
AllowPaste
Gets or sets a value indicating whether pasting is allowed.
Declaration
public bool AllowPaste { get; set; }
Property Value
System.
|
Implements
Bounds
Gets the bounds.
Declaration
public virtual Rect Bounds { get; }
Property Value
System. The bounds. |
Implements
Diagram
Gets the owning diagram of this instance.
Declaration
protected IGraphInternal Diagram { get; }
Property Value
EditTemplate
Gets or sets the edit template.
Declaration
public DataTemplate EditTemplate { get; set; }
Property Value
System. The edit template. |
Id
Gets the unique identifier of this entity.
Declaration
public string Id { get; }
Property Value
System. An identifier for this entity. |
Implements
IsConnectorsManipulationEnabled
Gets or sets a value indicating whether manipulation on the connectors is enabled.
Declaration
public bool IsConnectorsManipulationEnabled { get; set; }
Property Value
System.
|
Implements
IsDraggingEnabled
Gets or sets a value indicating whether dragging is enabled.
Declaration
public bool IsDraggingEnabled { get; set; }
Property Value
System.
|
Implements
IsDynamic
Gets or sets whether this item is dynamically generated.
Declaration
public bool IsDynamic { get; set; }
Property Value
System. If |
Implements
Remarks
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.
IsEditable
Gets or sets a value indicating whether editing is enabled on this item.
Declaration
public bool IsEditable { get; set; }
Property Value
System.
|
Implements
Remarks
Note that the similar higher-level Is
IsInEditMode
Gets or sets a value indicating whether this instance is in edit mode.
Declaration
public bool IsInEditMode { get; set; }
Property Value
System.
|
Implements
IsManipulationAdornerVisible
Gets or sets a value indicating whether the manipulation adorner is visible.
Declaration
public bool IsManipulationAdornerVisible { get; set; }
Property Value
System.
|
Implements
IsResizingEnabled
Gets or sets a value indicating whether resizing is enabled.
Declaration
public bool IsResizingEnabled { get; set; }
Property Value
System.
|
Implements
IsRotationEnabled
Gets or sets a value indicating whether rotation is enabled.
Declaration
public bool IsRotationEnabled { get; set; }
Property Value
System.
|
Implements
IsSelected
Gets or sets whether the diagram entity is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
System.
|
Implements
IsSelectedInGroup
Gets a value indicating whether this instance is selected in group.
Declaration
protected bool IsSelectedInGroup { get; set; }
Property Value
System.
|
IsServiceManipulation
Gets whether any service is manipulating at the moment.
Declaration
protected bool IsServiceManipulation { get; }
Property Value
System.
|
ParentContainer
Gets the parent container shape.
Declaration
public IContainerShape ParentContainer { get; }
Property Value
IContainer The parent container. |
Implements
ParentGroup
Gets or sets the group.
Declaration
public IGroup ParentGroup { get; set; }
Property Value
IGroup
The group. |
Implements
Position
Gets or sets the position of the top left corner of the bounding rectangle of the item.
Declaration
public Point Position { get; set; }
Property Value
System.
|
Implements
ServiceLocator
Gets the service locator.
Declaration
protected IGraphServiceLocator ServiceLocator { get; }
Property Value
Stroke
Gets or sets the stroke of this item.
Declaration
public Brush Stroke { get; set; }
Property Value
System. The stroke. |
StrokeDashArray
Gets or sets the stroke dash array of this item.
Declaration
public DoubleCollection StrokeDashArray { get; set; }
Property Value
System. The stroke dash array. |
StrokeThickness
Gets or sets the stroke thickness of this item.
Declaration
public double StrokeThickness { get; set; }
Property Value
System. The stroke thickness. |
X
Gets or sets the horizontal position of this item.
Declaration
public double X { get; set; }
Property Value
System. The x-coordinate. |
Y
Gets or sets the vertical position of this item.
Declaration
public double Y { get; set; }
Property Value
System. The y-coordinate. |
ZIndex
Gets or sets the ZIndex of this instance.
Declaration
public int ZIndex { get; set; }
Property Value
System.
|
Implements
Methods
add_BeginEdit(RadRoutedEventHandler)
Declaration
public void add_BeginEdit(RadRoutedEventHandler value)
Parameters
Rad
|
add_PreviewBeginEdit(RadRoutedEventHandler)
Declaration
public void add_PreviewBeginEdit(RadRoutedEventHandler value)
Parameters
Rad
|
Deserialize(SerializationInfo)
Deserializes the serialization info in this diagram entity.
Declaration
public virtual void Deserialize(SerializationInfo info)
Parameters
Serialization A Serialization |
Implements
Initialize(IGraphServiceLocator, IGraphInternal)
Initializes the specified service locator and parent graph.
Declaration
protected virtual void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
Parameters
IGraph The service locator. |
IGraph The diagram control. |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates a Telerik.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System. An instance of the Telerik. |
OnGroupNameChanged()
Called when the group name changes.
Declaration
protected virtual void OnGroupNameChanged()
OnIsConnectorsManipulationEnabledChanged(Boolean, Boolean)
Called when connectors manipulation changes.
Declaration
protected virtual void OnIsConnectorsManipulationEnabledChanged(bool newValue, bool oldValue)
Parameters
System. The new value. |
System. The old value. |
OnIsEditableChanged(Boolean, Boolean)
Called when IsEditable has changed.
Declaration
protected virtual void OnIsEditableChanged(bool oldIsEditable, bool isEditable)
Parameters
System. The old value of the property. |
System. The current value of the property. |
OnIsInEditModeChanged(Boolean, Boolean)
Called when IsInEditMode changes.
Declaration
protected virtual void OnIsInEditModeChanged(bool oldIsInEditMode, bool isInEditMode)
Parameters
System. The old value of the property. |
System. The current value of the property. |
OnIsSelectedChanged(Boolean, Boolean)
Called when the IsSelected property has changed.
Declaration
protected virtual void OnIsSelectedChanged(bool oldValue, bool newValue)
Parameters
System. The old value of the IsSelected property. |
System. The new value of the IsSelected property. |
OnPositionChanged(Point, Point)
Called when position changes.
Declaration
protected virtual void OnPositionChanged(Point oldPosition, Point newPosition)
Parameters
System. The old position. |
System. The new position. |
OnPositionCoerced(Point)
Called when [position coerced].
Declaration
protected virtual object OnPositionCoerced(Point position)
Parameters
System. The position. |
Returns
System.
|
OnPropertyChanged(String)
Called when a property value changed.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
System. Name of the property. |
OnSizeChanged(Size, Size)
Called when the size changes.
Declaration
protected virtual void OnSizeChanged(Size newSize, Size oldSize)
Parameters
System. The new size. |
System. The old size. |
OnStrokeThicknessChanged()
Invoked when the StrokeThickness property has changed.
Declaration
protected virtual void OnStrokeThicknessChanged()
OnZIndexChanged(Int32, Int32)
Called when the ZIndex changes.
Declaration
protected virtual void OnZIndexChanged(int newValue, int oldValue)
Parameters
System. The new value. |
System. The old value. |
RefreshIsSelectedInGroup()
Refreshes the is selected in group property.
Declaration
protected virtual void RefreshIsSelectedInGroup()
remove_BeginEdit(RadRoutedEventHandler)
Declaration
public void remove_BeginEdit(RadRoutedEventHandler value)
Parameters
Rad
|
remove_PreviewBeginEdit(RadRoutedEventHandler)
Declaration
public void remove_PreviewBeginEdit(RadRoutedEventHandler value)
Parameters
Rad
|
Serialize()
Serializes this instance.
Declaration
public virtual SerializationInfo Serialize()
Returns
Implements
UpdateVisualStates()
Updates the visual states.
Declaration
protected virtual void UpdateVisualStates()
Events
BeginEdit
Occurs when the editing begins.
Declaration
public event RadRoutedEventHandler BeginEdit
Event Type
EndEdit
Occurs when the editing ends.
Declaration
public event EventHandler<RadRoutedEditEventArgs> EndEdit
Event Type
System.
|
ParentGroupChanged
Occurs when [group changed].
Declaration
public event EventHandler<PropertyEventArgs<IGroup>> ParentGroupChanged
Event Type
System.
|
Implements
PreviewBeginEdit
Occurs before the editing starts.
Declaration
public event RadRoutedEventHandler PreviewBeginEdit
Event Type
PreviewEndEdit
Occurs before the editing ends.
Declaration
public event EventHandler<RadRoutedEditEventArgs> PreviewEndEdit
Event Type
System.
|
PropertyChanged
Occurs when a property value changes.
Declaration
public event EventHandler<PropertyEventArgs> PropertyChanged
Event Type
System.
|
Implements
Explicit Interface Implementations
ICollapsible.IsCollapsed
Gets or sets a value indicating whether this item is collapsed.
Declaration
bool ICollapsible.IsCollapsed { get; set; }
Returns
System.
|
Implements
IDiagramItem.get_Content()
Declaration
object IDiagramItem.get_Content()
Returns
System.
|
Implements
IDiagramItem.get_RenderTransformOrigin()
Declaration
Point IDiagramItem.get_RenderTransformOrigin()
Returns
System.
|
Implements
IDiagramItem.get_Visibility()
Declaration
Visibility IDiagramItem.get_Visibility()
Returns
System.
|
Implements
IDiagramItem.Initialize(IGraphServiceLocator, IGraphInternal)
Initializes the specified service locator.
Declaration
void IDiagramItem.Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
Parameters
IGraph The service locator. |
IGraph The diagram. |
Implements
IDiagramItem.set_Content(Object)
Declaration
void IDiagramItem.set_Content(object value)
Parameters
System.
|
Implements
IDiagramItem.set_IsEnabled(Boolean)
Declaration
void IDiagramItem.set_IsEnabled(bool value)
Parameters
System.
|
Implements
IDiagramItem.set_RenderTransformOrigin(Point)
Declaration
void IDiagramItem.set_RenderTransformOrigin(Point value)
Parameters
System.
|
Implements
IDiagramItem.set_Visibility(Visibility)
Declaration
void IDiagramItem.set_Visibility(Visibility value)
Parameters
System.
|
Implements
ISupportVirtualization.VirtualizationState
Get a value indicating item state regarding virtualization.
Declaration
ItemVisibility ISupportVirtualization.VirtualizationState { get; set; }