New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
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

Initializes a new instance of the RadFormControlBase class.

C#
public RadFormControlBase()

Fields

C#
public bool controlIsInitializingRootComponent

The current DPI value.

C#
protected int currentDpi
C#
protected bool isBehaviorPrepared
C#
protected bool isPainting

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

C#
protected Rectangle newBounds

The old DPI value before a DPI change occurs.

C#
protected int oldDpi

Properties

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

C#
public virtual bool AllowShowFocusCues { get; set; }

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

C#
[Browsable(false)]
public virtual bool AllowTheming { get; set; }

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

C#
public override Color BackColor { get; set; }

Overrides: Form.BackColor

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

C#
[Browsable(false)]
public virtual ComponentInputBehavior Behavior { get; }

Gets the command bindings collection for input handling.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public InputBindingsCollection CommandBindings { get; }

Gets or sets the creation parameters for the window.

C#
protected override CreateParams CreateParams { get; }

Overrides: Form.CreateParams

Gets the element tree for this control.

C#
public ComponentThemableElementTree ElementTree { get; }

Implements: IComponentTreeHandler.ElementTree

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

C#
[Browsable(true)]
public virtual bool EnableAnalytics { get; set; }

Implements: IAnalyticsProvider.EnableAnalytics

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.

C#
[Browsable(true)]
public bool EnableKeyMap { get; set; }

Gets or sets the currently focused element.

C#
[Browsable(false)]
public RadElement FocusedElement { get; set; }

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

C#
public override Font Font { get; set; }

Overrides: Control.Font

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

C#
public override Color ForeColor { get; set; }

Overrides: Control.ForeColor

Gets the behavior associated with this form if any.

C#
public FormControlBehavior FormBehavior { get; set; }

Gets or sets the FormBorderStyle of the Form.

C#
public FormBorderStyle FormBorderStyle { get; set; }

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

C#
protected virtual bool HasOwnToolbar { get; }

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

C#
[Browsable(true)]
public ImageList ImageList { get; set; }

Implements: IComponentTreeHandler.ImageList

Gets or sets the scaling size for images.

C#
public Size ImageScalingSize { get; set; }

Implements: IComponentTreeHandler.ImageScalingSize

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

C#
public bool IsDesignMode { get; }

Implements: IComponentTreeHandler.IsDesignMode

Gets a value indicating whether DPI scaling is suspended.

C#
public bool IsDpiScalingSuspended { get; }

Gets a value indicating whether the component is initialized.

C#
public bool IsInitialized { get; }

Implements: ISupportInitializeNotification.IsInitialized

Gets a value indicating whether the control is loaded.

C#
public bool IsLoaded { get; }

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

C#
public bool IsPerformingScale { get; }

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

C#
protected bool IsUpdateSuspended { get; }

Gets or sets the maximum size of the control.

C#
public override Size MaximumSize { get; set; }

Overrides: Form.MaximumSize

Gets or sets the minimum size of the control.

C#
public override Size MinimumSize { get; set; }

Overrides: Form.MinimumSize

Gets the RootElement of the control.

C#
[Browsable(true)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public RootRadElement RootElement { get; }

Implements: IComponentTreeHandler.RootElement

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

C#
public virtual bool ShowItemToolTips { get; set; }

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

C#
public override ISite Site { get; set; }

Overrides: Control.Site

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

C#
[Browsable(true)]
public virtual ImageList SmallImageList { get; set; }

Gets or sets the scaling size for small images.

C#
public Size SmallImageScalingSize { get; set; }

Implements: IComponentTreeHandler.SmallImageScalingSize

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

C#
public virtual string ThemeClassName { get; set; }

Gets or sets the theme name.

C#
[Browsable(true)]
public string ThemeName { get; set; }

Implements: IComponentTreeHandler.ThemeName

Gets or sets the windows related settings.

C#
public WindowsSettings WindowsSettings { get; set; }

Methods

Adds an invalidated rectangle to the control.

C#
protected void AddInvalidatedRect(Rectangle rect)
Parameters:rectRectangle

The rectangle to invalidate.

Signals the object that initialization is starting.

C#
public virtual void BeginInit()

Implements: ISupportInitialize.BeginInit()

Calls the base WndProc method.

C#
protected virtual void CallBaseWndProc(ref Message m)
Parameters:mMessage

The Windows Message to process.

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

C#
protected virtual void Construct()

Called when the control theme has changed.

C#
public void ControlThemeChangedCallback()

Implements: IComponentTreeHandler.ControlThemeChangedCallback()

Creates the child items for the specified parent element.

C#
protected virtual void CreateChildItems(RadElement parent)
Parameters:parentRadElement

The parent element to create child items for.

Creates the handle for the control.

C#
protected override void CreateHandle()

Overrides: Form.CreateHandle()

Creates the root element for the form.

C#
protected virtual RootRadElement CreateRootElement()
Returns:

RootRadElement

A new RootRadElement instance.

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

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

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

Overrides: Form.Dispose(bool)

Signals the object that initialization is complete.

C#
public virtual void EndInit()

Implements: ISupportInitialize.EndInit()

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

C#
public override Size GetPreferredSize(Size proposedSize)
Parameters:proposedSizeSize

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)

Handles DPI change operations.

C#
protected virtual void HandleDpiChanged()

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

C#
protected abstract FormControlBehavior InitializeFormBehavior()
Returns:

FormControlBehavior

A FormControlBehavior instance that defines the form's behavior.

Invalidates the specified element within the given bounds.

C#
public void InvalidateElement(RadElement element, Rectangle bounds)
Parameters:elementRadElement

The element to invalidate.

boundsRectangle

The bounds to invalidate.

Implements: IComponentTreeHandler.InvalidateElement(RadElement, Rectangle)

Invalidates the specified element.

C#
public void InvalidateElement(RadElement element)
Parameters:elementRadElement

The element to invalidate.

Implements: IComponentTreeHandler.InvalidateElement(RadElement)

Invalidates the control if not suspended.

C#
public void InvalidateIfNotSuspended()

Implements: IComponentTreeHandler.InvalidateIfNotSuspended()

Invokes a layout callback.

C#
public void InvokeLayoutCallback(LayoutCallback callback)
Parameters:callbackLayoutCallback

The callback to invoke.

Implements: ILayoutHandler.InvokeLayoutCallback(LayoutCallback)

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.

C#
public virtual void LoadElementTree()

Implements: IComponentTreeHandler.LoadElementTree()

Loads the element tree using the specified desired size.

C#
public virtual void LoadElementTree(Size desiredSize)
Parameters:desiredSizeSize

Implements: IComponentTreeHandler.LoadElementTree(Size)

Raises the AutoSizeChanged event.

C#
protected override void OnAutoSizeChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Overrides: Control.OnAutoSizeChanged(EventArgs)

Raises the BackColorChanged event.

C#
protected override void OnBackColorChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Overrides: Control.OnBackColorChanged(EventArgs)

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

C#
protected override void OnCreateControl()

Overrides: Form.OnCreateControl()

Called when a display property has changed.

C#
protected virtual void OnDisplayPropertyChanged(RadPropertyChangedEventArgs e)
Parameters:eRadPropertyChangedEventArgs

A RadPropertyChangedEventArgs that contains the event data.

Raises the FontChanged event.

C#
protected override void OnFontChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Overrides: Form.OnFontChanged(EventArgs)

Raises the ForeColorChanged event.

C#
protected override void OnForeColorChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Overrides: Control.OnForeColorChanged(EventArgs)

Raises the HandleCreated event.

C#
protected override void OnHandleCreated(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Overrides: Form.OnHandleCreated(EventArgs)

Raises the Layout event.

C#
protected override void OnLayout(LayoutEventArgs levent)
Parameters:leventLayoutEventArgs

A LayoutEventArgs that contains the event data.

Overrides: Form.OnLayout(LayoutEventArgs)

In this override we set the initial dpi scaling.

C#
protected override void OnLoad(EventArgs e)
Parameters:eEventArgs

Overrides: Form.OnLoad(EventArgs)

Notifies that the control is about to be visualized.

C#
protected virtual void OnLoad(Size desiredSize)
Parameters:desiredSizeSize

Raises the property changed notification with the specified event arguments.

C#
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

A PropertyChangedEventArgs that contains the event data.

Raises the property changed notification for the specified property name.

C#
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters:propertyNamestring

The name of the property that changed.

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

C#
protected override void OnPaint(PaintEventArgs e)
Parameters:ePaintEventArgs

A PaintEventArgs that contains the event data.

Overrides: Form.OnPaint(PaintEventArgs)

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

C#
protected override void OnPaintBackground(PaintEventArgs e)
Parameters:ePaintEventArgs

A PaintEventArgs that contains the event data.

Overrides: ScrollableControl.OnPaintBackground(PaintEventArgs)

Raises the ParentChanged event.

C#
protected override void OnParentChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Overrides: ContainerControl.OnParentChanged(EventArgs)

Raises the ScreenTipNeeded event.

C#
protected virtual void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Parameters:senderobject

The source of the event.

eScreenTipNeededEventArgs

A ScreenTipNeededEventArgs that contains the event data.

C#
protected override void OnShown(EventArgs e)
Parameters:eEventArgs

Overrides: Form.OnShown(EventArgs)

Called when the theme has changed.

C#
protected virtual void OnThemeChanged()

Raises the ThemeNameChanged event.

C#
protected virtual void OnThemeNameChanged(ThemeNameChangedEventArgs e)
Parameters:eThemeNameChangedEventArgs

A ThemeNameChangedEventArgs that contains the event data.

Raises the ToolTipTextNeeded event.

C#
protected virtual void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Parameters:senderobject

The source of the event.

eToolTipTextNeededEventArgs

A ToolTipTextNeededEventArgs that contains the event data.

Raises the VisibleChanged event.

C#
protected override void OnVisibleChanged(EventArgs e)
Parameters:eEventArgs

An EventArgs that contains the event data.

Overrides: Form.OnVisibleChanged(EventArgs)

Handles the WM_SETTINGCHANGE message to detect Windows theme changes.

C#
protected virtual void OnWm_SettingChange(Message m)
Parameters:mMessage

The Windows message.

Performs design mode location correction for the form.

C#
protected virtual void PerformDesignModeLocationCorrection(ref Message msg)
Parameters:msgMessage

The Windows message to process.

Processes a capture request from the specified element.

C#
protected virtual bool ProcessCaptureChangeRequested(RadElement element, bool capture)
Parameters:elementRadElement

The element which requested the capture.

capturebool

True to capture; otherwise, false.

Returns:

bool

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

Processes a dialog box key.

C#
protected override bool ProcessDialogKey(Keys keyData)
Parameters:keyDataKeys

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)

Processes a focus request from the specified element.

C#
protected virtual bool ProcessFocusRequested(RadElement element)
Parameters:elementRadElement

The element that requested the focus.

Returns:

bool

True if focus is approved; otherwise, false.

Registers a hosted control with this form.

C#
public void RegisterHostedControl(RadHostItem hostElement)
Parameters:hostElementRadHostItem

The host element containing the control to register.

Implements: IComponentTreeHandler.RegisterHostedControl(RadHostItem)

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

C#
public void ResetFormBehavior(bool callInitialize)
Parameters:callInitializebool

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

Resumes DPI scaling operations.

C#
public void ResumeDpiScaling()

Resumes the painting of the control.

C#
public void ResumeUpdate()

Implements: IComponentTreeHandler.ResumeUpdate()

Resumes the painting of the control.

C#
public void ResumeUpdate(bool invalidate)
Parameters:invalidatebool

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

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

C#
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters:factorSizeF

The scaling factor.

specifiedBoundsSpecified

Which bounds to scale.

Overrides: Form.ScaleControl(SizeF, BoundsSpecified)

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

C#
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters:xint

The new Left property value of the control.

yint

The new Top property value of the control.

widthint

The new Width property value of the control.

heightint

The new Height property value of the control.

specifiedBoundsSpecified

A bitwise combination of the BoundsSpecified values.

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

Sets the size of the client area of the form.

C#
protected override void SetClientSizeCore(int x, int y)
Parameters:xint

The width of the client area.

yint

The height of the client area.

Overrides: Form.SetClientSizeCore(int, int)

C#
protected abstract void SetIconPrimitiveVisibility(bool visible)
Parameters:visiblebool

Determines whether the specified RadProperty should be serialized.

C#
protected virtual bool ShouldSerializeProperty(RadProperty property)
Parameters:propertyRadProperty

The property to check for serialization.

Returns:

bool

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

Suspends DPI scaling operations.

C#
public void SuspendDpiScaling()

Suspends the painting of the control.

C#
public void SuspendUpdate()

Implements: IComponentTreeHandler.SuspendUpdate()

Unregisters a hosted control from this form.

C#
public void UnregisterHostedControl(RadHostItem hostElement, bool removeControl)
Parameters:hostElementRadHostItem

The host element containing the control to unregister.

removeControlbool

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

Implements: IComponentTreeHandler.UnregisterHostedControl(RadHostItem, bool)

Updates which button is the default button.

C#
protected override void UpdateDefaultButton()

Overrides: Form.UpdateDefaultButton()

Processes Windows messages.

C#
protected override void WndProc(ref Message m)
Parameters:mMessage

The Windows Message to process.

Overrides: Form.WndProc(ref Message)

Events

Occurs when the component's initialization is complete.

C#
public event EventHandler Initialized

Implements: ISupportInitializeNotification.Initialized

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

C#
[Browsable(false)]
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged

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

C#
public event ScreenTipNeededEventHandler ScreenTipNeeded

Occurs when the theme name has changed.

C#
public event ThemeNameChangedEventHandler ThemeNameChanged

Implements: IComponentTreeHandler.ThemeNameChanged

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

C#
public event ToolTipTextNeededEventHandler ToolTipTextNeeded

Implements: IComponentTreeHandler.ToolTipTextNeeded

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

C#
public event WindowsThemeEventHandler WindowsThemeChanged
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, Rectangle)InvalidateElement(RadElement)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