[]
        
(Showing Draft Content)

C1.Framework.XView

XView Class

Control that hosts X elements.

The control has an C1.Framework.XView.Element property that gets or sets the element to be displayed.

The control is responsible for displaying the element, providing scrolling, and routing mouse and keyboard events to the hosted element.

Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public class XView : ScrollableControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IView, ISupportSuperTooltip, ISupportUia

Constructors

Name Description
XView()

Initializes a new instance of the XView control.

Properties

Name Description
FocusedElement

Gets the element that has the focus.

ShowToolTips

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

SmoothingMode

Gets or sets the SmoothingMode value that controls anti-aliasing.

SuperTooltip

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

TextRenderingHint

Gets or sets the TextRenderingHint that controls text rendering quality.

Methods

Name Description
BeginUpdate()

Suspends painting during long update operations.

BuildScrollableRectangle(int, int)

Sets the scroll rectangle.

CreateGraphics()

Creates a Graphics object for the control.

Dispose(bool)

Releases all resources used by the control.

EndUpdate()

Restores painting after long update operations.

Focus(Element)

Set the focus to a given element.

GetBounds(Element)

Gets the rectangle that contains 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 C1.Framework.XView.Element given a start C1.Framework.XView.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.

IsInputKey(Control, Keys)

Internal version of IsInputKey that should be called by hosted controls in order to allow the view to handle tab keys, arrows, etc.

IsInputKey(Keys)

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

IsMouseInsideXView()

Returns True if the mouse pointer is inside the XView control.

LogicalToDeviceThickness(Thickness)

Transforms a Thickness from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for left, right, top and bottom.

LogicalToDeviceUnits(int, int, int, int)

Transforms a Thickness from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for left, right, top and bottom.

OnClick(EventArgs)

Raises the Click event.

OnDoubleClick(EventArgs)

Raises the DoubleClick 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.

OnValidated(EventArgs)

Raises the Validated event.

OnValidating(CancelEventArgs)

Raises the Validating event.

RescaleConstantsForDpi(int, int)
ResubscribeTooltip(C1SuperTooltipBase, C1SuperTooltipBase)

Occurs when an external C1SuperTooltip is attached or detached.

ScrollIntoView(Element)

Scrolls a given element into view.

ScrollIntoView(Point)

Scrolls a given point into view.

ScrollIntoView(Rectangle)

Scrolls a given rectangle into view.

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

Associates a rich tooltip with a control.

UpdateElementBounds()

Update contained element size when the control is resized.

UpdateToolTip()

Updates the tooltip for the hovered element.

WndProc(ref Message)

This member overrides WndProc(ref Message).