RadFormElement
Represents the root element hierarchy that defines the visual structure and layout of a RadForm's non-client area, including title bar, borders, scrollbars, and MDI control strip components.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadFormElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadFormElement...
Implements:
Inherited Members
Constructors
public RadFormElement()
Fields
Identifies the FormWindowState dependency property that controls the window state appearance of the form element.
public static RadProperty FormWindowStateProperty
Identifies the IsFormActive dependency property that determines whether the form appears in active or inactive visual state.
public static RadProperty IsFormActiveProperty
Properties
Gets the FormBorderPrimitive that provides the line-based border rendering for the form element.
public FormBorderPrimitive Border { get; }
Gets the combined border width as a Padding structure, calculated from both line and image border components when visible.
public Padding BorderWidth { get; }
Gets the RadScrollBarElement configured for horizontal scrolling within the form's client area.
public RadScrollBarElement HorizontalScrollbar { get; }
Gets the FormImageBorderPrimitive that provides image-based border rendering for the form element.
public FormImageBorderPrimitive ImageBorder { get; }
Gets or sets a value indicating whether the form should appear in active or inactive visual state, allowing override of default theme styles that define different appearance based on form activation status.
[Browsable(false)]
public bool IsFormActive { get; set; }
Gets the RadFormMdiControlStripItem that appears below the title bar when an MDI child window is maximized within the form.
public RadFormMdiControlStripItem MdiControlStrip { get; }
Gets the sizing grip element that appears at the intersection of horizontal and vertical scrollbars, allowing users to resize the form.
public RadItem ScrollBarsFormSizingGrip { get; }
Gets the RadFormTitleBarElement that contains the form's title, icon, and window control buttons.
public RadFormTitleBarElement TitleBar { get; }
Gets the RadScrollBarElement configured for vertical scrolling within the form's client area.
public RadScrollBarElement VerticalScrollbar { get; }
Methods
Arranges the form element's child components including image border and scrollbars layout, positioning them within the specified final size while accounting for title bar height and border dimensions.
Creates and initializes all child elements including title bar, borders, scrollbars, MDI control strip, and sizing grip components that comprise the form's visual structure.
protected override void CreateChildElements()
Overrides:
Creates and returns a new RadFormTitleBarElement instance. Override this method to provide custom title bar implementations.
protected virtual RadFormTitleBarElement CreateTitleBarElement()
A new RadFormTitleBarElement instance to serve as the form's title bar.
Measures the desired size of the form element, accounting for border width and thickness when calculating available space for child elements.