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

Serves as the foundational base class for all Telerik WinControls, bridging the Windows Forms framework with the Telerik Presentation Framework (TPF) element-based architecture.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class RadControl : ScrollableControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControl...

Derived Classes: RadEditorControlRadItemsControlRadNonClientUIControlRadScreenTipColumnChooserControlDockingGuidesControlQuickNavigatorEditorBaseControlRadLinearGaugeRadRadialGaugeLayoutControlDraggableOverlayRadAIPromptRadAIPromptButtonRadBindingNavigatorRadButtonBaseRadCalculatorRadCalendarRadCalendarFastNavigationControlRadCarouselRadChartViewRadChatRadClockRadCollapsiblePanelTransparentColorBoxRadCommandBarRadCommandBarOverflowPanelHostContolRadDiagramRadDropDownButtonRadFilterViewRadGanttViewRadGridViewRadGroupBoxRadHeatMapRadImageEditorRadLabelRadListControlRadListViewRadMapRadPanelRadPanoramaRadPdfViewerRadPictureBoxRadPipsPagerRadPivotGridRadPopupControlBaseRadProgressBarRadPropertyGridRadRangeSelectorRadRatingRadRibbonBarBackstageViewRadRichTextEditorRadRichTextEditorRulerRadRotatorRadSchedulerRadSchedulerNavigatorRadScrollBarRadScrollablePanelRadSeparatorRadSlideViewRadSparklineRadSpeechToTextButtonRadSplitterRadSpreadsheetRadStatusStripRadStepProgressBarRadSyntaxEditorRadTaskBoardRadTaskDialogControlRadTextBoxControlRadTimePickerContentRadTitleBarRadToggleSwitchRadTreeMapRadTreeViewRadVirtualGridRadVirtualKeyboardRadWaitingBarRadWebCamRadWizardRadSplashScreenControlSplitPanelTimePickerDoneButtonContentWatermarkPreviewControlZoomPopup...

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window...

Inherited Members ScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.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.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)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.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)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.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(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.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)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.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(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.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DefaultSizeControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.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.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)...

Constructors

C#
public RadControl()

Fields

C#
protected Rectangle invalidResizeRect
C#
protected bool isAccessibilityRequested
C#
protected bool isDisposing2
C#
protected bool isResizing2

Properties

Indicates focus cues display, when available, based on the corresponding control type and the current UI state.

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

Gets or sets the Analytics Name associated with this control. By default the Control Name property is logged. If you want to customize the information which will be logged for this control set this property to a preferred value.

C#
[Browsable(false)]
public virtual string AnalyticsName { get; set; }

Implements: IAnalyticsProvider.AnalyticsName

Gets or sets a value indicating whether the control is automatically resized to display its entire contents.

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

Overrides: Control.AutoSize

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: Control.BackColor

Gets the input behavior for the control.

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

Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.

C#
public bool CausesValidation { get; set; }
C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public InputBindingsCollection CommandBindings { get; }
C#
[Browsable(false)]
public virtual ComponentThemableElementTree ElementTree { get; }

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

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

Implements: IAnalyticsProvider.EnableAnalytics

Gets or sets a value indicating whether the CodedUI Tests functionality is enabled.

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

Gets or sets the default value for EnableCodedUITests property.

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

Gets or sets a value indicating whether the RadControls scaling logic will be used when the application is run in a high DPI environment.

C#
public static bool EnableDpiScaling { get; set; }

Gets or sets a value indicating whether the RadControls scaling logic will be used to resize the images when the application is run in a high DPI environment.

C#
public static bool EnableImageDpiScaling { get; set; }

Gets or sets whether 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 virtual bool EnableKeyMap { get; set; }

Gets or sets a value indicating whether the RadControls Accessible custom object is enabled.

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

Gets or sets a value that indicates whether to use the new auto-scaling mechanism or not. Enabled by default.

C#
public static bool EnableRadAutoScale { get; set; }

Do not modify. For internal use only.

C#
public static bool EnableRadFormInitialDpiScaling { get; set; }

Gets or sets a value indicating whether the RadControls will draw use the SvgImages in ImagePrimitive and LightVisualElement objects, or if [false] will draw the corresponding Image property if applicable.

C#
public static bool EnableSvgImages { get; set; }

Gets or sets value indicating whether the control is styled through theme

C#
public bool EnableTheming { get; set; }

Gets or sets a value indicating whether the UI Automation functionality is enabled.

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

Gets or sets the default value for EnableUIAutomation property.

C#
[Browsable(true)]
public static bool EnableUIAutomationDefaultValue { get; set; }
C#
public virtual bool Focusable { get; set; }
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 or sets the ImageList that contains the images displayed by this control.

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

Implements: IComponentTreeHandler.ImageList

Gets or sets the image scaling size.

C#
[Browsable(false)]
public Size ImageScalingSize { get; set; }

Implements: IComponentTreeHandler.ImageScalingSize

C#
[Browsable(false)]
public bool IsDesignMode { get; }

Determines whether the control is currently displayed on the screen.

C#
[Browsable(false)]
public bool IsDisplayed { get; }
C#
[Browsable(false)]
public bool IsInitializing { get; }

Determines whether the control is properly loaded.

C#
[Browsable(false)]
public bool IsLoaded { get; }

Gets or sets the size that is the upper limit that GetPreferredSize can specify.

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

Overrides: Control.MaximumSize

Gets or sets the size that is the lower limit that GetPreferredSize can specify

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

Overrides: Control.MinimumSize

Gets or sets padding within the control.

C#
public Padding Padding { get; set; }
Property Value:

A Padding representing the control's internal spacing characteristics.

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; }
C#
public override ISite Site { get; set; }

Overrides: Control.Site

Gets or sets the SmallImageList that contains the small images which are displayed when there's not enough space.

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

Implements: IComponentTreeHandler.SmallImageList

Gets or sets the small image scaling size.

C#
[Browsable(false)]
public Size SmallImageScalingSize { get; set; }

Implements: IComponentTreeHandler.SmallImageScalingSize

C#
[Browsable(true)]
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }

Overrides: Control.Text

Gets or sets the class name string that ThemeResolutionService will use to find the themes registered for the control.

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

By default the return value is RadControl's type FullName; Some controls like drop down menu has different ThemeClassName depending on the runtime usage of the control.

Gets or sets control's preferred theme name. Themes are stored and retrieved using APIs of ThemeResolutionService.

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

Implements: IComponentTreeHandler.ThemeName

Remarks:

If ThemeResolutionService.ApplicatonThemeName refers to a non-empty string, the theme of a RadControl can differ from the one set using RadControls.ThemeName property. If the themes differ, the RadControls.ThemeName property will be overridden by ThemeResolutionService.ApplicatonThemeName. If no theme is registered with a name as ThemeResolutionService.ApplicatonThemeName, then control will revert to the theme specified by its ThemeName property. If ThemeName is assigned to a non-existing theme name, the control may have no visual properties assigned, which will cause it look and behave in unexpected manner. If ThemeName equals empty string, control's theme is set to a theme that is registered within ThemeResolutionService with the name "ControlDefault".

Determines whether to use compatible text rendering engine (GDI+) or not (GDI).

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

Set or get the default value for UseCompatibleTextRendering property.

C#
public static bool UseCompatibleTextRenderingDefaultValue { get; set; }
C#
protected bool ValidationCancel { get; }

Methods

Suspends layout during initialization.

C#
public virtual void BeginInit()

Implements: ISupportInitialize.BeginInit()

Determines whether an element may be edited via the EditUIElements dialog at design-time.

C#
protected virtual bool CanEditElementAtDesignTime(RadElement element)
Parameters:elementRadElementReturns:

bool

C#
protected virtual void Construct()

Creates the input behavior instance. Allows inheritors to provide custom input implementations.

C#
protected virtual ComponentInputBehavior CreateBehavior()
Returns:

ComponentInputBehavior

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

RootRadElement

Disable firing gesture events of the specified type.

C#
public void DisableGesture(GestureType type)
Parameters:typeGestureType

The type of gesture events to disable.

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

Overrides: Control.Dispose(bool)

Enable firing gesture events of the specified type.

C#
public void EnableGesture(GestureType type)
Parameters:typeGestureType

The type of gesture events to enable.

Resumes layout.

C#
public virtual void EndInit()

Implements: ISupportInitialize.EndInit()

C#
protected virtual bool FindPropertyInChildren(RadControl radControl, IPCMessage request)
Parameters:radControlRadControlrequestIPCMessageReturns:

bool

C#
protected virtual RadElement GetInputElement()
Returns:

RadElement

Gets the DPI scale factor for the monitor where the specified control is currently displayed.

C#
protected virtual SizeF GetMonitorDpiScaleFactor(Control control)
Parameters:controlControl

The control used to determine which monitor to query for DPI information.

Returns:

SizeF

A SizeF representing the DPI scale factor where both Width and Height contain the same scaling value (e.g., 1.25 for 125% scaling, 1.5 for 150% scaling).

Remarks:

This method is used by the RadAutoScale system to determine the target DPI scaling that should be applied to the control. It queries the Windows DPI awareness system to get the effective DPI for the window handle and converts it to a scale factor relative to the standard 96 DPI.

The method is virtual to allow derived controls to customize DPI detection behavior if needed, such as for specialized hosting scenarios or custom DPI handling requirements.

This method requires Windows 10 Anniversary Update (1607) or later for per-monitor DPI awareness support. On earlier versions, the system falls back to other DPI detection methods.

Strips all html tags of the text set to the control and returns only the plain text.

C#
public string GetPlainText()
Returns:

string

Plain text stripped of any html tags.

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

Size

Overrides: Control.GetPreferredSize(Size)

C#
protected virtual Size GetRootElementDesiredSize(int x, int y, int width, int height)
Parameters:xintyintwidthintheightintReturns:

Size

C#
protected virtual void InitializeRootElement(RootRadElement rootElement)
Parameters:rootElementRootRadElement
C#
public void InvokeLayoutCallback(LayoutCallback callback)
Parameters:callbackLayoutCallback

Implements: ILayoutHandler.InvokeLayoutCallback(LayoutCallback)

C#
protected override bool IsInputKey(Keys keyData)
Parameters:keyDataKeysReturns:

bool

Overrides: Control.IsInputKey(Keys)

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)

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

Overrides: Control.OnAutoSizeChanged(EventArgs)

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

Overrides: Control.OnBackColorChanged(EventArgs)

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

Overrides: Control.OnBindingContextChanged(EventArgs)

C#
protected virtual void OnCaptureLosing()
C#
protected override void OnClick(EventArgs e)
Parameters:eEventArgs

Overrides: Control.OnClick(EventArgs)

C#
protected override void OnCreateControl()

Overrides: Control.OnCreateControl()

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

Overrides: Control.OnDoubleClick(EventArgs)

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

Overrides: Control.OnEnabledChanged(EventArgs)

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

Overrides: Control.OnFontChanged(EventArgs)

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

Overrides: Control.OnForeColorChanged(EventArgs)

C#
protected virtual void OnGesture(GestureEventArgs args)
Parameters:argsGestureEventArgs
C#
protected override void OnGotFocus(EventArgs e)
Parameters:eEventArgs

Overrides: Control.OnGotFocus(EventArgs)

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

Overrides: Control.OnHandleDestroyed(EventArgs)

C#
protected virtual void OnInvalidated(RadElement element)
Parameters:elementRadElement
C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

Overrides: Control.OnKeyDown(KeyEventArgs)

C#
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs

Overrides: Control.OnKeyPress(KeyPressEventArgs)

C#
protected override void OnKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

Overrides: Control.OnKeyUp(KeyEventArgs)

C#
protected override void OnLayout(LayoutEventArgs e)
Parameters:eLayoutEventArgs

Overrides: ScrollableControl.OnLayout(LayoutEventArgs)

Notifies that the control is about to be visualized.

C#
protected virtual void OnLoad(Size desiredSize)
Parameters:desiredSizeSize
C#
protected override void OnLocationChanged(EventArgs e)
Parameters:eEventArgs

Overrides: Control.OnLocationChanged(EventArgs)

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

Overrides: Control.OnLostFocus(EventArgs)

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

Overrides: Control.OnMouseCaptureChanged(EventArgs)

C#
protected override void OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: Control.OnMouseDown(MouseEventArgs)

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

Overrides: Control.OnMouseEnter(EventArgs)

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

Overrides: Control.OnMouseHover(EventArgs)

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

Overrides: Control.OnMouseLeave(EventArgs)

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: Control.OnMouseMove(MouseEventArgs)

C#
protected override void OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: Control.OnMouseUp(MouseEventArgs)

C#
protected override void OnMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: ScrollableControl.OnMouseWheel(MouseEventArgs)

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

Raises the PropertyChanged event

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

The name of the property

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

Overrides: ScrollableControl.OnPaddingChanged(EventArgs)

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

Overrides: Control.OnPaint(PaintEventArgs)

Fires the PanGesture event.

C#
protected virtual void OnPanGesture(PanGestureEventArgs args)
Parameters:argsPanGestureEventArgs

The arguments for the PanGesture event.

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

Overrides: Control.OnParentChanged(EventArgs)

Fires the PressAndTapGesture event.

C#
protected virtual void OnPressAndTapGesture(PressAndTapGestureEventArgs args)
Parameters:argsPressAndTapGestureEventArgs

The arguments for the PressAndTapGesture event.

C#
protected override void OnPreviewKeyDown(PreviewKeyDownEventArgs e)
Parameters:ePreviewKeyDownEventArgs

Overrides: Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)

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

Overrides: ScrollableControl.OnRightToLeftChanged(EventArgs)

Fires the RotateGesture event.

C#
protected virtual void OnRotateGesture(RotateGestureEventArgs args)
Parameters:argsRotateGestureEventArgs

The arguments for the RotateGesture event.

C#
protected virtual void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Parameters:senderobjecteScreenTipNeededEventArgs
C#
protected virtual void OnThemeChanged()
C#
protected virtual void OnThemeNameChanged(ThemeNameChangedEventArgs e)
Parameters:eThemeNameChangedEventArgs
C#
protected virtual void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Parameters:senderobjecteToolTipTextNeededEventArgs

Fires the TwoFingerTapGesture event.

C#
protected virtual void OnTwoFingerTapGesture(GestureEventArgs args)
Parameters:argsGestureEventArgs

The arguments for the TwoFingerTapGesture event.

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

Overrides: ScrollableControl.OnVisibleChanged(EventArgs)

Fires the ZoomGesture event.

C#
protected virtual void OnZoomGesture(ZoomGestureEventArgs args)
Parameters:argsZoomGestureEventArgs

The arguments for the ZoomGesture event.

Performs auto scaling of the control.

C#
protected virtual void PerformRadAutoScale(BoundsSpecified? specified = null)
Parameters:specifiedBoundsSpecified?
C#
protected virtual void ProcessAutoSizeChanged(bool value)
Parameters:valuebool

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
Returns:

bool

True if the capture request is approved, otherwise false.

C#
protected virtual void ProcessCodedUIMessage(ref IPCMessage request)
Parameters:requestIPCMessage

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, false otherwise.

C#
protected bool ProcessGesture(Message m)
Parameters:mMessageReturns:

bool

C#
protected override bool ProcessMnemonic(char charCode)
Parameters:charCodecharReturns:

bool

Overrides: Control.ProcessMnemonic(char)

C#
public override void Refresh()

Overrides: Control.Refresh()

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

Implements: IComponentTreeHandler.RegisterHostedControl(RadHostItem)

C#
protected virtual void ResetBackColorThemeOverrides()
C#
protected virtual void ResetForeColorThemeOverrides()

Reset the property to its default value.

C#
protected virtual void ResetProperty(RadProperty property, RadObject element)
Parameters:propertyRadProperty

The RadProperty to be reset.

elementRadObject

The RadObject owner of the property.

Replaces the default style group for specific element.

C#
public virtual StyleGroup ResolveStyleGroupForElement(StyleGroup styleGroup, RadObject element)
Parameters:styleGroupStyleGroup

The style group to replace.

elementRadObject

The element on which this style should apply.

Returns:

StyleGroup

An instance of StyleGroup is successfull.

C#
public void ResumeUpdate()

Implements: IComponentTreeHandler.ResumeUpdate()

C#
public void ResumeUpdate(bool invalidate)
Parameters:invalidatebool
C#
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters:factorSizeFspecifiedBoundsSpecified

Overrides: ScrollableControl.ScaleControl(SizeF, BoundsSpecified)

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

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

C#
protected virtual void SetForeColorThemeOverrides()

Enables/disables RadAutoScale. If you want to disable RadAutoScale for this control, call this method immediately after creating the control.

C#
public void SetRadAutoScale(bool isEnabled)
Parameters:isEnabledbool

Determines whether the specified RadProperty should be serialized. Prevents theme and default values serialization.

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

The RadProperty that is about to be serialized.

elementRadObject

The element that owns the property.

Returns:

bool

A value indicating whether to serialize the property value.

Determines whether the specified RadProperty should be serialized.

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

The RadProperty that is about to be serialized.

Returns:

bool

A value indicating whether to serialize the property value.

C#
public void SuspendUpdate()

Implements: IComponentTreeHandler.SuspendUpdate()

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

Implements: IComponentTreeHandler.UnregisterHostedControl(RadHostItem, bool)

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

Overrides: ScrollableControl.WndProc(ref Message)

Events

C#
public event EventHandler ElementInvalidated

Fires when the control is initialized.

C#
public event EventHandler Initialized

Implements: ISupportInitializeNotification.Initialized

Occurs when a pan gesture was sent by a touch input device.

C#
[Browsable(true)]
public event PanGestureEventHandler PanGesture

Occurs when a press-and-tap gesture was sent by a touch input device.

C#
[Browsable(true)]
public event PressAndTapGestureEventHandler PressAndTapGesture

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

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

Implements: INotifyPropertyChanged.PropertyChanged

Occurs when a rotate gesture was sent by a touch input device.

C#
[Browsable(true)]
public event RotateGestureEventHandler RotateGesture

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

C#
public virtual event ScreenTipNeededEventHandler ScreenTipNeeded

Fires when the theme name is changed.

C#
public event ThemeNameChangedEventHandler ThemeNameChanged

Implements: IComponentTreeHandler.ThemeNameChanged

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

C#
public virtual event ToolTipTextNeededEventHandler ToolTipTextNeeded

Implements: IComponentTreeHandler.ToolTipTextNeeded

Occurs when a two-finger-tap gesture was sent by a touch input device.

C#
[Browsable(true)]
public event GestureEventHandler TwoFingerTapGesture

Occurs when a zoom gesture was sent by a touch input device.

C#
[Browsable(true)]
public event ZoomGestureEventHandler ZoomGesture
In this article
DefinitionConstructorsRadControl()FieldsinvalidResizeRectisAccessibilityRequestedisDisposing2isResizing2PropertiesAllowShowFocusCuesAnalyticsNameAutoSizeBackColorBehaviorCausesValidationCommandBindingsElementTreeEnableAnalyticsEnableCodedUITestsEnableCodedUITestsDefaultValueEnableDpiScalingEnableImageDpiScalingEnableKeyMapEnableRadAccessibilityObjectsEnableRadAutoScaleEnableRadFormInitialDpiScalingEnableSvgImagesEnableThemingEnableUIAutomationEnableUIAutomationDefaultValueFocusableFocusedElementFontForeColorImageListImageScalingSizeIsDesignModeIsDisplayedIsInitializingIsLoadedMaximumSizeMinimumSizePaddingRootElementShowItemToolTipsSiteSmallImageListSmallImageScalingSizeTextThemeClassNameThemeNameUseCompatibleTextRenderingUseCompatibleTextRenderingDefaultValueValidationCancelMethodsBeginInit()CanEditElementAtDesignTime(RadElement)Construct()CreateBehavior()CreateChildItems(RadElement)CreateRootElement()DisableGesture(GestureType)Dispose(bool)EnableGesture(GestureType)EndInit()FindPropertyInChildren(RadControl, IPCMessage)GetInputElement()GetMonitorDpiScaleFactor(Control)GetPlainText()GetPreferredSize(Size)GetRootElementDesiredSize(int, int, int, int)InitializeRootElement(RootRadElement)InvokeLayoutCallback(LayoutCallback)IsInputKey(Keys)LoadElementTree()LoadElementTree(Size)OnAutoSizeChanged(EventArgs)OnBackColorChanged(EventArgs)OnBindingContextChanged(EventArgs)OnCaptureLosing()OnClick(EventArgs)OnCreateControl()OnDoubleClick(EventArgs)OnEnabledChanged(EventArgs)OnFontChanged(EventArgs)OnForeColorChanged(EventArgs)OnGesture(GestureEventArgs)OnGotFocus(EventArgs)OnHandleDestroyed(EventArgs)OnInvalidated(RadElement)OnKeyDown(KeyEventArgs)OnKeyPress(KeyPressEventArgs)OnKeyUp(KeyEventArgs)OnLayout(LayoutEventArgs)OnLoad(Size)OnLocationChanged(EventArgs)OnLostFocus(EventArgs)OnMouseCaptureChanged(EventArgs)OnMouseDown(MouseEventArgs)OnMouseEnter(EventArgs)OnMouseHover(EventArgs)OnMouseLeave(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnNotifyPropertyChanged(PropertyChangedEventArgs)OnNotifyPropertyChanged(string)OnPaddingChanged(EventArgs)OnPaint(PaintEventArgs)OnPanGesture(PanGestureEventArgs)OnParentChanged(EventArgs)OnPressAndTapGesture(PressAndTapGestureEventArgs)OnPreviewKeyDown(PreviewKeyDownEventArgs)OnRightToLeftChanged(EventArgs)OnRotateGesture(RotateGestureEventArgs)OnScreenTipNeeded(object, ScreenTipNeededEventArgs)OnThemeChanged()OnThemeNameChanged(ThemeNameChangedEventArgs)OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)OnTwoFingerTapGesture(GestureEventArgs)OnVisibleChanged(EventArgs)OnZoomGesture(ZoomGestureEventArgs)PerformRadAutoScale(BoundsSpecified?)ProcessAutoSizeChanged(bool)ProcessCaptureChangeRequested(RadElement, bool)ProcessCodedUIMessage(ref IPCMessage)ProcessFocusRequested(RadElement)ProcessGesture(Message)ProcessMnemonic(char)Refresh()RegisterHostedControl(RadHostItem)ResetBackColorThemeOverrides()ResetForeColorThemeOverrides()ResetProperty(RadProperty, RadObject)ResolveStyleGroupForElement(StyleGroup, RadObject)ResumeUpdate()ResumeUpdate(bool)ScaleControl(SizeF, BoundsSpecified)SetBackColorThemeOverrides()SetBoundsCore(int, int, int, int, BoundsSpecified)SetForeColorThemeOverrides()SetRadAutoScale(bool)ShouldSerializeProperty(RadProperty, RadObject)ShouldSerializeProperty(RadProperty)SuspendUpdate()UnregisterHostedControl(RadHostItem, bool)WndProc(ref Message)EventsElementInvalidatedInitializedPanGesturePressAndTapGesturePropertyChangedRotateGestureScreenTipNeededThemeNameChangedToolTipTextNeededTwoFingerTapGestureZoomGesture
Not finding the help you need?
Contact Support