Table of Contents

Class DiagramControl

Namespace
Northwoods.Go.Avalonia
Assembly
Northwoods.GoDiagram.Avalonia.dll

A Control that provides display and editing of Diagrams.

public class DiagramControl : TemplatedControl, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, IInputElement, IDataTemplateHost, INamed, ISetterValue
Inheritance
AvaloniaObject
Animatable
StyledElement
Visual
Layoutable
Interactive
InputElement
Control
TemplatedControl
DiagramControl
Implements
IDataContextProvider
ILogical
IThemeVariantHost
IResourceHost
IResourceNode
IStyleHost
ISetLogicalParent
ISetInheritanceParent
IStyleable
IInputElement
IDataTemplateHost
INamed
ISetterValue
Derived
Inherited Members
TemplatedControl.BackgroundProperty
TemplatedControl.BorderBrushProperty
TemplatedControl.BorderThicknessProperty
TemplatedControl.CornerRadiusProperty
TemplatedControl.FontFamilyProperty
TemplatedControl.FontSizeProperty
TemplatedControl.FontStyleProperty
TemplatedControl.FontWeightProperty
TemplatedControl.FontStretchProperty
TemplatedControl.ForegroundProperty
TemplatedControl.PaddingProperty
TemplatedControl.TemplateProperty
TemplatedControl.IsTemplateFocusTargetProperty
TemplatedControl.TemplateAppliedEvent
TemplatedControl.GetIsTemplateFocusTarget(Control)
TemplatedControl.ApplyTemplate()
TemplatedControl.GetTemplateFocusTarget()
TemplatedControl.OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)
TemplatedControl.OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)
TemplatedControl.OnApplyTemplate(TemplateAppliedEventArgs)
TemplatedControl.OnTemplateChanged(AvaloniaPropertyChangedEventArgs)
TemplatedControl.Background
TemplatedControl.BorderBrush
TemplatedControl.BorderThickness
TemplatedControl.CornerRadius
TemplatedControl.FontFamily
TemplatedControl.FontSize
TemplatedControl.FontStyle
TemplatedControl.FontWeight
TemplatedControl.FontStretch
TemplatedControl.Foreground
TemplatedControl.Padding
TemplatedControl.Template
TemplatedControl.TemplateApplied
Control.FocusAdornerProperty
Control.TagProperty
Control.ContextMenuProperty
Control.ContextFlyoutProperty
Control.RequestBringIntoViewEvent
Control.ContextRequestedEvent
Control.LoadedEvent
Control.UnloadedEvent
Control.SizeChangedEvent
Control.OnLoaded(RoutedEventArgs)
Control.OnUnloaded(RoutedEventArgs)
Control.OnSizeChanged(SizeChangedEventArgs)
Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs)
Control.OnDetachedFromVisualTreeCore(VisualTreeAttachmentEventArgs)
Control.OnGotFocus(GotFocusEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.OnCreateAutomationPeer()
Control.OnPointerReleased(PointerReleasedEventArgs)
Control.OnKeyUp(KeyEventArgs)
Control.OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Control.FocusAdorner
Control.DataTemplates
Control.ContextMenu
Control.ContextFlyout
Control.IsLoaded
Control.Tag
Control.ContextRequested
Control.Loaded
Control.Unloaded
Control.SizeChanged
InputElement.FocusableProperty
InputElement.IsEffectivelyEnabledProperty
InputElement.CursorProperty
InputElement.IsKeyboardFocusWithinProperty
InputElement.IsFocusedProperty
InputElement.IsHitTestVisibleProperty
InputElement.IsPointerOverProperty
InputElement.IsTabStopProperty
InputElement.GotFocusEvent
InputElement.LostFocusEvent
InputElement.KeyDownEvent
InputElement.KeyUpEvent
InputElement.TabIndexProperty
InputElement.TextInputEvent
InputElement.TextInputMethodClientRequestedEvent
InputElement.PointerEnteredEvent
InputElement.PointerExitedEvent
InputElement.PointerMovedEvent
InputElement.PointerPressedEvent
InputElement.PointerReleasedEvent
InputElement.PointerCaptureLostEvent
InputElement.PointerWheelChangedEvent
InputElement.TappedEvent
InputElement.HoldingEvent
InputElement.DoubleTappedEvent
InputElement.Focus(NavigationMethod, KeyModifiers)
InputElement.OnKeyDown(KeyEventArgs)
InputElement.OnTextInput(TextInputEventArgs)
InputElement.OnPointerEntered(PointerEventArgs)
InputElement.OnPointerExited(PointerEventArgs)
InputElement.OnPointerMoved(PointerEventArgs)
InputElement.OnPointerPressed(PointerPressedEventArgs)
InputElement.OnPointerCaptureLost(PointerCaptureLostEventArgs)
InputElement.OnPointerWheelChanged(PointerWheelEventArgs)
InputElement.UpdateIsEffectivelyEnabled()
InputElement.Focusable
InputElement.Cursor
InputElement.IsKeyboardFocusWithin
InputElement.IsFocused
InputElement.IsHitTestVisible
InputElement.IsPointerOver
InputElement.IsTabStop
InputElement.IsEffectivelyEnabled
InputElement.TabIndex
InputElement.KeyBindings
InputElement.IsEnabledCore
InputElement.GestureRecognizers
InputElement.GotFocus
InputElement.LostFocus
InputElement.KeyDown
InputElement.KeyUp
InputElement.TextInput
InputElement.TextInputMethodClientRequested
InputElement.PointerEntered
InputElement.PointerExited
InputElement.PointerMoved
InputElement.PointerPressed
InputElement.PointerReleased
InputElement.PointerCaptureLost
InputElement.PointerWheelChanged
InputElement.Tapped
InputElement.Holding
InputElement.DoubleTapped
Interactive.RaiseEvent(RoutedEventArgs)
Interactive.BuildEventRoute(RoutedEvent)
Layoutable.DesiredSizeProperty
Layoutable.WidthProperty
Layoutable.HeightProperty
Layoutable.MinWidthProperty
Layoutable.MaxWidthProperty
Layoutable.MinHeightProperty
Layoutable.MaxHeightProperty
Layoutable.MarginProperty
Layoutable.HorizontalAlignmentProperty
Layoutable.VerticalAlignmentProperty
Layoutable.UseLayoutRoundingProperty
Layoutable.UpdateLayout()
Layoutable.Measure(Size)
Layoutable.Arrange(Rect)
Layoutable.InvalidateMeasure()
Layoutable.InvalidateArrange()
Layoutable.AffectsMeasure<T>(params AvaloniaProperty[])
Layoutable.AffectsArrange<T>(params AvaloniaProperty[])
Layoutable.MeasureCore(Size)
Layoutable.MeasureOverride(Size)
Layoutable.ArrangeCore(Rect)
Layoutable.ArrangeOverride(Size)
Layoutable.OnMeasureInvalidated()
Layoutable.OnVisualParentChanged(Visual, Visual)
Layoutable.Width
Layoutable.Height
Layoutable.MinWidth
Layoutable.MaxWidth
Layoutable.MinHeight
Layoutable.MaxHeight
Layoutable.Margin
Layoutable.HorizontalAlignment
Layoutable.VerticalAlignment
Layoutable.DesiredSize
Layoutable.IsMeasureValid
Layoutable.IsArrangeValid
Layoutable.UseLayoutRounding
Layoutable.EffectiveViewportChanged
Layoutable.LayoutUpdated
Visual.BoundsProperty
Visual.ClipToBoundsProperty
Visual.ClipProperty
Visual.IsVisibleProperty
Visual.OpacityProperty
Visual.OpacityMaskProperty
Visual.EffectProperty
Visual.HasMirrorTransformProperty
Visual.RenderTransformProperty
Visual.RenderTransformOriginProperty
Visual.FlowDirectionProperty
Visual.VisualParentProperty
Visual.ZIndexProperty
Visual.GetFlowDirection(Visual)
Visual.SetFlowDirection(Visual, FlowDirection)
Visual.InvalidateVisual()
Visual.Render(DrawingContext)
Visual.AffectsRender<T>(params AvaloniaProperty[])
Visual.OnAttachedToVisualTree(VisualTreeAttachmentEventArgs)
Visual.OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs)
Visual.InvalidateMirrorTransform()
Visual.Bounds
Visual.ClipToBounds
Visual.Clip
Visual.IsEffectivelyVisible
Visual.IsVisible
Visual.Opacity
Visual.OpacityMask
Visual.Effect
Visual.HasMirrorTransform
Visual.RenderTransform
Visual.RenderTransformOrigin
Visual.FlowDirection
Visual.ZIndex
Visual.VisualChildren
Visual.VisualRoot
Visual.BypassFlowDirectionPolicies
Visual.AttachedToVisualTree
Visual.DetachedFromVisualTree
StyledElement.DataContextProperty
StyledElement.NameProperty
StyledElement.ParentProperty
StyledElement.TemplatedParentProperty
StyledElement.ThemeProperty
StyledElement.BeginInit()
StyledElement.EndInit()
StyledElement.ApplyStyling()
StyledElement.InitializeIfNeeded()
StyledElement.OnDataContextBeginUpdate()
StyledElement.OnDataContextEndUpdate()
StyledElement.OnInitialized()
StyledElement.Name
StyledElement.Classes
StyledElement.DataContext
StyledElement.IsInitialized
StyledElement.Styles
StyledElement.StyleKey
StyledElement.Resources
StyledElement.TemplatedParent
StyledElement.Theme
StyledElement.LogicalChildren
StyledElement.PseudoClasses
StyledElement.StyleKeyOverride
StyledElement.Parent
StyledElement.ActualThemeVariant
StyledElement.AttachedToLogicalTree
StyledElement.DetachedFromLogicalTree
StyledElement.DataContextChanged
StyledElement.Initialized
StyledElement.ResourcesChanged
StyledElement.ActualThemeVariantChanged
Animatable.TransitionsProperty
Animatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)
Animatable.Transitions
AvaloniaObject.CheckAccess()
AvaloniaObject.VerifyAccess()
AvaloniaObject.ClearValue(AvaloniaProperty)
AvaloniaObject.ClearValue<T>(AvaloniaProperty<T>)
AvaloniaObject.ClearValue<T>(StyledProperty<T>)
AvaloniaObject.ClearValue<T>(DirectPropertyBase<T>)
AvaloniaObject.GetHashCode()
AvaloniaObject.GetValue(AvaloniaProperty)
AvaloniaObject.GetValue<T>(StyledProperty<T>)
AvaloniaObject.GetValue<T>(DirectPropertyBase<T>)
AvaloniaObject.GetBaseValue<T>(StyledProperty<T>)
AvaloniaObject.IsAnimating(AvaloniaProperty)
AvaloniaObject.IsSet(AvaloniaProperty)
AvaloniaObject.SetValue<T>(StyledProperty<T>, T, BindingPriority)
AvaloniaObject.SetValue<T>(DirectPropertyBase<T>, T)
AvaloniaObject.SetCurrentValue<T>(StyledProperty<T>, T)
AvaloniaObject.CoerceValue(AvaloniaProperty)
AvaloniaObject.RaisePropertyChanged<T>(DirectPropertyBase<T>, T, T)
AvaloniaObject.SetAndRaise<T>(DirectPropertyBase<T>, ref T, T)
AvaloniaObject.InheritanceParent
AvaloniaObject.this[AvaloniaProperty]
AvaloniaObject.this[IndexerDescriptor]
AvaloniaObject.PropertyChanged

Constructors

DiagramControl()

Constructs a new DiagramControl.

public DiagramControl()

Fields

AllowClipboardProperty

Identifies the AllowClipboard direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowClipboardProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowCopyProperty

Identifies the AllowCopy direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowCopyProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowDeleteProperty

Identifies the AllowDelete direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowDeleteProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowDragOutProperty

Identifies the AllowDragOut direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowDragOutProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowDropProperty

Identifies the AllowDrop direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowDropProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowGroupProperty

Identifies the AllowGroup direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowGroupProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowHorizontalScrollProperty

Identifies the AllowHorizontalScroll direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowHorizontalScrollProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowInsertProperty

Identifies the AllowInsert direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowInsertProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowLinkProperty

Identifies the AllowLink direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowLinkProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowMoveProperty

Identifies the AllowMove direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowMoveProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowRelinkProperty

Identifies the AllowRelink direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowRelinkProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowReshapeProperty

Identifies the AllowReshape direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowReshapeProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowResizeProperty

Identifies the AllowResize direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowResizeProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowRotateProperty

Identifies the AllowRotate direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowRotateProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowSelectProperty

Identifies the AllowSelect direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowSelectProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowTextEditProperty

Identifies the AllowTextEdit direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowTextEditProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowUndoProperty

Identifies the AllowUndo direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowUndoProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowUngroupProperty

Identifies the AllowUngroup direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowUngroupProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowVerticalScrollProperty

Identifies the AllowVerticalScroll direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowVerticalScrollProperty

Field Value

DirectProperty<DiagramControl, bool>

AllowZoomProperty

Identifies the AllowZoom direct property.

public static readonly DirectProperty<DiagramControl, bool> AllowZoomProperty

Field Value

DirectProperty<DiagramControl, bool>

HasHorizontalScrollbarProperty

Identifies the HasHorizontalScrollbar direct property.

public static readonly DirectProperty<DiagramControl, bool> HasHorizontalScrollbarProperty

Field Value

DirectProperty<DiagramControl, bool>

HasVerticalScrollbarProperty

Identifies the HasVerticalScrollbar direct property.

public static readonly DirectProperty<DiagramControl, bool> HasVerticalScrollbarProperty

Field Value

DirectProperty<DiagramControl, bool>

IsEnabledProperty

Identifies the IsEnabled direct property.

public static readonly DirectProperty<DiagramControl, bool> IsEnabledProperty

Field Value

DirectProperty<DiagramControl, bool>

IsReadOnlyProperty

Identifies the IsReadOnly direct property.

public static readonly DirectProperty<DiagramControl, bool> IsReadOnlyProperty

Field Value

DirectProperty<DiagramControl, bool>

Properties

AllowClipboard

Pass-through property for AllowClipboard.

public bool AllowClipboard { get; set; }

Property Value

bool

AllowCopy

Pass-through property for AllowCopy.

public bool AllowCopy { get; set; }

Property Value

bool

AllowDelete

Pass-through property for AllowDelete.

public bool AllowDelete { get; set; }

Property Value

bool

AllowDragOut

Pass-through property for AllowDragOut.

public bool AllowDragOut { get; set; }

Property Value

bool

AllowDrop

Pass-through property for AllowDrop.

public bool AllowDrop { get; set; }

Property Value

bool

AllowGroup

Pass-through property for AllowGroup.

public bool AllowGroup { get; set; }

Property Value

bool

AllowHorizontalScroll

Pass-through property for AllowHorizontalScroll.

public bool AllowHorizontalScroll { get; set; }

Property Value

bool

AllowInsert

Pass-through property for AllowInsert.

public bool AllowInsert { get; set; }

Property Value

bool

Pass-through property for AllowLink.

public bool AllowLink { get; set; }

Property Value

bool

AllowMove

Pass-through property for AllowMove.

public bool AllowMove { get; set; }

Property Value

bool

Pass-through property for AllowRelink.

public bool AllowRelink { get; set; }

Property Value

bool

AllowReshape

Pass-through property for AllowReshape.

public bool AllowReshape { get; set; }

Property Value

bool

AllowResize

Pass-through property for AllowResize.

public bool AllowResize { get; set; }

Property Value

bool

AllowRotate

Pass-through property for AllowRotate.

public bool AllowRotate { get; set; }

Property Value

bool

AllowSelect

Pass-through property for AllowSelect.

public bool AllowSelect { get; set; }

Property Value

bool

AllowTextEdit

Pass-through property for AllowTextEdit.

public bool AllowTextEdit { get; set; }

Property Value

bool

AllowUndo

Pass-through property for AllowUndo.

public bool AllowUndo { get; set; }

Property Value

bool

AllowUngroup

Pass-through property for AllowUngroup.

public bool AllowUngroup { get; set; }

Property Value

bool

AllowVerticalScroll

Pass-through property for AllowVerticalScroll.

public bool AllowVerticalScroll { get; set; }

Property Value

bool

AllowZoom

Pass-through property for AllowZoom.

public bool AllowZoom { get; set; }

Property Value

bool

HasHorizontalScrollbar

Pass-through property for HasHorizontalScrollbar.

public bool HasHorizontalScrollbar { get; set; }

Property Value

bool

HasVerticalScrollbar

Pass-through property for HasVerticalScrollbar.

public bool HasVerticalScrollbar { get; set; }

Property Value

bool

IsEnabled

Pass-through property for IsEnabled.

public bool IsEnabled { get; set; }

Property Value

bool

IsReadOnly

Pass-through property for IsReadOnly.

public bool IsReadOnly { get; set; }

Property Value

bool

Methods

Cleanup()

Clean up various event listeners and resources associated with this DiagramControl and its Diagram.

The DiagramControl will no longer be usable after calling this, so only call this method if you are sure you're done with it.

public void Cleanup()

Remarks

This cleanup normally occurs when the TopLevel holding the control is closed.