DiagramControl Methods
Provides a canvas where you or your end-users can display, create and edit various diagrams.
Name | Description |
---|---|
Add |
Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handled 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. |
Add |
Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Inherited from UIElement. |
Add |
Adds the provided object to the logical tree of this element.
Inherited from Framework |
Add |
Adds handlers to the specified Event |
Add |
Defines the parent-child relationship between two visuals. Inherited from Visual. |
Align |
Scrolls the viewport to apply the specified horizontal and vertical alignment. |
Align |
Scrolls the viewport according to the specified horizontal and vertical alignment. |
Apply |
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. |
Apply |
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. |
Apply |
Applies the circular layout algorithm. |
Apply |
Applies the circular layout algorithm. |
Apply |
Applies the mind-map tree layout algorithm. |
Apply |
Applies the mind-map tree layout algorithm. |
Apply |
Applies the mind-map tree layout algorithm. |
Apply |
Applies the mind-map tree layout algorithm to the subordinates of the specified items. |
Apply |
Applies the mind-map tree layout algorithm to the subordinates of the specified items. |
Apply |
Applies the org chart layout algorithm. |
Apply |
Applies the org chart layout algorithm. |
Apply |
Applies the Sugiyama (layered) layout algorithm. |
Apply |
Applies the Sugiyama (layered) layout algorithm. |
Apply |
Applies the Sugiyama (layered) layout algorithm. |
Apply |
Applies the Sugiyama (layered) layout algorithm. |
Apply |
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 Framework |
Apply |
Applies the tip-over tree layout algorithm. |
Apply |
Applies the tip-over tree layout algorithm. |
Apply |
Applies the tip-over tree layout algorithm. |
Apply |
Applies the Tip-Over Tree layout to the subordinates of the specified diagram items. |
Apply |
Applies the Tip-Over Tree layout to the subordinates of the specified diagram items. |
Apply |
Applies the tree layout algorithm. |
Apply |
Applies the tree layout algorithm. |
Apply |
Applies the tree layout algorithm. |
Apply |
Applies the tree layout algorithm. |
Apply |
Applies the Tree layout to the subordinates of the specified diagram items. |
Apply |
Applies the Tree layout to the subordinates of the specified diagram items. |
Arrange |
Positions child elements and determines a size for a UIElement. Parent elements call this method from their Arrange |
Arrange |
Implements Arrange |
Arrange |
Called to arrange and size the content of a Control object. Inherited from Control. |
Attach |
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. |
Begin |
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. |
Begin |
Starts an animation for a specified animated property on this element. Inherited from UIElement. |
Begin |
Starts the runtime initialization. |
Begin |
Begins the sequence of actions contained in the provided storyboard, with specified state for control of the animation after it is started.
Inherited from Framework |
Begin |
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 Framework |
Begin |
Begins the sequence of actions that are contained in the provided storyboard.
Inherited from Framework |
Bring |
Attempts to bring this element into view, within any scrollable regions it is contained within.
Inherited from Framework |
Bring |
Attempts to bring the provided region size of this element into view, within any scrollable regions it is contained within.
Inherited from Framework |
Bring |
Brings the specified diagram items forward one step in the stack. |
Bring |
Scrolls the diagram and changes its zoom factor to bring the specified diagram items into view. |
Bring |
Brings the specified diagram items to the front of the stack. |
Bring |
Brings the selected diagram items forward one step in the stack. |
Bring |
Brings the specified diagram items to the front of the stack. |
Bring |
Scrolls the diagram and changes its zoom factor to bring the selected diagram items into view. |
Calc |
Returns information on an object located at the specified position. |
Calc |
Returns information on an object located at the specified position. |
Calc |
Returns the diagram item located at the specified position. |
Calc |
Returns the diagram item located at the specified position. |
Capture |
Attempts to force capture of the mouse to this element. Inherited from UIElement. |
Capture |
Attempts to force capture of the stylus to this element. Inherited from UIElement. |
Capture |
Attempts to force capture of a touch to this element. Inherited from UIElement. |
Change |
Changes the type of the specified connectors. |
Change |
Specifies the connector type for the currently selected connectors. |
Check |
Determines whether the calling thread has access to this Dispatcher |
Clear |
Unselects any selected shapes and connectors. |
Clear |
Clears the local value of a property. The property to be cleared is specified by a Dependency |
Clear |
Clears the local value of a read-only property. The property to be cleared is specified by a Dependency |
Coerce |
Coerces the value of the specified dependency property. This is accomplished by invoking any Coerce |
Copy |
Copies the currently selected diagram items to the clipboard. |
Create |
This member supports the internal infrastructure and is not intended to be used directly from your code. |
Create |
This member supports the internal infrastructure and is not intended to be used directly from your code. |
Create |
This member supports the internal infrastructure and is not intended to be used directly from your code. |
Create |
This member supports the internal infrastructure and is not intended to be used directly from your code. |
Create |
This member supports the internal infrastructure and is not intended to be used directly from your code. |
Cut |
Moves the currently selected diagram items to the clipboard. |
Delete |
Removes the specified diagram items. |
Delete |
Removes the currently selected diagram items. |
Detach |
Removes changes made by the Diagram |
End |
Ends the runtime initialization. |
Equals |
Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals |
Determines whether a provided Dependency |
Export |
Invokes the Export dialog window. |
Export |
Exports the diagram to the specified stream. |
Export |
Exports the diagram to the specified stream. |
Export |
Exports the diagram in the specified format to a file. |
Export |
Exports the diagram in the specified format to a file. |
Export |
Exports the diagram to a file. |
Export |
Invokes the Export dialog window. |
Export |
Exports the diagram to the specified stream in an image format. |
Export |
Exports the diagram to the specified file. |
Export |
Exports the diagram to a single-page PDF file specified by the user in the invoked dialog window. |
Export |
Exports the diagram to a single-page PDF document which is sent to the specified stream. |
Export |
Exports the diagram to a single-page PDF file. |
Export |
Exports the diagram to a single-page PDF file specified by the user in the invoked dialog window. |
Export |
Exports the diagram in the SVG format to the specified stream. |
Export |
Invokes the Export dialog window. |
Export |
Exports the diagram in the SVG format to a file. |
Find |
Returns the common ancestor of two visual objects. Inherited from Visual. |
Find |
Finds an element that has the provided identifier name.
Inherited from Framework |
Find |
Searches for a resource with the specified key, and throws an exception if the requested resource is not found.
Inherited from Framework |
Fit |
Changes the page size to fit the diagram contents. |
Fit |
Scrolls the diagram and changes its zoom factor so that the viewport is sufficiently large to display the specified items. |
Fit |
Sets the diagram zoom factor value to fit all pages with content within the viewport. |
Fit |
Sets the diagram zoom factor value to fit the entire diagram width. |
Focus() | Attempts to set focus to this element. Inherited from UIElement. |
Get |
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. |
Get |
Returns the Binding |
Get |
Gets the value of the Diagram |
Get |
Gets the value of the Diagram |
Get |
Gets the value of the Flow |
Get |
Gets a hash code for this Dependency |
Get |
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 Framework |
Get |
Creates a specialized enumerator for determining which dependency properties have locally set values on this Dependency |
Get |
Returns the named element in the visual tree of an instantiated Control |
Get |
Gets the Type of the current instance. Inherited from Object. |
Get |
Returns an alternative logical parent for this element if there is no visual parent.
Inherited from Framework |
Get |
Returns the current effective value of a dependency property on this instance of a Dependency |
Get |
Returns the bounds of the currently visible area. |
Get |
Overrides Get |
Hit |
Implements Hit |
Hit |
Implements Hit |
Input |
Returns the input element within the current element that is at the specified coordinates, relative to the current element’s origin. Inherited from UIElement. |
Insert |
Invokes the Insert Picture dialog that allows the end-user to add an image item to the diagram. |
Invalidate |
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 Update |
Invalidate |
Invalidates the measurement state (layout) for the element. Inherited from UIElement. |
Invalidate |
Re-evaluates the effective value for the specified dependency property.
Inherited from Dependency |
Invalidate |
Invalidates the rendering of the element, and forces a complete new layout pass. On |
Is |
Determines whether the visual object is an ancestor of the descendant visual object. Inherited from Visual. |
Is |
Determines whether the visual object is a descendant of the ancestor visual object. Inherited from Visual. |
Load |
Loads a diagram document from a stream. |
Load |
Loads a diagram from the specified file. |
Load |
Invokes the Insert Picture dialog that allows the end-user to to change the selected image item. |
Measure |
Updates the Desired |
Measure |
Implements basic measure-pass layout system behavior for Framework |
Measure |
Called to remeasure a control. Inherited from Control. |
Memberwise |
Creates a shallow copy of the current Object. Inherited from Object. |
Move |
Moves the keyboard focus away from this element and to another element in a provided traversal direction.
Inherited from Framework |
New |
Discards the current document and creates a new one. |
New |
Closes the current file and creates a new one. |
On |
Provides class handling for when an access key that is meaningful for this element is invoked. Inherited from UIElement. |
On |
Called after the template is completely generated and attached to the visual tree. |
On |
Supports layout behavior when a child element is resized. Inherited from UIElement. |
On |
Invoked whenever an unhandled Context |
On |
Invoked whenever an unhandled Context |
On |
Called when the DPI at which this View is rendered changes. Inherited from Visual. |
On |
Invoked when an unhandled Drag |
On |
Invoked when an unhandled Drag |
On |
Invoked when an unhandled Drag |
On |
Invoked when an unhandled Drag |
On |
Invoked when an unhandled Give |
On |
Invoked whenever an unhandled Got |
On |
Invoked when an unhandled Got |
On |
Invoked when an unhandled Got |
On |
Invoked when an unhandled Got |
On |
Provides class handling for the Got |
On |
Raises the Initialized event. This method is invoked whenever Istrue internally.
Inherited from Framework |
On |
Invoked when an unhandled Is |
On |
Invoked just before the Is |
On |
Invoked when an unhandled Is |
On |
Invoked when an unhandled Is |
On |
Invoked when an unhandled Is |
On |
Invoked when an unhandled Is |
On |
Invoked when an unhandled Is |
On |
Invoked when an unhandled Is |
On |
Invoked when an unhandled Key |
On |
Invoked when an unhandled Key |
On |
Raises the Lost |
On |
Invoked when an unhandled Lost |
On |
Invoked when an unhandled Lost |
On |
Invoked when an unhandled Lost |
On |
Provides class handling for the Lost |
On |
Called when the Manipulation |
On |
Called when the Manipulation |
On |
Called when the Manipulation |
On |
Called when the Manipulation |
On |
Called when the Manipulation |
On |
Provides class handling for the Manipulation |
On |
Raises the Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Mouse |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Raises the Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Invoked when an unhandled Preview |
On |
Provides class handling for the Preview |
On |
Provides class handling for the Preview |
On |
Provides class handling for the Preview |
On |
Invoked when an unhandled Query |
On |
Invoked when an unhandled Query |
On |
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. |
On |
Raises the Size |
On |
Invoked when the style in use on this element changes, which will invalidate the layout.
Inherited from Framework |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Invoked when an unhandled Stylus |
On |
Called whenever the control’s template changes. Inherited from Control. |
On |
Invoked when an unhandled Text |
On |
Invoked whenever an unhandled Tool |
On |
Invoked whenever the Tool |
On |
Provides class handling for the Touch |
On |
Provides class handling for the Touch |
On |
Provides class handling for the Touch |
On |
Provides class handling for the Touch |
On |
Provides class handling for the Touch |
On |
Called when the Visual |
On |
Invoked when the parent of this element in the visual tree is changed. Overrides On |
Open |
Displays the “Open File” dialog that allows an end-user to load an XML file containing a saved diagram. |
Parent |
Supports incremental layout implementations in specialized subclasses of Framework |
Paste() | Inserts the diagram items from the clipboard onto the Canvas. |
Point |
Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual. Inherited from Visual. |
Point |
Converts the coordinates of a point on the canvas to the control-relative coordinates. |
Point |
Converts the control-relative coordinates to the coordinates of a point on the canvas. |
Point |
Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates. Inherited from Visual. |
Predict |
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 Framework |
Print() | Invokes the Print dialog window. |
Print |
Invokes the Print dialog window. |
Print |
Invokes the Print dialog window. |
Print |
Exports the diagram to a multi-page PDF file specified by the user in the invoked dialog window. |
Print |
Exports the diagram to a multi-page PDF file specified by the user in the invoked dialog window. |
Print |
Exports the diagram to a multi-page PDF file specified by the user in the invoked dialog window. |
Print |
Exports the diagram to a multi-page PDF document which is sent to the specified stream. |
Print |
Exports the diagram to a multi-page PDF document which is sent to the specified stream. |
Print |
Exports the diagram to a multi-page PDF document which is sent to the specified stream. |
Quick |
Prints the current diagram to the default printer. |
Quick |
Prints the current diagram to the default printer. |
Quick |
Prints the current diagram to the default printer. |
Raise |
Raises a specific routed event. The Routed |
Read |
Returns the local value of a dependency property, if it exists.
Inherited from Dependency |
Reference |
Determines whether the specified Object instances are the same instance. Inherited from Object. |
Register |
Provides an accessor that simplifies access to the Name |
Register |
Registers a custom routing strategy for the specified connector type. |
Release |
Releases all captured touch devices from this element. Inherited from UIElement. |
Release |
Releases the mouse capture, if this element held the capture. Inherited from UIElement. |
Release |
Releases the stylus device capture, if this element held the capture. Inherited from UIElement. |
Release |
Attempts to release the specified touch device from this element. Inherited from UIElement. |
Remove |
Removes the specified routed event handler from this element. Inherited from UIElement. |
Remove |
Removes the provided object from this element’s logical tree. Framework |
Remove |
Removes the parent-child relationship between two visuals. Inherited from Visual. |
Reset |
Rolls the selected images back to their original state, reverting all resizing and rotation transformations. |
Save |
Saves the current diagram document to a stream. |
Save |
Saves the current diagram to the specified file. |
Save |
Saves the diagram to a file. |
Save |
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. |
Scroll |
Scrolls the diagram to the specified point. |
Select |
Selects all shapes and connectors within the current document. |
Select |
Selects the specified diagram item. |
Select |
Selects the specified diagram items. |
Select |
Selects the specified diagram items. |
Send |
Sends the specified diagram items back one step in the stack. |
Send |
Sends the specified diagram items to the back of the stack. |
Send |
Sends the selected diagram items back one step in the stack. |
Send |
Sends the specified diagram items to the back of the stack. |
Set |
Attaches a binding to this element, based on the provided source property name as a path qualification to the data source.
Inherited from Framework |
Set |
Attaches a binding to this element, based on the provided binding object.
Inherited from Framework |
Set |
|
Set |
Sets the value of a dependency property without changing its value source.
Inherited from Dependency |
Set |
Sets the value of the Diagram |
Set |
Sets the value of the Diagram |
Set |
Sets the value of the Flow |
Set |
Searches for a resource with the specified name and sets up a resource reference to it for the specified property.
Inherited from Framework |
Set |
Sets the specified zoom factor for selected image items. |
Set |
Sets the specified stretch mode for selected image items. |
Set |
Sets the local value of a dependency property, specified by its dependency property identifier.
Inherited from Dependency |
Set |
Sets the local value of a read-only dependency property, specified by the Dependency |
Should |
Returns whether serialization processes should serialize the contents of the Command |
Should |
Returns whether serialization processes should serialize the contents of the Input |
Should |
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.
Inherited from Dependency |
Should |
Returns whether serialization processes should serialize the contents of the Resources property.
Inherited from Framework |
Should |
Returns whether serialization processes should serialize the contents of the Style property.
Inherited from Framework |
Should |
Returns whether serialization processes should serialize the contents of the Triggers property.
Inherited from Framework |
Show |
Invokes the text editor for the primary selected diagram shape. |
Show |
Invokes the Print Preview. |
Show |
|
Show |
|
IQuery |
For a description of this member, see the Is |
Toggle |
Shows or hides the subordinates of the selected diagram item. |
To |
Returns the string representation of a Control object. Inherited from Control. |
Transform |
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. |
Transform |
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. |
Transform |
Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. Inherited from Visual. |
Transform |
Returns a transform that can be used to transform coordinates from the Visual to the specified visual object. Inherited from Visual. |
Translate |
Translates a point relative to this element to coordinates that are relative to the specified element. Inherited from UIElement. |
Try |
Searches for a resource with the specified key, and returns that resource if found.
Inherited from Framework |
Unregister |
Simplifies access to the Name |
Unregister |
Removes the custom routing strategy applied to the specified connector type. |
Unselect |
Unselects the specified diagram item. |
Update |
Recalculates the route for the specified diagram connectors. |
Update |
Reapplies the default style to the current Framework |
Update |
Ensures that all visual child elements of this element are properly updated for layout. Inherited from UIElement. |
Verify |
Enforces that the calling thread has access to this Dispatcher |
Zoom |
Increases the document zoom factor. |
Zoom |
Decreases the document zoom factor. |
See Also