Class GenericControl
Implements generic control which is handled inside the library. Generic control doesn't have native handle.
public class GenericControl : AbstractControl, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
- Inheritance
-
GenericControl
- Implements
- Derived
Constructors
- GenericControl()
Initializes a new instance of the GenericControl class.
Properties
- Cursor
Gets or sets the cursor that the control should normally display.
- HasBorder
Gets or sets a value indicating whether the control has a border.
- IsClipped
Gets or sets whether control contents is clipped and is not painted outside it's bounds.
- IsHandleCreated
Gets a value indicating whether the control has a native window handle associated with it.
- NonGenericParent
Gets the first parent control in the parent chain which is not GenericControl.
- RefreshOptions
Gets or sets different behavior and visualization options.
Methods
- DefaultPaint(PaintEventArgs)
Default painting method of the GenericControl and its descendants.
- GetBackground(VisualControlState)
Gets the background brush for specified state of the control.
- GetBackgroundAction(VisualControlState)
Gets the background paint action for specified state of the control.
- GetBorderSettings(VisualControlState)
Gets the border settings for specified state of the control.
- GetDefaultHasBorder()
Gets default value for HasBorder.
- Invalidate()
Invalidates the control and causes a paint message to be sent to the control.
- OnBoundsChanged(EventArgs)
Called when the BoundsChanged event is raised.
- OnMouseLeftButtonDown(MouseEventArgs)
Called when the left mouse button was pressed.
- OnMouseLeftButtonUp(MouseEventArgs)
Called when the left mouse button was released.
- OnPaint(PaintEventArgs)
Called when the control is redrawn. See Paint for details.
- OnVisibleChanged(EventArgs)
Called when the value of the Visible property changes.
- OnVisualStateChanged(EventArgs)
Called when VisualStateChanged property is changed.
- ShowDropDownMenu()
Shows attached drop down menu.
- Update()
Causes the control to redraw the invalidated regions.