[]
        
(Showing Draft Content)

C1.Framework.XViewLight

XViewLight Class

Control that hosts X elements.

Inheritance
XViewLight
Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public abstract class XViewLight : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IView, ISupportUia

Constructors

Name Description
XViewLight()

Initializes a new instance of the XViewLight control.

Properties

Name Description
CapturedElement

Gets or sets the element that receives all mouse events.

Cursor

Gets or sets the Cursor that appears when the mouse moves over the control.

Element

Element hosted by this XViewLight.

FocusedElement

Gets the element that has the focus.

HandleElementFocus

Gets or sets whether the control should handle the focus within contained elements.

HoveredElement

Gets the element currently under the mouse.

ShowToolTips

Gets or sets whether the XView should display tooltips for elements that implement the IToolTipElement interface.

SuperTooltip

Gets or sets the external instance of C1SuperTooltip class used to display tooltips for inner elements.

Methods

Name Description
BeginUpdate()

Suspends painting during long update operations.

CheckHover()

checks the element under the mouse and updates the control state.

Dispose(bool)

Releases the unmanaged resources used by the XViewLight control.

EndUpdate()

Restores painting after long update operations.

Focus(Element)

Set the focus to a given element.

GetBounds(Element, bool, bool)

Gets the rectangle that contains a given element.

GetDeviceDpi()

Gets the DPI value for the display device where the control is currently being displayed.

GetNextElement(Element, bool, bool, bool, bool)

Gets the next Element given a start Element.

GetToolTip(Control)

Retrieves the rich tooltip text associated with the specified control.

HideToolTip()

Hides tooltip if it is currently visible.

HitTest()

Gets the hit-testable element under the mouse.

HitTest(Point)

Gets the hit-testable element at a given position.

Invalidate(Element)

Invalidates the contained element.

IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnClick(EventArgs)

Raises the Click event.

OnDoubleClick(EventArgs)

Raises the DoubleClick event.

OnEnabledChanged(EventArgs)

Raises the EnabledChanged event.

OnGotFocus(EventArgs)

Raises the GotFocus event.

OnHandleDestroyed(EventArgs)

Remove hosted controls before disposing of the parent control.

OnInvalidated(InvalidateEventArgs)

Remove hosted controls that belong to elements which became invisible or belong to a different control now.

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

OnKeyPress(KeyPressEventArgs)

Raises the KeyPress event.

OnKeyUp(KeyEventArgs)

Raises the KeyUp event.

OnLeave(EventArgs)

Raises the Leave event.

OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

OnMouseEnter(EventArgs)

Raises the MouseEnter event.

OnMouseLeave(EventArgs)

Raises the MouseLeave event.

OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

OnPaint(PaintEventArgs)

Raises the Paint event.

OnRightToLeftChanged(EventArgs)

Raises the RightToLeftChanged event.

OnValidated(EventArgs)

Raises the Validated event.

OnValidating(CancelEventArgs)

Raises the Validating event.

RescaleConstantsForDpi(int, int)

Provides constants for rescaling the control when a DPI change occurs.

SetBoundsCore(int, int, int, int, BoundsSpecified)
SetToolTip(Control, string)

Associates a rich tooltip with a control.

UpdateToolTip()

Updates the tooltip for the hovered element.

WndProc(ref Message)