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
-
AvaloniaObjectAnimatableStyledElementVisualLayoutableInteractiveInputElementControlTemplatedControlDiagramControl
- Implements
-
IDataContextProviderILogicalIThemeVariantHostIResourceHostIResourceNodeIStyleHostISetLogicalParentISetInheritanceParentIStyleableIInputElementIDataTemplateHostINamedISetterValue
- Derived
- Inherited Members
-
TemplatedControl.BackgroundPropertyTemplatedControl.BorderBrushPropertyTemplatedControl.BorderThicknessPropertyTemplatedControl.CornerRadiusPropertyTemplatedControl.FontFamilyPropertyTemplatedControl.FontSizePropertyTemplatedControl.FontStylePropertyTemplatedControl.FontWeightPropertyTemplatedControl.FontStretchPropertyTemplatedControl.ForegroundPropertyTemplatedControl.PaddingPropertyTemplatedControl.TemplatePropertyTemplatedControl.IsTemplateFocusTargetPropertyTemplatedControl.TemplateAppliedEventTemplatedControl.GetIsTemplateFocusTarget(Control)TemplatedControl.ApplyTemplate()TemplatedControl.GetTemplateFocusTarget()TemplatedControl.OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)TemplatedControl.OnDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)TemplatedControl.OnApplyTemplate(TemplateAppliedEventArgs)TemplatedControl.OnTemplateChanged(AvaloniaPropertyChangedEventArgs)TemplatedControl.BackgroundTemplatedControl.BorderBrushTemplatedControl.BorderThicknessTemplatedControl.CornerRadiusTemplatedControl.FontFamilyTemplatedControl.FontSizeTemplatedControl.FontStyleTemplatedControl.FontWeightTemplatedControl.FontStretchTemplatedControl.ForegroundTemplatedControl.PaddingTemplatedControl.TemplateTemplatedControl.TemplateAppliedControl.FocusAdornerPropertyControl.TagPropertyControl.ContextMenuPropertyControl.ContextFlyoutPropertyControl.RequestBringIntoViewEventControl.ContextRequestedEventControl.LoadedEventControl.UnloadedEventControl.SizeChangedEventControl.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.FocusAdornerControl.DataTemplatesControl.ContextMenuControl.ContextFlyoutControl.IsLoadedControl.TagControl.ContextRequestedControl.LoadedControl.UnloadedControl.SizeChangedInputElement.FocusablePropertyInputElement.IsEffectivelyEnabledPropertyInputElement.CursorPropertyInputElement.IsKeyboardFocusWithinPropertyInputElement.IsFocusedPropertyInputElement.IsHitTestVisiblePropertyInputElement.IsPointerOverPropertyInputElement.IsTabStopPropertyInputElement.GotFocusEventInputElement.LostFocusEventInputElement.KeyDownEventInputElement.KeyUpEventInputElement.TabIndexPropertyInputElement.TextInputEventInputElement.TextInputMethodClientRequestedEventInputElement.PointerEnteredEventInputElement.PointerExitedEventInputElement.PointerMovedEventInputElement.PointerPressedEventInputElement.PointerReleasedEventInputElement.PointerCaptureLostEventInputElement.PointerWheelChangedEventInputElement.TappedEventInputElement.HoldingEventInputElement.DoubleTappedEventInputElement.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.FocusableInputElement.CursorInputElement.IsKeyboardFocusWithinInputElement.IsFocusedInputElement.IsHitTestVisibleInputElement.IsPointerOverInputElement.IsTabStopInputElement.IsEffectivelyEnabledInputElement.TabIndexInputElement.KeyBindingsInputElement.IsEnabledCoreInputElement.GestureRecognizersInputElement.GotFocusInputElement.LostFocusInputElement.KeyDownInputElement.KeyUpInputElement.TextInputInputElement.TextInputMethodClientRequestedInputElement.PointerEnteredInputElement.PointerExitedInputElement.PointerMovedInputElement.PointerPressedInputElement.PointerReleasedInputElement.PointerCaptureLostInputElement.PointerWheelChangedInputElement.TappedInputElement.HoldingInputElement.DoubleTappedInteractive.RaiseEvent(RoutedEventArgs)Interactive.BuildEventRoute(RoutedEvent)Layoutable.DesiredSizePropertyLayoutable.WidthPropertyLayoutable.HeightPropertyLayoutable.MinWidthPropertyLayoutable.MaxWidthPropertyLayoutable.MinHeightPropertyLayoutable.MaxHeightPropertyLayoutable.MarginPropertyLayoutable.HorizontalAlignmentPropertyLayoutable.VerticalAlignmentPropertyLayoutable.UseLayoutRoundingPropertyLayoutable.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.WidthLayoutable.HeightLayoutable.MinWidthLayoutable.MaxWidthLayoutable.MinHeightLayoutable.MaxHeightLayoutable.MarginLayoutable.HorizontalAlignmentLayoutable.VerticalAlignmentLayoutable.DesiredSizeLayoutable.IsMeasureValidLayoutable.IsArrangeValidLayoutable.UseLayoutRoundingLayoutable.EffectiveViewportChangedLayoutable.LayoutUpdatedVisual.BoundsPropertyVisual.ClipToBoundsPropertyVisual.ClipPropertyVisual.IsVisiblePropertyVisual.OpacityPropertyVisual.OpacityMaskPropertyVisual.EffectPropertyVisual.HasMirrorTransformPropertyVisual.RenderTransformPropertyVisual.RenderTransformOriginPropertyVisual.FlowDirectionPropertyVisual.VisualParentPropertyVisual.ZIndexPropertyVisual.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.BoundsVisual.ClipToBoundsVisual.ClipVisual.IsEffectivelyVisibleVisual.IsVisibleVisual.OpacityVisual.OpacityMaskVisual.EffectVisual.HasMirrorTransformVisual.RenderTransformVisual.RenderTransformOriginVisual.FlowDirectionVisual.ZIndexVisual.VisualChildrenVisual.VisualRootVisual.BypassFlowDirectionPoliciesVisual.AttachedToVisualTreeVisual.DetachedFromVisualTreeStyledElement.DataContextPropertyStyledElement.NamePropertyStyledElement.ParentPropertyStyledElement.TemplatedParentPropertyStyledElement.ThemePropertyStyledElement.BeginInit()StyledElement.EndInit()StyledElement.ApplyStyling()StyledElement.InitializeIfNeeded()StyledElement.OnDataContextBeginUpdate()StyledElement.OnDataContextEndUpdate()StyledElement.OnInitialized()StyledElement.NameStyledElement.ClassesStyledElement.DataContextStyledElement.IsInitializedStyledElement.StylesStyledElement.StyleKeyStyledElement.ResourcesStyledElement.TemplatedParentStyledElement.ThemeStyledElement.LogicalChildrenStyledElement.PseudoClassesStyledElement.StyleKeyOverrideStyledElement.ParentStyledElement.ActualThemeVariantStyledElement.AttachedToLogicalTreeStyledElement.DetachedFromLogicalTreeStyledElement.DataContextChangedStyledElement.InitializedStyledElement.ResourcesChangedStyledElement.ActualThemeVariantChangedAnimatable.TransitionsPropertyAnimatable.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)Animatable.TransitionsAvaloniaObject.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.InheritanceParentAvaloniaObject.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
AllowCopy
Pass-through property for AllowCopy.
public bool AllowCopy { get; set; }
Property Value
AllowDelete
Pass-through property for AllowDelete.
public bool AllowDelete { get; set; }
Property Value
AllowDragOut
Pass-through property for AllowDragOut.
public bool AllowDragOut { get; set; }
Property Value
AllowDrop
Pass-through property for AllowDrop.
public bool AllowDrop { get; set; }
Property Value
AllowGroup
Pass-through property for AllowGroup.
public bool AllowGroup { get; set; }
Property Value
AllowHorizontalScroll
Pass-through property for AllowHorizontalScroll.
public bool AllowHorizontalScroll { get; set; }
Property Value
AllowInsert
Pass-through property for AllowInsert.
public bool AllowInsert { get; set; }
Property Value
AllowLink
Pass-through property for AllowLink.
public bool AllowLink { get; set; }
Property Value
AllowMove
Pass-through property for AllowMove.
public bool AllowMove { get; set; }
Property Value
AllowRelink
Pass-through property for AllowRelink.
public bool AllowRelink { get; set; }
Property Value
AllowReshape
Pass-through property for AllowReshape.
public bool AllowReshape { get; set; }
Property Value
AllowResize
Pass-through property for AllowResize.
public bool AllowResize { get; set; }
Property Value
AllowRotate
Pass-through property for AllowRotate.
public bool AllowRotate { get; set; }
Property Value
AllowSelect
Pass-through property for AllowSelect.
public bool AllowSelect { get; set; }
Property Value
AllowTextEdit
Pass-through property for AllowTextEdit.
public bool AllowTextEdit { get; set; }
Property Value
AllowUndo
Pass-through property for AllowUndo.
public bool AllowUndo { get; set; }
Property Value
AllowUngroup
Pass-through property for AllowUngroup.
public bool AllowUngroup { get; set; }
Property Value
AllowVerticalScroll
Pass-through property for AllowVerticalScroll.
public bool AllowVerticalScroll { get; set; }
Property Value
AllowZoom
Pass-through property for AllowZoom.
public bool AllowZoom { get; set; }
Property Value
HasHorizontalScrollbar
Pass-through property for HasHorizontalScrollbar.
public bool HasHorizontalScrollbar { get; set; }
Property Value
HasVerticalScrollbar
Pass-through property for HasVerticalScrollbar.
public bool HasVerticalScrollbar { get; set; }
Property Value
IsEnabled
Pass-through property for IsEnabled.
public bool IsEnabled { get; set; }
Property Value
IsReadOnly
Pass-through property for IsReadOnly.
public bool IsReadOnly { get; set; }
Property Value
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.