public class Control : BindableWidget, IMouseInputSource, IKeyboardInputSource, ICallbackSource
Public Class Control Inherits BindableWidget Implements IMouseInputSource, IKeyboardInputSource, ICallbackSource
type Control = class inherit BindableWidget interface IMouseInputSource interface IKeyboardInputSource interface ICallbackSource end
Thetype exposes the following members.
Initializes a new instance of theclass.
Initializes a new instance of the Container with the specified handler
Gets or sets a value indicating whether this control can serve as drop target.
Gets or sets the color for the background of the control
Gets the bounding rectangle of this control relative to its container
Gets or sets the type of cursor to use when the mouse is hovering over the control
Gets or sets a value indicating whether thisis enabled and accepts user input.
Gets a value indicating whether this instance has the keyboard input focus.
Gets or sets the height of the control size.
Gets a value indicating whether the layout of child controls is suspended.
Gets a value indicating thisis part of the visual tree.
Gets a value indicating that the control is loaded onto a form, that is it has been created, added to a parent, and shown
Gets the location of the control as positioned by the container
Gets the logical parent control.
Gets the container which this control has been added to, if any
Gets the window this control is contained in
Gets or sets the size of the control. Use -1 to specify auto sizing for either the width and/or height.
Gets the supported platform commands that can be used to hook up system functions to user defined logic
Gets or sets the tab index order for this control within its container.
Gets or sets a user-defined object that contains data about the control
Gets or sets the tool tip to show when the mouse is hovered over the control
Gets or sets a value indicating whether thisis visible to the user.
Gets an enumeration of controls that are in the visual tree.
Gets the visual container of this control, if any.
Gets or sets the width of the control size.
Attaches the control for direct use in a native application
Detaches the control by removing it from its parent
Detaches the control when it is used in a native application, when you want to reuse the control.
Handles the disposal of this control(Overrides WidgetDispose(Boolean).)
Starts drag operation using this control as drag source.
Finds a control in the parent hierarchy with the specified id
Finds a control in the parent hierarchy with the specified type and ID if specified
Attempts to set the keyboard input focus to this control, or the first child that accepts focus
Gets an instance of an object used to perform callbacks to the widget from handler implementations(Overrides WidgetGetCallback.)
Queues a repaint of the entire control on the screen and any of its children.
Queues a repaint of the entire control on the screen
Queues a repaint of the specified rect of the control and any children.
Queues a repaint of the specified rect of the control
Specifies a command to execute for a platform-specific command
Raises the DragDrop event.
Raises the DragEnter event.
Raises the DragLeave event.
Raises the DragOver event.
Raises the EnabledChanged event.
Raises the GotFocus event.
Raises the KeyDown event.
Raises the KeyUp event.
Raises the Load event.
Raises the LoadComplete event.
Raises the LostFocus event.
Raises the mouse MouseDoubleClick event.
Raises the MouseDown event.
Raises the MouseEnter event.
Raises the MouseLeave event.
Raises the MouseMove event.
Raises the MouseUp event.
Raises the MouseWheel event.
Raises the PreLoad event.
Raises the Shown event.
Raises the SizeChanged event.
Raises the TextInput event.
Raises the UnLoad event.
Converts a point from screen space to control space.
Converts a point from control space to screen space
Converts a rectangle from control space to screen space
Converts a rectangle from screen space to control space.
Resumes the layout after it has been suspended, and performs a layout
Suspends the layout of child controls
Occurs when a drag operation is dropped onto the control.
Occurs when a drag operation enters the bounds of the control.
Occurs when a drag operation leaves the bounds of the control or the drag operation was completed inside the control.
Occurs when a drag operation is over the control and needs updating based on position or keyboard state changes.
Occurs when the Enabled value is changed.
Occurs when the control receives keyboard focus.
Occurs when a key has been pressed and is down
Occurs when a key was released
Occurs when the control is displayed on a visible window
Occurs when the load is complete, which happens after the Load event
Occurs when control loses keyboard focus
Occurs when a mouse button is double clicked within the bounds of the control
Occurs when a mouse button has been pressed
Occurs when the mouse enters the bounds of the control
Occurs when mouse leaves the bounds of the control
Occurs when mouse moves within the bounds of the control, or when the mouse is captured
Occurs when a mouse button is released
Occurs when mouse wheel has been changed
Occurs before the control is loaded. See the Load event for more detail.
Occurs when the control is shown on the screen
Occurs when the size of the control is changed.
Occurs when text is input for the control. Currently only partially supported on iOS.
Occurs when the control is unloaded, which happens when removed from the control hierarchy or the window is closed.
|(String to Control)|
Converts a string to a label control implicitly.
|(Image to Control)|
Converts an Image to a control implicitly.
Event identifier for handlers when attaching the DragDrop event
Event identifier for handlers when attaching the DragEnter event
Event identifier for handlers when attaching the DragLeave event
Event identifier for handlers when attaching the DragOver event
Event identifier for handlers when attaching the GotFocus event
Event identifier for handlers when attaching the KeyDown event.
Event identifier for handlers when attaching the KeyUp event
Event identifier for handlers when attaching the LostFocus event
Event identifier for handlers when attaching the MouseDoubleClick event
Event identifier for handlers when attaching the MouseDown event
Event identifier for handlers when attaching the MouseEnter event
Event identifier for handlers when attaching the MouseLeave event
Event identifier for handlers when attaching the MouseMove event
Event identifier for handlers when attaching the MouseUp event
Event identifier for handlers when attaching the MouseWheel event
Event identifier for handlers when attaching the Shown event
Event identifier for handlers when attaching the SizeChanged event
Event identifier for handlers when attaching the TextInput event