Skip to main content

DiagramControl Methods

Provides a canvas where you or your end-users can display, create and edit various diagrams.
Name Description
AddHandler(RoutedEvent, Delegate, Boolean) Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route. Inherited from UIElement.
AddHandler(RoutedEvent, Delegate) Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Inherited from UIElement.
AddLogicalChild(Object) protected Adds the provided object to the logical tree of this element. Inherited from FrameworkElement.
AddToEventRoute(EventRoute, RoutedEventArgs) Adds handlers to the specified EventRoute for the current UIElement event handler collection. Inherited from UIElement.
AddVisualChild(Visual) protected Defines the parent-child relationship between two visuals. Inherited from Visual.
AlignCanvas(Nullable<HorizontalAlignment>, Nullable<VerticalAlignment>) Scrolls the viewport to apply the specified horizontal and vertical alignment.
AlignPage(Nullable<HorizontalAlignment>, Nullable<VerticalAlignment>) Scrolls the viewport according to the specified horizontal and vertical alignment.
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation. Inherited from UIElement.
ApplyAnimationClock(DependencyProperty, AnimationClock) Applies an animation to a specified dependency property on this element. Any existing animations are stopped and replaced with the new animation. Inherited from UIElement.
ApplyCircularLayout(CircularLayoutSettings, IEnumerable<DiagramItem>) Applies the circular layout algorithm.
ApplyCircularLayout(IEnumerable<DiagramItem>) Applies the circular layout algorithm.
ApplyMindMapTreeLayout(MindMapTreeLayoutSettings, SplitToConnectedComponentsMode, IEnumerable<DiagramItem>) Applies the mind-map tree layout algorithm.
ApplyMindMapTreeLayout(OrientationKind, IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Applies the mind-map tree layout algorithm.
ApplyMindMapTreeLayout(IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Applies the mind-map tree layout algorithm.
ApplyMindMapTreeLayoutForSubordinates(IEnumerable<DiagramItem>, MindMapTreeLayoutSettings) Applies the mind-map tree layout algorithm to the subordinates of the specified items.
ApplyMindMapTreeLayoutForSubordinates(IEnumerable<DiagramItem>) Applies the mind-map tree layout algorithm to the subordinates of the specified items.
ApplyOrgChartLayout(OrgChartLayoutSettings, IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Applies the org chart layout algorithm.
ApplyOrgChartLayout(IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Applies the org chart layout algorithm.
ApplySugiyamaLayout(Direction, IEnumerable<DiagramItem>) Applies the Sugiyama (layered) layout algorithm.
ApplySugiyamaLayout(LayoutDirection, IEnumerable<DiagramItem>) Applies the Sugiyama (layered) layout algorithm.
ApplySugiyamaLayout(SugiyamaLayoutSettings, IEnumerable<DiagramItem>) Applies the Sugiyama (layered) layout algorithm.
ApplySugiyamaLayout(IEnumerable<DiagramItem>) Applies the Sugiyama (layered) layout algorithm.
ApplyTemplate() Builds the current template’s visual tree if necessary, and returns a value that indicates whether the visual tree was rebuilt by this call. Inherited from FrameworkElement.
ApplyTipOverTreeLayout(TipOverDirection, IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Applies the tip-over tree layout algorithm.
ApplyTipOverTreeLayout(TipOverTreeLayoutSettings, SplitToConnectedComponentsMode, IEnumerable<DiagramItem>) Applies the tip-over tree layout algorithm.
ApplyTipOverTreeLayout(IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Applies the tip-over tree layout algorithm.
ApplyTipOverTreeLayoutForSubordinates(IEnumerable<DiagramItem>, TipOverTreeLayoutSettings) Applies the Tip-Over Tree layout to the subordinates of the specified diagram items.
ApplyTipOverTreeLayoutForSubordinates(IEnumerable<DiagramItem>) Applies the Tip-Over Tree layout to the subordinates of the specified diagram items.
ApplyTreeLayout(Direction, IEnumerable<DiagramItem>) Applies the tree layout algorithm.
ApplyTreeLayout(LayoutDirection, IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Applies the tree layout algorithm.
ApplyTreeLayout(TreeLayoutSettings, SplitToConnectedComponentsMode, IEnumerable<DiagramItem>) Applies the tree layout algorithm.
ApplyTreeLayout(IEnumerable<DiagramItem>, Nullable<SplitToConnectedComponentsMode>) Applies the tree layout algorithm.
ApplyTreeLayoutForSubordinates(IEnumerable<DiagramItem>, TreeLayoutSettings) Applies the Tree layout to the subordinates of the specified diagram items.
ApplyTreeLayoutForSubordinates(IEnumerable<DiagramItem>) Applies the Tree layout to the subordinates of the specified diagram items.
Arrange(Rect) Positions child elements and determines a size for a UIElement. Parent elements call this method from their ArrangeCore(Rect) implementation (or a WPF framework-level equivalent) to form a recursive layout update. This method constitutes the second pass of a layout update. Inherited from UIElement.
ArrangeCore(Rect) protected Implements ArrangeCore(Rect) (defined as virtual in UIElement) and seals the implementation. Inherited from FrameworkElement.
ArrangeOverride(Size) protected Called to arrange and size the content of a Control object. Inherited from Control.
AttachToWindow() Binds the window’s Title property to the name of the current document and subscribes the diagram to the window’s Closing event. When the end-user attempts to close the window with the diagram that contains unsaved changes, a dialog window is invoked prompting the user to save changes.
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) Starts a specific animation for a specified animated property on this element, with the option of specifying what happens if the property already has a running animation. Inherited from UIElement.
BeginAnimation(DependencyProperty, AnimationTimeline) Starts an animation for a specified animated property on this element. Inherited from UIElement.
BeginInit() Starts the runtime initialization.
BeginStoryboard(Storyboard, HandoffBehavior, Boolean) Begins the sequence of actions contained in the provided storyboard, with specified state for control of the animation after it is started. Inherited from FrameworkElement.
BeginStoryboard(Storyboard, HandoffBehavior) Begins the sequence of actions contained in the provided storyboard, with options specified for what should happen if the property is already animated. Inherited from FrameworkElement.
BeginStoryboard(Storyboard) Begins the sequence of actions that are contained in the provided storyboard. Inherited from FrameworkElement.
BringIntoView() Attempts to bring this element into view, within any scrollable regions it is contained within. Inherited from FrameworkElement.
BringIntoView(Rect) Attempts to bring the provided region size of this element into view, within any scrollable regions it is contained within. Inherited from FrameworkElement.
BringItemsForward(IEnumerable<DiagramItem>) Brings the specified diagram items forward one step in the stack.
BringItemsIntoView(IEnumerable<DiagramItem>, BringIntoViewMode) Scrolls the diagram and changes its zoom factor to bring the specified diagram items into view.
BringItemsToFront(IEnumerable<DiagramItem>) Brings the specified diagram items to the front of the stack.
BringSelectedItemsForward() Brings the selected diagram items forward one step in the stack.
BringSelectedItemsToFront() Brings the specified diagram items to the front of the stack.
BringSelectionIntoView(BringIntoViewMode) Scrolls the diagram and changes its zoom factor to bring the selected diagram items into view.
CalcHitInfo(Func<FrameworkElement, Point>) Returns information on an object located at the specified position.
CalcHitInfo(Point) Returns information on an object located at the specified position.
CalcHitItem(Func<FrameworkElement, Point>) Returns the diagram item located at the specified position.
CalcHitItem(Point) Returns the diagram item located at the specified position.
CaptureMouse() Attempts to force capture of the mouse to this element. Inherited from UIElement.
CaptureStylus() Attempts to force capture of the stylus to this element. Inherited from UIElement.
CaptureTouch(TouchDevice) Attempts to force capture of a touch to this element. Inherited from UIElement.
ChangeConnectorsType(ConnectorType, IEnumerable<DiagramConnector>) Changes the type of the specified connectors.
ChangeSelectedConnectorsType(ConnectorType) Specifies the connector type for the currently selected connectors.
CheckAccess() Determines whether the calling thread has access to this DispatcherObject. Inherited from DispatcherObject.
ClearSelection() Unselects any selected shapes and connectors.
ClearValue(DependencyProperty) Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. Inherited from DependencyObject.
ClearValue(DependencyPropertyKey) Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. Inherited from DependencyObject.
CoerceValue(DependencyProperty) Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. Inherited from DependencyObject.
CopySelectedItems() Copies the currently selected diagram items to the clipboard.
CreateAdorner(FrameworkElement) This member supports the internal infrastructure and is not intended to be used directly from your code.
CreateAdornerEx<TObject, TInterface>(TObject) This member supports the internal infrastructure and is not intended to be used directly from your code.
CreateBackgroundAdorner(FrameworkElement) This member supports the internal infrastructure and is not intended to be used directly from your code.
CreateHRulerAdorner(FrameworkElement) This member supports the internal infrastructure and is not intended to be used directly from your code.
CreateVRulerAdorner(FrameworkElement) This member supports the internal infrastructure and is not intended to be used directly from your code.
CutSelectedItems() Moves the currently selected diagram items to the clipboard.
DeleteItems(IEnumerable<DiagramItem>) Removes the specified diagram items.
DeleteSelectedItems() Removes the currently selected diagram items.
DetachFromWindow() Removes changes made by the DiagramControl.AttachToWindow method.
EndInit() Ends the runtime initialization.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether a provided DependencyObject is equivalent to the current DependencyObject. Inherited from DependencyObject.
ExportDiagram(DiagramExportFormat) Invokes the Export dialog window.
ExportDiagram(Stream, DiagramExportFormat, Nullable<Double>, Nullable<Double>) Exports the diagram to the specified stream.
ExportDiagram(Stream, DiagramExportFormat, Rect, Nullable<Double>, Nullable<Double>) Exports the diagram to the specified stream.
ExportDiagram(String, Double, Double) Exports the diagram in the specified format to a file.
ExportDiagram(String, Rect, Double, Double) Exports the diagram in the specified format to a file.
ExportDiagram(String) Exports the diagram to a file.
ExportToImage(DiagramImageExportFormat, Nullable<Rect>, Nullable<Double>, Nullable<Double>) Invokes the Export dialog window.
ExportToImage(Stream, DiagramImageExportFormat, Nullable<Rect>, Nullable<Double>, Nullable<Double>) Exports the diagram to the specified stream in an image format.
ExportToImage(String, Nullable<Rect>, Nullable<Double>, Nullable<Double>) Exports the diagram to the specified file.
ExportToPdf(PdfExportOptions, Boolean) Exports the diagram to a single-page PDF file specified by the user in the invoked dialog window.
ExportToPdf(Stream, Nullable<Rect>, PdfExportOptions) Exports the diagram to a single-page PDF document which is sent to the specified stream.
ExportToPdf(String, Nullable<Rect>, PdfExportOptions) Exports the diagram to a single-page PDF file.
ExportToPdf(Rect, PdfExportOptions, Boolean) Exports the diagram to a single-page PDF file specified by the user in the invoked dialog window.
ExportToSvg(Stream, Nullable<Rect>, Nullable<Double>) Exports the diagram in the SVG format to the specified stream.
ExportToSvg(Nullable<Rect>, Nullable<Double>) Invokes the Export dialog window.
ExportToSvg(String, Nullable<Rect>, Nullable<Double>) Exports the diagram in the SVG format to a file.
FindCommonVisualAncestor(DependencyObject) Returns the common ancestor of two visual objects. Inherited from Visual.
FindName(String) Finds an element that has the provided identifier name. Inherited from FrameworkElement.
FindResource(Object) Searches for a resource with the specified key, and throws an exception if the requested resource is not found. Inherited from FrameworkElement.
FitToDrawing() Changes the page size to fit the diagram contents.
FitToItems(IEnumerable<DiagramItem>) Scrolls the diagram and changes its zoom factor so that the viewport is sufficiently large to display the specified items.
FitToPage() Sets the diagram zoom factor value to fit all pages with content within the viewport.
FitToWidth() Sets the diagram zoom factor value to fit the entire diagram width.
Focus() Attempts to set focus to this element. Inherited from UIElement.
GetAnimationBaseValue(DependencyProperty) Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation. Inherited from UIElement.
GetBindingExpression(DependencyProperty) Returns the BindingExpression that represents the binding on the specified property. Inherited from FrameworkElement.
GetDiagram(DependencyObject) static Gets the value of the DiagramControl.Diagram attached property from a given object.
GetDrawingContext(DependencyObject) static Gets the value of the DiagramControl.DrawingContext attached property from a given object.
GetFlowDirection(DependencyObject) static Gets the value of the FlowDirection attached property for the specified DependencyObject. Inherited from FrameworkElement.
GetHashCode() Gets a hash code for this DependencyObject. Inherited from DependencyObject.
GetLayoutClip(Size) protected Returns a geometry for a clipping mask. The mask applies if the layout system attempts to arrange an element that is larger than the available display space. Inherited from FrameworkElement.
GetLocalValueEnumerator() Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. Inherited from DependencyObject.
GetTemplateChild(String) protected Returns the named element in the visual tree of an instantiated ControlTemplate. Inherited from FrameworkElement.
GetType() Gets the Type of the current instance. Inherited from Object.
GetUIParentCore() protected Returns an alternative logical parent for this element if there is no visual parent. Inherited from FrameworkElement.
GetValue(DependencyProperty) Returns the current effective value of a dependency property on this instance of a DependencyObject. Inherited from DependencyObject.
GetViewportBounds() Returns the bounds of the currently visible area.
GetVisualChild(Int32) protected Overrides GetVisualChild(Int32), and returns a child at the specified index from a collection of child elements. Inherited from FrameworkElement.
HitTestCore(GeometryHitTestParameters) protected Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult). Inherited from UIElement.
HitTestCore(PointHitTestParameters) protected Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult). Inherited from UIElement.
InputHitTest(Point) Returns the input element within the current element that is at the specified coordinates, relative to the current element’s origin. Inherited from UIElement.
InsertImage() Invokes the Insert Picture dialog that allows the end-user to add an image item to the diagram.
InvalidateArrange() Invalidates the arrange state (layout) for the element. After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout(). Inherited from UIElement.
InvalidateMeasure() Invalidates the measurement state (layout) for the element. Inherited from UIElement.
InvalidateProperty(DependencyProperty) Re-evaluates the effective value for the specified dependency property. Inherited from DependencyObject.
InvalidateVisual() Invalidates the rendering of the element, and forces a complete new layout pass. OnRender(DrawingContext) is called after the layout cycle is completed. Inherited from UIElement.
IsAncestorOf(DependencyObject) Determines whether the visual object is an ancestor of the descendant visual object. Inherited from Visual.
IsDescendantOf(DependencyObject) Determines whether the visual object is a descendant of the ancestor visual object. Inherited from Visual.
LoadDocument(Stream) Loads a diagram document from a stream.
LoadDocument(String) Loads a diagram from the specified file.
LoadImage() Invokes the Insert Picture dialog that allows the end-user to to change the selected image item.
Measure(Size) Updates the DesiredSize of a UIElement. Parent elements call this method from their own MeasureCore(Size) implementations to form a recursive layout update. Calling this method constitutes the first pass (the “Measure” pass) of a layout update. Inherited from UIElement.
MeasureCore(Size) protected Implements basic measure-pass layout system behavior for FrameworkElement. Inherited from FrameworkElement.
MeasureOverride(Size) protected Called to remeasure a control. Inherited from Control.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MoveFocus(TraversalRequest) Moves the keyboard focus away from this element and to another element in a provided traversal direction. Inherited from FrameworkElement.
NewDocument() Discards the current document and creates a new one.
NewFile() Closes the current file and creates a new one.
OnAccessKey(AccessKeyEventArgs) protected Provides class handling for when an access key that is meaningful for this element is invoked. Inherited from UIElement.
OnApplyTemplate() Called after the template is completely generated and attached to the visual tree.
OnChildDesiredSizeChanged(UIElement) protected Supports layout behavior when a child element is resized. Inherited from UIElement.
OnContextMenuClosing(ContextMenuEventArgs) protected Invoked whenever an unhandled ContextMenuClosing routed event reaches this class in its route. Implement this method to add class handling for this event. Inherited from FrameworkElement.
OnContextMenuOpening(ContextMenuEventArgs) protected Invoked whenever an unhandled ContextMenuOpening routed event reaches this class in its route. Implement this method to add class handling for this event. Inherited from FrameworkElement.
OnDpiChanged(DpiScale, DpiScale) protected Called when the DPI at which this View is rendered changes. Inherited from Visual.
OnDragEnter(DragEventArgs) protected Invoked when an unhandled DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnDragLeave(DragEventArgs) protected Invoked when an unhandled DragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnDragOver(DragEventArgs) protected Invoked when an unhandled DragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnDrop(DragEventArgs) protected Invoked when an unhandled DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnGiveFeedback(GiveFeedbackEventArgs) protected Invoked when an unhandled GiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnGotFocus(RoutedEventArgs) protected Invoked whenever an unhandled GotFocus event reaches this element in its route. Inherited from FrameworkElement.
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) protected Invoked when an unhandled GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnGotMouseCapture(MouseEventArgs) protected Invoked when an unhandled GotMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnGotStylusCapture(StylusEventArgs) protected Invoked when an unhandled GotStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnGotTouchCapture(TouchEventArgs) protected Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element. Inherited from UIElement.
OnInitialized(EventArgs) protected Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally. Inherited from FrameworkElement.
OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) protected Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) protected Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) protected Invoked when an unhandled IsMouseCapturedChanged event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) protected Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) protected Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) protected Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) protected Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) protected Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnKeyDown(KeyEventArgs) protected Invoked when an unhandled KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnKeyUp(KeyEventArgs) protected Invoked when an unhandled KeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnLostFocus(RoutedEventArgs) protected Raises the LostFocus routed event by using the event data that is provided. Inherited from UIElement.
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) protected Invoked when an unhandled LostKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnLostMouseCapture(MouseEventArgs) protected Invoked when an unhandled LostMouseCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnLostStylusCapture(StylusEventArgs) protected Invoked when an unhandled LostStylusCapture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnLostTouchCapture(TouchEventArgs) protected Provides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture. Inherited from UIElement.
OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) protected Called when the ManipulationBoundaryFeedback event occurs. Inherited from UIElement.
OnManipulationCompleted(ManipulationCompletedEventArgs) protected Called when the ManipulationCompleted event occurs. Inherited from UIElement.
OnManipulationDelta(ManipulationDeltaEventArgs) protected Called when the ManipulationDelta event occurs. Inherited from UIElement.
OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) protected Called when the ManipulationInertiaStarting event occurs. Inherited from UIElement.
OnManipulationStarted(ManipulationStartedEventArgs) protected Called when the ManipulationStarted event occurs. Inherited from UIElement.
OnManipulationStarting(ManipulationStartingEventArgs) protected Provides class handling for the ManipulationStarting routed event that occurs when the manipulation processor is first created. Inherited from UIElement.
OnMouseDoubleClick(MouseButtonEventArgs) protected Raises the MouseDoubleClick routed event. Inherited from Control.
OnMouseDown(MouseButtonEventArgs) protected Invoked when an unhandled MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseEnter(MouseEventArgs) protected Invoked when an unhandled MouseEnter attached event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseLeave(MouseEventArgs) protected Invoked when an unhandled MouseLeave attached event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseLeftButtonDown(MouseButtonEventArgs) protected Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseLeftButtonUp(MouseButtonEventArgs) protected Invoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseMove(MouseEventArgs) protected Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseRightButtonDown(MouseButtonEventArgs) protected Invoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseRightButtonUp(MouseButtonEventArgs) protected Invoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseUp(MouseButtonEventArgs) protected Invoked when an unhandled MouseUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnMouseWheel(MouseWheelEventArgs) protected Invoked when an unhandled MouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewDragEnter(DragEventArgs) protected Invoked when an unhandled PreviewDragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewDragLeave(DragEventArgs) protected Invoked when an unhandled PreviewDragLeave attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewDragOver(DragEventArgs) protected Invoked when an unhandled PreviewDragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewDrop(DragEventArgs) protected Invoked when an unhandled PreviewDrop attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewGiveFeedback(GiveFeedbackEventArgs) protected Invoked when an unhandled PreviewGiveFeedback attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) protected Invoked when an unhandled PreviewGotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewKeyDown(KeyEventArgs) protected Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewKeyUp(KeyEventArgs) protected Invoked when an unhandled PreviewKeyUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) protected Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewMouseDoubleClick(MouseButtonEventArgs) protected Raises the PreviewMouseDoubleClick routed event. Inherited from Control.
OnPreviewMouseDown(MouseButtonEventArgs) protected Invoked when an unhandled PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) protected Invoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) protected Invoked when an unhandled PreviewMouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewMouseMove(MouseEventArgs) protected Invoked when an unhandled PreviewMouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewMouseRightButtonDown(MouseButtonEventArgs) protected Invoked when an unhandled PreviewMouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewMouseRightButtonUp(MouseButtonEventArgs) protected Invoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewMouseUp(MouseButtonEventArgs) protected Invoked when an unhandled PreviewMouseUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewMouseWheel(MouseWheelEventArgs) protected Invoked when an unhandled PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) protected Invoked when an unhandled PreviewQueryContinueDrag attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusButtonDown(StylusButtonEventArgs) protected Invoked when an unhandled PreviewStylusButtonDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusButtonUp(StylusButtonEventArgs) protected Invoked when an unhandled PreviewStylusButtonUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusDown(StylusDownEventArgs) protected Invoked when an unhandled PreviewStylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusInAirMove(StylusEventArgs) protected Invoked when an unhandled PreviewStylusInAirMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusInRange(StylusEventArgs) protected Invoked when an unhandled PreviewStylusInRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusMove(StylusEventArgs) protected Invoked when an unhandled PreviewStylusMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusOutOfRange(StylusEventArgs) protected Invoked when an unhandled PreviewStylusOutOfRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) protected Invoked when an unhandled PreviewStylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewStylusUp(StylusEventArgs) protected Invoked when an unhandled PreviewStylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewTextInput(TextCompositionEventArgs) protected Invoked when an unhandled PreviewTextInput attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnPreviewTouchDown(TouchEventArgs) protected Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element. Inherited from UIElement.
OnPreviewTouchMove(TouchEventArgs) protected Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element. Inherited from UIElement.
OnPreviewTouchUp(TouchEventArgs) protected Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element. Inherited from UIElement.
OnQueryContinueDrag(QueryContinueDragEventArgs) protected Invoked when an unhandled QueryContinueDrag attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnQueryCursor(QueryCursorEventArgs) protected Invoked when an unhandled QueryCursor attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnRender(DrawingContext) protected When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing. Inherited from UIElement.
OnRenderSizeChanged(SizeChangedInfo) protected Raises the SizeChanged event, using the specified information as part of the eventual event data. Inherited from FrameworkElement.
OnStyleChanged(Style, Style) protected Invoked when the style in use on this element changes, which will invalidate the layout. Inherited from FrameworkElement.
OnStylusButtonDown(StylusButtonEventArgs) protected Invoked when an unhandled StylusButtonDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusButtonUp(StylusButtonEventArgs) protected Invoked when an unhandled StylusButtonUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusDown(StylusDownEventArgs) protected Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusEnter(StylusEventArgs) protected Invoked when an unhandled StylusEnter attached event is raised by this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusInAirMove(StylusEventArgs) protected Invoked when an unhandled StylusInAirMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusInRange(StylusEventArgs) protected Invoked when an unhandled StylusInRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusLeave(StylusEventArgs) protected Invoked when an unhandled StylusLeave attached event is raised by this element. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusMove(StylusEventArgs) protected Invoked when an unhandled StylusMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusOutOfRange(StylusEventArgs) protected Invoked when an unhandled StylusOutOfRange attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusSystemGesture(StylusSystemGestureEventArgs) protected Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnStylusUp(StylusEventArgs) protected Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnTemplateChanged(ControlTemplate, ControlTemplate) protected Called whenever the control’s template changes. Inherited from Control.
OnTextInput(TextCompositionEventArgs) protected Invoked when an unhandled TextInput attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. Inherited from UIElement.
OnToolTipClosing(ToolTipEventArgs) protected Invoked whenever an unhandled ToolTipClosing routed event reaches this class in its route. Implement this method to add class handling for this event. Inherited from FrameworkElement.
OnToolTipOpening(ToolTipEventArgs) protected Invoked whenever the ToolTipOpening routed event reaches this class in its route. Implement this method to add class handling for this event. Inherited from FrameworkElement.
OnTouchDown(TouchEventArgs) protected Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element. Inherited from UIElement.
OnTouchEnter(TouchEventArgs) protected Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element. Inherited from UIElement.
OnTouchLeave(TouchEventArgs) protected Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement. Inherited from UIElement.
OnTouchMove(TouchEventArgs) protected Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element. Inherited from UIElement.
OnTouchUp(TouchEventArgs) protected Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element. Inherited from UIElement.
OnVisualChildrenChanged(DependencyObject, DependencyObject) protected Called when the VisualCollection of the visual object is modified. Inherited from Visual.
OnVisualParentChanged(DependencyObject) protected Invoked when the parent of this element in the visual tree is changed. Overrides OnVisualParentChanged(DependencyObject). Inherited from FrameworkElement.
OpenFile() Displays the “Open File” dialog that allows an end-user to load an XML file containing a saved diagram.
ParentLayoutInvalidated(UIElement) protected Supports incremental layout implementations in specialized subclasses of FrameworkElement. ParentLayoutInvalidated(UIElement) is invoked when a child element has invalidated a property that is marked in metadata as affecting the parent’s measure or arrange passes during layout. Inherited from FrameworkElement.
Paste() Inserts the diagram items from the clipboard onto the Canvas.
PointFromScreen(Point) Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual. Inherited from Visual.
PointToControl(Point) Converts the coordinates of a point on the canvas to the control-relative coordinates.
PointToDocument(Point) Converts the control-relative coordinates to the coordinates of a point on the canvas.
PointToScreen(Point) Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates. Inherited from Visual.
PredictFocus(FocusNavigationDirection) Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus. Inherited from FrameworkElement.
Print() Invokes the Print dialog window.
Print(Double) Invokes the Print dialog window.
Print(Int32, Orientation) Invokes the Print dialog window.
PrintToPdf(PdfExportOptions, Nullable<Size>, Nullable<Thickness>, Boolean) Exports the diagram to a multi-page PDF file specified by the user in the invoked dialog window.
PrintToPdf(Double, PdfExportOptions, Nullable<Size>, Nullable<Thickness>, Boolean) Exports the diagram to a multi-page PDF file specified by the user in the invoked dialog window.
PrintToPdf(Int32, OrientationKind, PdfExportOptions, Nullable<Size>, Nullable<Thickness>, Boolean) Exports the diagram to a multi-page PDF file specified by the user in the invoked dialog window.
PrintToPdf(Stream, Double, Nullable<Rect>, PdfExportOptions, Nullable<Size>, Nullable<Thickness>) Exports the diagram to a multi-page PDF document which is sent to the specified stream.
PrintToPdf(Stream, Int32, Orientation, Nullable<Rect>, PdfExportOptions, Nullable<Size>, Nullable<Thickness>) Exports the diagram to a multi-page PDF document which is sent to the specified stream.
PrintToPdf(Stream, Nullable<Rect>, PdfExportOptions, Nullable<Size>, Nullable<Thickness>) Exports the diagram to a multi-page PDF document which is sent to the specified stream.
QuickPrint() Prints the current diagram to the default printer.
QuickPrint(Double) Prints the current diagram to the default printer.
QuickPrint(Int32, Orientation) Prints the current diagram to the default printer.
RaiseEvent(RoutedEventArgs) Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data). Inherited from UIElement.
ReadLocalValue(DependencyProperty) Returns the local value of a dependency property, if it exists. Inherited from DependencyObject.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RegisterName(String, Object) Provides an accessor that simplifies access to the NameScope registration method. Inherited from FrameworkElement.
RegisterRoutingStrategy(ConnectorType, DiagramRoutingStrategy) Registers a custom routing strategy for the specified connector type.
ReleaseAllTouchCaptures() Releases all captured touch devices from this element. Inherited from UIElement.
ReleaseMouseCapture() Releases the mouse capture, if this element held the capture. Inherited from UIElement.
ReleaseStylusCapture() Releases the stylus device capture, if this element held the capture. Inherited from UIElement.
ReleaseTouchCapture(TouchDevice) Attempts to release the specified touch device from this element. Inherited from UIElement.
RemoveHandler(RoutedEvent, Delegate) Removes the specified routed event handler from this element. Inherited from UIElement.
RemoveLogicalChild(Object) protected Removes the provided object from this element’s logical tree. FrameworkElement updates the affected logical tree parent pointers to keep in sync with this deletion. Inherited from FrameworkElement.
RemoveVisualChild(Visual) protected Removes the parent-child relationship between two visuals. Inherited from Visual.
ResetSelectedImages() Rolls the selected images back to their original state, reverting all resizing and rotation transformations.
SaveDocument(Stream) Saves the current diagram document to a stream.
SaveDocument(String) Saves the current diagram to the specified file.
SaveFile() Saves the diagram to a file.
SaveFileAs() Invokes the Save File As dialog window that allows the end-user to select the name and destination of the file to which to save the current diagram.
ScrollToPoint(Point, Nullable<HorizontalAlignment>, Nullable<VerticalAlignment>) Scrolls the diagram to the specified point.
SelectAll() Selects all shapes and connectors within the current document.
SelectItem(DiagramItem, ModifySelectionMode) Selects the specified diagram item.
SelectItems(DiagramItem[]) Selects the specified diagram items.
SelectItems(IEnumerable<DiagramItem>, ModifySelectionMode) Selects the specified diagram items.
SendItemsBackward(IEnumerable<DiagramItem>) Sends the specified diagram items back one step in the stack.
SendItemsToBack(IEnumerable<DiagramItem>) Sends the specified diagram items to the back of the stack.
SendSelectedItemsBackward() Sends the selected diagram items back one step in the stack.
SendSelectedItemsToBack() Sends the specified diagram items to the back of the stack.
SetBinding(DependencyProperty, String) Attaches a binding to this element, based on the provided source property name as a path qualification to the data source. Inherited from FrameworkElement.
SetBinding(DependencyProperty, BindingBase) Attaches a binding to this element, based on the provided binding object. Inherited from FrameworkElement.
SetContainersIsCollapsed(IEnumerable<DiagramContainer>, Boolean)
SetCurrentValue(DependencyProperty, Object) Sets the value of a dependency property without changing its value source. Inherited from DependencyObject.
SetDiagram(DependencyObject, DiagramControl) static Sets the value of the DiagramControl.Diagram attached property for a given object.
SetDrawingContext(DependencyObject, DiagramDrawingContext) static Sets the value of the DiagramControl.DrawingContext attached property for the specified object.
SetFlowDirection(DependencyObject, FlowDirection) static Sets the value of the FlowDirection attached property for the provided element. Inherited from FrameworkElement.
SetResourceReference(DependencyProperty, Object) Searches for a resource with the specified name and sets up a resource reference to it for the specified property. Inherited from FrameworkElement.
SetSelectedImagesScale(Double) Sets the specified zoom factor for selected image items.
SetSelectedImagesStretchMode(StretchMode) Sets the specified stretch mode for selected image items.
SetValue(DependencyProperty, Object) Sets the local value of a dependency property, specified by its dependency property identifier. Inherited from DependencyObject.
SetValue(DependencyPropertyKey, Object) Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. Inherited from DependencyObject.
ShouldSerializeCommandBindings() Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class. Inherited from UIElement.
ShouldSerializeInputBindings() Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class. Inherited from UIElement.
ShouldSerializeProperty(DependencyProperty) protected Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. Inherited from DependencyObject.
ShouldSerializeResources() Returns whether serialization processes should serialize the contents of the Resources property. Inherited from FrameworkElement.
ShouldSerializeStyle() Returns whether serialization processes should serialize the contents of the Style property. Inherited from FrameworkElement.
ShouldSerializeTriggers() Returns whether serialization processes should serialize the contents of the Triggers property. Inherited from FrameworkElement.
ShowEditor() Invokes the text editor for the primary selected diagram shape.
ShowPrintPreview() Invokes the Print Preview.
ShowPrintPreview(Double)
ShowPrintPreview(Int32, OrientationKind)
IQueryAmbient.IsAmbientPropertyAvailable(String) For a description of this member, see the IsAmbientPropertyAvailable(String) method. Inherited from FrameworkElement.
ToggleSubordinatesVisibility(DiagramItem) Shows or hides the subordinates of the selected diagram item.
ToString() Returns the string representation of a Control object. Inherited from Control.
TransformToAncestor(Visual3D) Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object. Inherited from Visual.
TransformToAncestor(Visual) Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object. Inherited from Visual.
TransformToDescendant(Visual) Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. Inherited from Visual.
TransformToVisual(Visual) Returns a transform that can be used to transform coordinates from the Visual to the specified visual object. Inherited from Visual.
TranslatePoint(Point, UIElement) Translates a point relative to this element to coordinates that are relative to the specified element. Inherited from UIElement.
TryFindResource(Object) Searches for a resource with the specified key, and returns that resource if found. Inherited from FrameworkElement.
UnregisterName(String) Simplifies access to the NameScope de-registration method. Inherited from FrameworkElement.
UnregisterRoutingStrategy(ConnectorType) Removes the custom routing strategy applied to the specified connector type.
UnselectItem(DiagramItem) Unselects the specified diagram item.
UpdateConnectorsRoute(IEnumerable<DiagramConnector>) Recalculates the route for the specified diagram connectors.
UpdateDefaultStyle() Reapplies the default style to the current FrameworkElement. Inherited from FrameworkElement.
UpdateLayout() Ensures that all visual child elements of this element are properly updated for layout. Inherited from UIElement.
VerifyAccess() Enforces that the calling thread has access to this DispatcherObject. Inherited from DispatcherObject.
ZoomIn() Increases the document zoom factor.
ZoomOut() Decreases the document zoom factor.
See Also