[This is preliminary documentation and is subject to change.]
The Element type exposes the following members.Constructors
| Name | Description | |
|---|---|---|
| Element | Initializes a new instance of the Element class |
Methods
| Name | Description | |
|---|---|---|
| Destructor | (Overrides DisposableObject Destructor .) | |
| Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) | |
| EnabledChanged |
Override to take action after element's enabled state change
| |
| EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) | |
Determines whether the specified object is equal to the current object. (Inherited from | ||
| FieldControlContextChanged | ||
| Finalize | (Inherited from DisposableObject.) | |
Serves as the default hash function. (Inherited from | ||
Gets the (Inherited from | ||
| Invalidate |
Invalidates space occupied by this element.
This causes repaint of any elements overlapped by elements region
| |
Creates a shallow copy of the current (Inherited from | ||
| MouseTransparentChanged |
Override to take action after element's mouse transparency change
| |
| OnMouseClick | ||
| OnMouseDoubleClick | ||
| OnMouseDown | ||
| OnMouseDrag | ||
| OnMouseDragCancel | ||
| OnMouseDragRelease | ||
| OnMouseDragStart | ||
| OnMouseEnter | ||
| OnMouseLeave | ||
| OnMouseMove | ||
| OnMouseUp | ||
| OnMouseWheel | ||
| Paint | ||
| RegionChanged |
Override to take action after element's region changed
| |
| Repaint |
Repaints this particular element instance
| |
Returns a string that represents the current object. (Inherited from | ||
| UpdateLocation |
Updates element location by delta x/y without causing invalidate
| |
| VisibleChanged |
Override to take action after element's visibility change
| |
| ZOrderChanged |
Override to take action after element's Z-order changed
|
Extension Methods
Fields
| Name | Description | |
|---|---|---|
| m_Host |
Properties
| Name | Description | |
|---|---|---|
| DisplayRegion |
Provides graphical region- coordinates of the element in zoomed container. These coordinates are different from Region when Zoom!=1
because Region returns "normal"/non-zoomed coordinates. Mouse event handlers must use DisplayRegion because mouse is in screen coordinates
| |
| Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) | |
| DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) | |
| Enabled |
Indicates whether an element can receive events
| |
| FieldControlContext |
References control context for which element painting is done, may be null.
Part renderers may need control context to paint additional features like changed borders (when mofified etc.).
| |
| Height |
Shortcut property to element's region
| |
| Host |
References host control
| |
| Left |
Shortcut property to element's region
| |
| MouseIsOver |
Returns true if mouse is currently over the element
| |
| MouseTransparent |
Indicates whether an element does not receive any mouse events
| |
| OwnedElements |
Returns a list of elements owned by this element. Owned elements are deleted when this element is deleted.
Element ownership does not affect element drawing
| |
| Region |
Provides graphical region- coordinates of the element without zoom. Even when host container is zoomed it has no effect on Region. Compare to DisplayRegion
| |
| Tags | ||
| Top |
Shortcut property to element's region
| |
| Visible |
Indicates whether an element is displayed
| |
| Width |
Shortcut property to element's region
| |
| ZOrder |
Indicates whether an element is displayed
|
Events
| Name | Description | |
|---|---|---|
| MouseClick | ||
| MouseDoubleClick | ||
| MouseDown | ||
| MouseDrag | ||
| MouseDragCancel | ||
| MouseDragRelease | ||
| MouseDragStart | ||
| MouseEnter | ||
| MouseLeave | ||
| MouseMove | ||
| MouseUp | ||
| MouseWheel |
See Also