Class
RadFormControlBase

Represents the base class for all Telerik forms that provides core functionality for themed form controls. This abstract class serves as the foundation for creating custom forms with advanced UI capabilities and theming support.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public abstract class RadFormControlBase : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBase

Derived Classes: RadFormRadNonClientUIBaseForm<T, U>

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIContainerControlIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members Form.SetVisibleCore(bool)Form.Activate()Form.ActivateMdiChild(Form)Form.AddOwnedForm(Form)Form.AdjustFormScrollbars(bool)Form.Close()Form.CreateControlsInstance()Form.DefWndProc(ref Message)Form.ProcessMnemonic(char)Form.CenterToParent()Form.CenterToScreen()Form.LayoutMdi(MdiLayout)Form.OnActivated(EventArgs)Form.OnBackgroundImageChanged(EventArgs)Form.OnBackgroundImageLayoutChanged(EventArgs)Form.OnClosing(CancelEventArgs)Form.OnClosed(EventArgs)Form.OnFormClosing(FormClosingEventArgs)Form.OnFormClosed(FormClosedEventArgs)Form.OnDeactivate(EventArgs)Form.OnEnabledChanged(EventArgs)Form.OnEnter(EventArgs)Form.OnHandleDestroyed(EventArgs)Form.OnHelpButtonClicked(CancelEventArgs)Form.OnMaximizedBoundsChanged(EventArgs)Form.OnMaximumSizeChanged(EventArgs)Form.OnMinimumSizeChanged(EventArgs)Form.OnInputLanguageChanged(InputLanguageChangedEventArgs)Form.OnInputLanguageChanging(InputLanguageChangingEventArgs)Form.OnMdiChildActivate(EventArgs)Form.OnMenuStart(EventArgs)Form.OnMenuComplete(EventArgs)Form.OnResize(EventArgs)Form.OnDpiChanged(DpiChangedEventArgs)Form.OnGetDpiScaledSize(int, int, ref Size)Form.OnRightToLeftLayoutChanged(EventArgs)Form.OnTextChanged(EventArgs)Form.ProcessCmdKey(ref Message, Keys)Form.ProcessDialogChar(char)Form.ProcessKeyPreview(ref Message)Form.ProcessTabKey(bool)Form.RemoveOwnedForm(Form)Form.Select(bool, bool)Form.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Form.SetDesktopBounds(int, int, int, int)Form.SetDesktopLocation(int, int)Form.Show(IWin32Window)Form.ShowDialog()Form.ShowDialog(IWin32Window)Form.ToString()Form.OnResizeBegin(EventArgs)Form.OnResizeEnd(EventArgs)Form.OnStyleChanged(EventArgs)Form.ValidateChildren()Form.ValidateChildren(ValidationConstraints)Form.AcceptButtonForm.ActiveFormForm.ActiveMdiChildForm.AllowTransparencyForm.AutoScrollForm.AutoSizeForm.AutoSizeModeForm.AutoValidateForm.CancelButtonForm.ClientSizeForm.ControlBoxForm.DefaultImeModeForm.DefaultSizeForm.DesktopBoundsForm.DesktopLocationForm.DialogResultForm.HelpButtonForm.IconForm.IsMdiChildForm.IsMdiContainerForm.IsRestrictedWindowForm.KeyPreviewForm.LocationForm.MaximizedBoundsForm.MainMenuStripForm.MenuForm.MaximizeBoxForm.MdiChildrenForm.MdiParentForm.MergedMenuForm.MinimizeBoxForm.ModalForm.OpacityForm.OwnedFormsForm.OwnerForm.RestoreBoundsForm.RightToLeftLayoutForm.ShowInTaskbarForm.ShowIconForm.ShowWithoutActivationForm.SizeForm.SizeGripStyleForm.StartPositionForm.TextForm.TopLevelForm.TopMostForm.TransparencyKeyForm.WindowStateForm.AutoSizeChangedForm.AutoValidateChangedForm.HelpButtonClickedForm.MaximizedBoundsChangedForm.MaximumSizeChangedForm.MinimumSizeChangedForm.ActivatedForm.DeactivateForm.FormClosingForm.FormClosedForm.LoadForm.MdiChildActivateForm.MenuCompleteForm.MenuStartForm.InputLanguageChangedForm.InputLanguageChangingForm.RightToLeftLayoutChangedForm.ShownForm.DpiChangedForm.ResizeBeginForm.ResizeEndContainerControl.OnAutoValidateChanged(EventArgs)ContainerControl.PerformAutoScale()ContainerControl.Validate()ContainerControl.Validate(bool)ContainerControl.AutoScaleDimensionsContainerControl.AutoScaleFactorContainerControl.AutoScaleModeContainerControl.BindingContextContainerControl.CanEnableImeContainerControl.ActiveControlContainerControl.CurrentAutoScaleDimensionsContainerControl.ParentFormScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.GetScrollState(int)ScrollableControl.OnMouseWheel(MouseEventArgs)ScrollableControl.OnRightToLeftChanged(EventArgs)ScrollableControl.OnPaddingChanged(EventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateGraphics()Control.CreateControl()Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsInputKey(Keys)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBindingContextChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnClick(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnLocationChanged(EventArgs)Control.OnDoubleClick(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnGotFocus(EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnKeyDown(KeyEventArgs)Control.OnKeyPress(KeyPressEventArgs)Control.OnKeyUp(KeyEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnLostFocus(EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnMouseCaptureChanged(EventArgs)Control.OnMouseDown(MouseEventArgs)Control.OnMouseEnter(EventArgs)Control.OnMouseLeave(EventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMouseHover(EventArgs)Control.OnMouseMove(MouseEventArgs)Control.OnMouseUp(MouseEventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.Refresh()Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CausesValidationControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.PaddingControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadFormControlBase()

Initializes a new instance of the RadFormControlBase class.

Declaration

cs-api-definition
public RadFormControlBase()

Fields

controlIsInitializingRootComponent

Declaration

cs-api-definition
public bool controlIsInitializingRootComponent

Field Value

bool

currentDpi

The current DPI value.

Declaration

cs-api-definition
protected int currentDpi

Field Value

int

isBehaviorPrepared

Declaration

cs-api-definition
protected bool isBehaviorPrepared

Field Value

bool

isPainting

Declaration

cs-api-definition
protected bool isPainting

Field Value

bool

newBounds

The new bounds for the new DPI that we receive on WM_DPICHANGED.

Declaration

cs-api-definition
protected Rectangle newBounds

Field Value

Rectangle

oldDpi

The old DPI value before a DPI change occurs.

Declaration

cs-api-definition
protected int oldDpi

Field Value

int

Properties

AllowShowFocusCues

Gets or sets a value indicating whether focus cues are shown when available, based on the corresponding control type and the current UI state.

Declaration

cs-api-definition
public virtual bool AllowShowFocusCues { get; set; }

Property Value

bool

AllowTheming

Gets or sets a value indicating whether the form customizes its non-client area when under Vista with Composition enabled.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool AllowTheming { get; set; }

Property Value

bool

BackColor

Gets or sets the BackColor of the control. This is actually the BackColor property of the root element.

Declaration

cs-api-definition
public override Color BackColor { get; set; }

Property Value

Color

Overrides Form.BackColor

Behavior

Gets the ComponentInputBehavior instance that handles all logic and user interaction in RadControl.

Declaration

cs-api-definition
[Browsable(false)]
public virtual ComponentInputBehavior Behavior { get; }

Property Value

ComponentInputBehavior

CommandBindings

Gets the command bindings collection for input handling.

Declaration

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
public InputBindingsCollection CommandBindings { get; }

Property Value

InputBindingsCollection

CreateParams

Gets or sets the creation parameters for the window.

Declaration

cs-api-definition
protected override CreateParams CreateParams { get; }

Property Value

CreateParams

Overrides Form.CreateParams

ElementTree

Gets the element tree for this control.

Declaration

cs-api-definition
public ComponentThemableElementTree ElementTree { get; }

Property Value

ComponentThemableElementTree

Implements IComponentTreeHandler.ElementTree

EnableAnalytics

Gets or sets a value indicating whether the Analytics functionality is enabled or disbaled for this control.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool EnableAnalytics { get; set; }

Property Value

bool

Implements IAnalyticsProvider.EnableAnalytics

EnableKeyMap

Gets or sets a value indicating whether the Key Map (Office 2007 like accelerator keys map) is used for this specific control. Currently this option is implemented for the RadRibbonBar control only.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableKeyMap { get; set; }

Property Value

bool

FocusedElement

Gets or sets the currently focused element.

Declaration

cs-api-definition
[Browsable(false)]
public RadElement FocusedElement { get; set; }

Property Value

RadElement

Font

Gets or sets the Font of the control. This is actually the Font property of the root element.

Declaration

cs-api-definition
public override Font Font { get; set; }

Property Value

Font

Overrides Control.Font

ForeColor

Gets or sets the ForeColor of the control. This is actually the ForeColor property of the root element.

Declaration

cs-api-definition
public override Color ForeColor { get; set; }

Property Value

Color

Overrides Control.ForeColor

FormBehavior

Gets the behavior associated with this form if any.

Declaration

cs-api-definition
public FormControlBehavior FormBehavior { get; set; }

Property Value

FormControlBehavior

FormBorderStyle

Gets or sets the FormBorderStyle of the Form.

Declaration

cs-api-definition
public FormBorderStyle FormBorderStyle { get; set; }

Property Value

FormBorderStyle

HasOwnToolbar

Gets a value indicating whether the form has its own toolbar.

Declaration

cs-api-definition
protected virtual bool HasOwnToolbar { get; }

Property Value

bool

ImageList

Gets or sets the ImageList that contains the images displayed by this control.

Declaration

cs-api-definition
[Browsable(true)]
public ImageList ImageList { get; set; }

Property Value

ImageList

Implements IComponentTreeHandler.ImageList

ImageScalingSize

Gets or sets the scaling size for images.

Declaration

cs-api-definition
public Size ImageScalingSize { get; set; }

Property Value

Size

Implements IComponentTreeHandler.ImageScalingSize

IsDesignMode

Gets a value indicating whether the control is in design mode.

Declaration

cs-api-definition
public bool IsDesignMode { get; }

Property Value

bool

Implements IComponentTreeHandler.IsDesignMode

IsDpiScalingSuspended

Gets a value indicating whether DPI scaling is suspended.

Declaration

cs-api-definition
public bool IsDpiScalingSuspended { get; }

Property Value

bool

IsInitialized

Gets a value indicating whether the component is initialized.

Declaration

cs-api-definition
public bool IsInitialized { get; }

Property Value

bool

Implements ISupportInitializeNotification.IsInitialized

IsLoaded

Gets a value indicating whether the control is loaded.

Declaration

cs-api-definition
public bool IsLoaded { get; }

Property Value

bool

IsPerformingScale

Gets a value indicating whether the control is currently performing scaling operations.

Declaration

cs-api-definition
public bool IsPerformingScale { get; }

Property Value

bool

IsUpdateSuspended

Gets a value indicating whether the control's update is suspended.

Declaration

cs-api-definition
protected bool IsUpdateSuspended { get; }

Property Value

bool

MaximumSize

Gets or sets the maximum size of the control.

Declaration

cs-api-definition
public override Size MaximumSize { get; set; }

Property Value

Size

Overrides Form.MaximumSize

MinimumSize

Gets or sets the minimum size of the control.

Declaration

cs-api-definition
public override Size MinimumSize { get; set; }

Property Value

Size

Overrides Form.MinimumSize

RootElement

Gets the RootElement of the control.

Declaration

cs-api-definition
[Browsable(true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public RootRadElement RootElement { get; }

Property Value

RootRadElement

Implements IComponentTreeHandler.RootElement

ShowItemToolTips

Gets or sets a value indicating whether ToolTips are shown for the RadItem objects contained in the RadControl.

Declaration

cs-api-definition
public virtual bool ShowItemToolTips { get; set; }

Property Value

bool

Site

Gets or sets the site of the control and manages design mode state.

Declaration

cs-api-definition
public override ISite Site { get; set; }

Property Value

ISite

Overrides Control.Site

SmallImageList

Gets or sets the ImageList that contains the images displayed by this control.

Declaration

cs-api-definition
[Browsable(true)]
public virtual ImageList SmallImageList { get; set; }

Property Value

ImageList

SmallImageScalingSize

Gets or sets the scaling size for small images.

Declaration

cs-api-definition
public Size SmallImageScalingSize { get; set; }

Property Value

Size

Implements IComponentTreeHandler.SmallImageScalingSize

ThemeClassName

Gets or sets the name of the theme class for styling.

Declaration

cs-api-definition
public virtual string ThemeClassName { get; set; }

Property Value

string

ThemeName

Gets or sets the theme name.

Declaration

cs-api-definition
[Browsable(true)]
public string ThemeName { get; set; }

Property Value

string

Implements IComponentTreeHandler.ThemeName

WindowsSettings

Gets or sets the windows related settings.

Declaration

cs-api-definition
public WindowsSettings WindowsSettings { get; set; }

Property Value

WindowsSettings

Methods

AddInvalidatedRect(Rectangle)

Adds an invalidated rectangle to the control.

Declaration

cs-api-definition
protected void AddInvalidatedRect(Rectangle rect)

Parameters

rect

Rectangle

The rectangle to invalidate.

BeginInit()

Signals the object that initialization is starting.

Declaration

cs-api-definition
public virtual void BeginInit()

Implements ISupportInitialize.BeginInit()

CallBaseWndProc(ref Message)

Calls the base WndProc method.

Declaration

cs-api-definition
protected virtual void CallBaseWndProc(ref Message m)

Parameters

m

Message

The Windows Message to process.

Construct()

Constructs the core components of the form control including managers and element tree.

Declaration

cs-api-definition
protected virtual void Construct()

ControlThemeChangedCallback()

Called when the control theme has changed.

Declaration

cs-api-definition
public void ControlThemeChangedCallback()

Implements IComponentTreeHandler.ControlThemeChangedCallback()

CreateChildItems(RadElement)

Creates the child items for the specified parent element.

Declaration

cs-api-definition
protected virtual void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element to create child items for.

CreateHandle()

Creates the handle for the control.

Declaration

cs-api-definition
protected override void CreateHandle()

Overrides Form.CreateHandle()

CreateRootElement()

Creates the root element for the form.

Declaration

cs-api-definition
protected virtual RootRadElement CreateRootElement()

Returns

RootRadElement

A new RootRadElement instance.

Dispose(bool)

Disposes of the resources (other than memory) used by the RadFormControlBase.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

True to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides Form.Dispose(bool)

EndInit()

Signals the object that initialization is complete.

Declaration

cs-api-definition
public virtual void EndInit()

Implements ISupportInitialize.EndInit()

GetPreferredSize(Size)

Retrieves the size of a rectangular area into which a control can be fitted.

Declaration

cs-api-definition
public override Size GetPreferredSize(Size proposedSize)

Parameters

proposedSize

Size

The custom-sized area for a control.

Returns

Size

An ordered pair of type Size representing the width and height of a rectangle.

Overrides Control.GetPreferredSize(Size)

HandleDpiChanged()

Handles DPI change operations.

Declaration

cs-api-definition
protected virtual void HandleDpiChanged()

InitializeFormBehavior()

Called to initialize the behavior of the form when implemented in a derived class.

Declaration

cs-api-definition
protected abstract FormControlBehavior InitializeFormBehavior()

Returns

FormControlBehavior

A FormControlBehavior instance that defines the form's behavior.

InvalidateElement(RadElement)

Invalidates the specified element.

Declaration

cs-api-definition
public void InvalidateElement(RadElement element)

Parameters

element

RadElement

The element to invalidate.

Implements IComponentTreeHandler.InvalidateElement(RadElement)

InvalidateElement(RadElement, Rectangle)

Invalidates the specified element within the given bounds.

Declaration

cs-api-definition
public void InvalidateElement(RadElement element, Rectangle bounds)

Parameters

element

RadElement

The element to invalidate.

bounds

Rectangle

The bounds to invalidate.

Implements IComponentTreeHandler.InvalidateElement(RadElement, Rectangle)

InvalidateIfNotSuspended()

Invalidates the control if not suspended.

Declaration

cs-api-definition
public void InvalidateIfNotSuspended()

Implements IComponentTreeHandler.InvalidateIfNotSuspended()

InvokeLayoutCallback(LayoutCallback)

Invokes a layout callback.

Declaration

cs-api-definition
public void InvokeLayoutCallback(LayoutCallback callback)

Parameters

callback

LayoutCallback

The callback to invoke.

Implements ILayoutHandler.InvokeLayoutCallback(LayoutCallback)

LoadElementTree()

Loads the element tree. While not loaded, no layout operations are allowed upon the tree. By default, the tree will be loaded when the control is displayed for the first time.

Declaration

cs-api-definition
public virtual void LoadElementTree()

Implements IComponentTreeHandler.LoadElementTree()

LoadElementTree(Size)

Loads the element tree using the specified desired size.

Declaration

cs-api-definition
public virtual void LoadElementTree(Size desiredSize)

Parameters

desiredSize

Size

Implements IComponentTreeHandler.LoadElementTree(Size)

OnAutoSizeChanged(EventArgs)

Raises the AutoSizeChanged event.

Declaration

cs-api-definition
protected override void OnAutoSizeChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Control.OnAutoSizeChanged(EventArgs)

OnBackColorChanged(EventArgs)

Raises the BackColorChanged event.

Declaration

cs-api-definition
protected override void OnBackColorChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Control.OnBackColorChanged(EventArgs)

OnCreateControl()

Called when the control is created and loads the element tree.

Declaration

cs-api-definition
protected override void OnCreateControl()

Overrides Form.OnCreateControl()

OnDisplayPropertyChanged(RadPropertyChangedEventArgs)

Called when a display property has changed.

Declaration

cs-api-definition
protected virtual void OnDisplayPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

A RadPropertyChangedEventArgs that contains the event data.

OnFontChanged(EventArgs)

Raises the FontChanged event.

Declaration

cs-api-definition
protected override void OnFontChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Form.OnFontChanged(EventArgs)

OnForeColorChanged(EventArgs)

Raises the ForeColorChanged event.

Declaration

cs-api-definition
protected override void OnForeColorChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Control.OnForeColorChanged(EventArgs)

OnHandleCreated(EventArgs)

Raises the HandleCreated event.

Declaration

cs-api-definition
protected override void OnHandleCreated(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Form.OnHandleCreated(EventArgs)

OnLayout(LayoutEventArgs)

Raises the Layout event.

Declaration

cs-api-definition
protected override void OnLayout(LayoutEventArgs levent)

Parameters

levent

LayoutEventArgs

A LayoutEventArgs that contains the event data.

Overrides Form.OnLayout(LayoutEventArgs)

OnLoad(EventArgs)

In this override we set the initial dpi scaling.

Declaration

cs-api-definition
protected override void OnLoad(EventArgs e)

Parameters

e

EventArgs

Overrides Form.OnLoad(EventArgs)

OnLoad(Size)

Notifies that the control is about to be visualized.

Declaration

cs-api-definition
protected virtual void OnLoad(Size desiredSize)

Parameters

desiredSize

Size

OnNotifyPropertyChanged(PropertyChangedEventArgs)

Raises the property changed notification with the specified event arguments.

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)

Parameters

e

PropertyChangedEventArgs

A PropertyChangedEventArgs that contains the event data.

OnNotifyPropertyChanged(string)

Raises the property changed notification for the specified property name.

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanged(string propertyName)

Parameters

propertyName

string

The name of the property that changed.

OnPaint(PaintEventArgs)

Raises the Paint event and delegates to the form behavior if present.

Declaration

cs-api-definition
protected override void OnPaint(PaintEventArgs e)

Parameters

e

PaintEventArgs

A PaintEventArgs that contains the event data.

Overrides Form.OnPaint(PaintEventArgs)

OnPaintBackground(PaintEventArgs)

Raises the background paint event and delegates to the form behavior if present.

Declaration

cs-api-definition
protected override void OnPaintBackground(PaintEventArgs e)

Parameters

e

PaintEventArgs

A PaintEventArgs that contains the event data.

Overrides ScrollableControl.OnPaintBackground(PaintEventArgs)

OnParentChanged(EventArgs)

Raises the ParentChanged event.

Declaration

cs-api-definition
protected override void OnParentChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides ContainerControl.OnParentChanged(EventArgs)

OnScreenTipNeeded(object, ScreenTipNeededEventArgs)

Raises the ScreenTipNeeded event.

Declaration

cs-api-definition
protected virtual void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)

Parameters

sender

object

The source of the event.

e

ScreenTipNeededEventArgs

A ScreenTipNeededEventArgs that contains the event data.

OnShown(EventArgs)

Declaration

cs-api-definition
protected override void OnShown(EventArgs e)

Parameters

e

EventArgs

Overrides Form.OnShown(EventArgs)

OnThemeChanged()

Called when the theme has changed.

Declaration

cs-api-definition
protected virtual void OnThemeChanged()

OnThemeNameChanged(ThemeNameChangedEventArgs)

Raises the ThemeNameChanged event.

Declaration

cs-api-definition
protected virtual void OnThemeNameChanged(ThemeNameChangedEventArgs e)

Parameters

e

ThemeNameChangedEventArgs

A ThemeNameChangedEventArgs that contains the event data.

OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)

Raises the ToolTipTextNeeded event.

Declaration

cs-api-definition
protected virtual void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)

Parameters

sender

object

The source of the event.

e

ToolTipTextNeededEventArgs

A ToolTipTextNeededEventArgs that contains the event data.

OnVisibleChanged(EventArgs)

Raises the VisibleChanged event.

Declaration

cs-api-definition
protected override void OnVisibleChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Form.OnVisibleChanged(EventArgs)

OnWm_SettingChange(Message)

Handles the WM_SETTINGCHANGE message to detect Windows theme changes.

Declaration

cs-api-definition
protected virtual void OnWm_SettingChange(Message m)

Parameters

m

Message

The Windows message.

PerformDesignModeLocationCorrection(ref Message)

Performs design mode location correction for the form.

Declaration

cs-api-definition
protected virtual void PerformDesignModeLocationCorrection(ref Message msg)

Parameters

msg

Message

The Windows message to process.

ProcessCaptureChangeRequested(RadElement, bool)

Processes a capture request from the specified element.

Declaration

cs-api-definition
protected virtual bool ProcessCaptureChangeRequested(RadElement element, bool capture)

Parameters

element

RadElement

The element which requested the capture.

capture

bool

True to capture; otherwise, false.

Returns

bool

True if the capture request is approved; otherwise, false.

ProcessDialogKey(Keys)

Processes a dialog box key.

Declaration

cs-api-definition
protected override bool ProcessDialogKey(Keys keyData)

Parameters

keyData

Keys

One of the Keys values that represents the key to process.

Returns

bool

true if the keystroke was processed and consumed by the control; otherwise, false to allow further processing.

Overrides Form.ProcessDialogKey(Keys)

ProcessFocusRequested(RadElement)

Processes a focus request from the specified element.

Declaration

cs-api-definition
protected virtual bool ProcessFocusRequested(RadElement element)

Parameters

element

RadElement

The element that requested the focus.

Returns

bool

True if focus is approved; otherwise, false.

RegisterHostedControl(RadHostItem)

Registers a hosted control with this form.

Declaration

cs-api-definition
public void RegisterHostedControl(RadHostItem hostElement)

Parameters

hostElement

RadHostItem

The host element containing the control to register.

Implements IComponentTreeHandler.RegisterHostedControl(RadHostItem)

ResetFormBehavior(bool)

Resets the behavior associated with the Form. This method is used internally.

Declaration

cs-api-definition
public void ResetFormBehavior(bool callInitialize)

Parameters

callInitialize

bool

True to call the InitializeFormBehavior method after resetting; otherwise, false.

ResumeDpiScaling()

Resumes DPI scaling operations.

Declaration

cs-api-definition
public void ResumeDpiScaling()

ResumeUpdate()

Resumes the painting of the control.

Declaration

cs-api-definition
public void ResumeUpdate()

Implements IComponentTreeHandler.ResumeUpdate()

ResumeUpdate(bool)

Resumes the painting of the control.

Declaration

cs-api-definition
public void ResumeUpdate(bool invalidate)

Parameters

invalidate

bool

True to invalidate the control when resuming; otherwise, false.

ScaleControl(SizeF, BoundsSpecified)

Scales the control's location, size, and other properties.

Declaration

cs-api-definition
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)

Parameters

factor

SizeF

The scaling factor.

specified

BoundsSpecified

Which bounds to scale.

Overrides Form.ScaleControl(SizeF, BoundsSpecified)

SetBoundsCore(int, int, int, int, BoundsSpecified)

Performs the work of setting the specified bounds of this control.

Declaration

cs-api-definition
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)

Parameters

x

int

The new Left property value of the control.

y

int

The new Top property value of the control.

width

int

The new Width property value of the control.

height

int

The new Height property value of the control.

specified

BoundsSpecified

A bitwise combination of the BoundsSpecified values.

Overrides Form.SetBoundsCore(int, int, int, int, BoundsSpecified)

SetClientSizeCore(int, int)

Sets the size of the client area of the form.

Declaration

cs-api-definition
protected override void SetClientSizeCore(int x, int y)

Parameters

x

int

The width of the client area.

y

int

The height of the client area.

Overrides Form.SetClientSizeCore(int, int)

SetIconPrimitiveVisibility(bool)

Declaration

cs-api-definition
protected abstract void SetIconPrimitiveVisibility(bool visible)

Parameters

visible

bool

ShouldSerializeProperty(RadProperty)

Determines whether the specified RadProperty should be serialized.

Declaration

cs-api-definition
protected virtual bool ShouldSerializeProperty(RadProperty property)

Parameters

property

RadProperty

The property to check for serialization.

Returns

bool

True if the property should be serialized; otherwise, false.

SuspendDpiScaling()

Suspends DPI scaling operations.

Declaration

cs-api-definition
public void SuspendDpiScaling()

SuspendUpdate()

Suspends the painting of the control.

Declaration

cs-api-definition
public void SuspendUpdate()

Implements IComponentTreeHandler.SuspendUpdate()

UnregisterHostedControl(RadHostItem, bool)

Unregisters a hosted control from this form.

Declaration

cs-api-definition
public void UnregisterHostedControl(RadHostItem hostElement, bool removeControl)

Parameters

hostElement

RadHostItem

The host element containing the control to unregister.

removeControl

bool

True to remove the control from the Controls collection; otherwise, false.

Implements IComponentTreeHandler.UnregisterHostedControl(RadHostItem, bool)

UpdateDefaultButton()

Updates which button is the default button.

Declaration

cs-api-definition
protected override void UpdateDefaultButton()

Overrides Form.UpdateDefaultButton()

WndProc(ref Message)

Processes Windows messages.

Declaration

cs-api-definition
protected override void WndProc(ref Message m)

Parameters

m

Message

The Windows Message to process.

Overrides Form.WndProc(ref Message)

Events

Initialized

Occurs when the component's initialization is complete.

Declaration

cs-api-definition
public event EventHandler Initialized

Event Value

EventHandler

Implements ISupportInitializeNotification.Initialized

PropertyChanged

Occurs when a property of an object changes. Calling the event is developer's responsibility.

Declaration

cs-api-definition
[Browsable(false)]
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

ScreenTipNeeded

Occurs prior to the ScreenTip of a RadItem instance inside the RadControl being displayed.

Declaration

cs-api-definition
public event ScreenTipNeededEventHandler ScreenTipNeeded

Event Value

ScreenTipNeededEventHandler

ThemeNameChanged

Occurs when the theme name has changed.

Declaration

cs-api-definition
public event ThemeNameChangedEventHandler ThemeNameChanged

Event Value

ThemeNameChangedEventHandler

Implements IComponentTreeHandler.ThemeNameChanged

ToolTipTextNeeded

Occurs when a RadItem instance inside the RadControl requires ToolTip text.

Declaration

cs-api-definition
public event ToolTipTextNeededEventHandler ToolTipTextNeeded

Event Value

ToolTipTextNeededEventHandler

Implements IComponentTreeHandler.ToolTipTextNeeded

WindowsThemeChanged

Occurs when the Windows theme is changed (to Light, Dark or HighContrast).

Declaration

cs-api-definition
public event WindowsThemeEventHandler WindowsThemeChanged

Event Value

WindowsThemeEventHandler

In this article
DefinitionConstructorsRadFormControlBase()FieldscontrolIsInitializingRootComponentcurrentDpiisBehaviorPreparedisPaintingnewBoundsoldDpiPropertiesAllowShowFocusCuesAllowThemingBackColorBehaviorCommandBindingsCreateParamsElementTreeEnableAnalyticsEnableKeyMapFocusedElementFontForeColorFormBehaviorFormBorderStyleHasOwnToolbarImageListImageScalingSizeIsDesignModeIsDpiScalingSuspendedIsInitializedIsLoadedIsPerformingScaleIsUpdateSuspendedMaximumSizeMinimumSizeRootElementShowItemToolTipsSiteSmallImageListSmallImageScalingSizeThemeClassNameThemeNameWindowsSettingsMethodsAddInvalidatedRect(Rectangle)BeginInit()CallBaseWndProc(ref Message)Construct()ControlThemeChangedCallback()CreateChildItems(RadElement)CreateHandle()CreateRootElement()Dispose(bool)EndInit()GetPreferredSize(Size)HandleDpiChanged()InitializeFormBehavior()InvalidateElement(RadElement)InvalidateElement(RadElement, Rectangle)InvalidateIfNotSuspended()InvokeLayoutCallback(LayoutCallback)LoadElementTree()LoadElementTree(Size)OnAutoSizeChanged(EventArgs)OnBackColorChanged(EventArgs)OnCreateControl()OnDisplayPropertyChanged(RadPropertyChangedEventArgs)OnFontChanged(EventArgs)OnForeColorChanged(EventArgs)OnHandleCreated(EventArgs)OnLayout(LayoutEventArgs)OnLoad(EventArgs)OnLoad(Size)OnNotifyPropertyChanged(PropertyChangedEventArgs)OnNotifyPropertyChanged(string)OnPaint(PaintEventArgs)OnPaintBackground(PaintEventArgs)OnParentChanged(EventArgs)OnScreenTipNeeded(object, ScreenTipNeededEventArgs)OnShown(EventArgs)OnThemeChanged()OnThemeNameChanged(ThemeNameChangedEventArgs)OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)OnVisibleChanged(EventArgs)OnWm_SettingChange(Message)PerformDesignModeLocationCorrection(ref Message)ProcessCaptureChangeRequested(RadElement, bool)ProcessDialogKey(Keys)ProcessFocusRequested(RadElement)RegisterHostedControl(RadHostItem)ResetFormBehavior(bool)ResumeDpiScaling()ResumeUpdate()ResumeUpdate(bool)ScaleControl(SizeF, BoundsSpecified)SetBoundsCore(int, int, int, int, BoundsSpecified)SetClientSizeCore(int, int)SetIconPrimitiveVisibility(bool)ShouldSerializeProperty(RadProperty)SuspendDpiScaling()SuspendUpdate()UnregisterHostedControl(RadHostItem, bool)UpdateDefaultButton()WndProc(ref Message)EventsInitializedPropertyChangedScreenTipNeededThemeNameChangedToolTipTextNeededWindowsThemeChanged
Not finding the help you need?
Contact Support