RadForm
Represents a Telerik themed form control that provides enhanced visual styling and customization capabilities. This class serves as the base for creating custom forms with Telerik theming support and advanced UI features.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadForm : RadFormControlBase, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadForm...
Derived Classes:
Implements:
Inherited Members
Constructors
Properties
Gets or sets a value indicating whether the form customizes its non-client area when running under Vista with Desktop Window Manager composition enabled.
[Browsable(false)]
public override bool AllowTheming { get; set; }
Overrides:
Gets or sets a value indicating whether UI Automation support is enabled for this form. When enabled, screen readers and other accessibility tools can interact with the control.
public virtual bool EnableUIAutomation { get; set; }
Implements:
Gets the RadFormElement instance that represents the element hierarchy which builds the form's visual appearance and behavior.
public RadFormElement FormElement { get; }
Gets or sets the scaling mode of the form's icon displayed in the title bar.
[Browsable(true)]
public ImageScaling IconScaling { get; set; }
Gets or sets a value indicating whether an icon is displayed in the caption bar of the form.
public bool ShowIcon { get; set; }
Gets or sets the text associated with this form, typically displayed in the title bar.
[SettingsBindable(true)]
public override string Text { get; set; }
The text associated with this control.
Overrides:
Gets or sets the class name of the theme to be used for styling this form. Returns different class names based on whether the form is using ribbon behavior.
public override string ThemeClassName { get; set; }
Overrides:
Methods
Clean up any resources being used.
protected override void Dispose(bool disposing)
true if managed resources should be disposed; otherwise, false.
Overrides:
Signals the object that initialization is complete and applies any pending theming settings.
public override void EndInit()
Overrides:
Initializes the form behavior instance that handles the form's non-client area and visual appearance.
protected override FormControlBehavior InitializeFormBehavior()
A new RadFormBehavior instance configured for this form.
Overrides:
Prevents the form from getting mouse capture when the capture is requested by one of the system buttons.
protected override bool ProcessCaptureChangeRequested(RadElement element, bool capture)
The element requesting capture.
captureboolTrue to capture the mouse; false to release it.
Returns:True if the capture change is allowed; otherwise, false.
Overrides:
Scrolls the form to make the specified control visible and synchronizes scrollbar values.
Sets the visibility of the icon primitive in the form's title bar.
protected override void SetIconPrimitiveVisibility(bool visible)
True to show the icon; false to hide it.
Overrides:
Processes Windows messages sent to the control.
protected override void WndProc(ref Message m)
The Windows Message to process.
Overrides: