RadPanel
Used to group collections of controls.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Containers")]
[Docking(DockingBehavior.Ask)]
public class RadPanel : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPanel...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadPanel class with default settings. Sets up container control styles and scroll event handling.
public RadPanel()
Properties
Gets or sets a value indicating whether the panel will automatically scroll to show the currently focused control inside it when focus changes.
public bool AutoScrollToCurrentControl { get; set; }
true if the panel automatically scrolls to focused controls; otherwise, false. The default is true
Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.
public bool CausesValidation { get; set; }
true if the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise, false. The default is true
Gets the default size of the control used during initialization.
protected override Size DefaultSize { get; }
The default Size of the control (200, 100)
Overrides:
Gets or sets a value indicating whether UI Automation support is enabled for this panel control. When enabled, screen readers and other accessibility tools can interact with the control.
public override bool EnableUIAutomation { get; set; }
Overrides:
Implements:
Gets the RadPanelElement that represents the visual element of this panel control. This element contains the visual styling and layout logic for the panel.
[Browsable(false)]
public RadPanelElement PanelElement { get; }
A RadPanelElement that represents the panel's visual element
Gets or sets the text displayed on the panel. This property overrides the base implementation to provide panel-specific text handling.
[Browsable(true)]
public override string Text { get; set; }
The text to display on the panel
Overrides:
Gets or sets the alignment of the text within the panel's bounds. Determines how text is positioned when displayed on the panel.
public ContentAlignment TextAlignment { get; set; }
One of the ContentAlignment values. The default is MiddleLeft
Methods
Creates the main panel element and adds it to the specified parent element. This method is called during control initialization to set up the visual hierarchy.
protected override void CreateChildItems(RadElement parent)
The parent RadElement to which the panel element will be added
Overrides:
Handles the control added event and sets up auto-sizing behavior for the new control.
protected override void OnControlAdded(ControlEventArgs e)
The ControlEventArgs containing the added control
Overrides:
Handles the control removed event and cleans up auto-sizing behavior for the removed control.
protected override void OnControlRemoved(ControlEventArgs e)
The ControlEventArgs containing the removed control
Overrides:
Handles the control load event and calculates size if auto-sizing is enabled.
protected override void OnLoad(Size desiredSize)
The desired size for the control
Overrides:
Processes changes to the AutoSize property and manages event subscriptions accordingly.
protected override void ProcessAutoSizeChanged(bool value)
The new AutoSize value
Overrides:
Processes mnemonic characters for the panel control. If the specified character matches the panel's mnemonic, focuses the next control in the tab order.
Resets theme overrides for the BackColor property and reapplies the default theme values.
protected override void ResetBackColorThemeOverrides()
Overrides:
Resets theme overrides for the ForeColor property and reapplies the default theme values.
protected override void ResetForeColorThemeOverrides()
Overrides:
Calculates the scroll position to bring the specified control into view. Respects the AutoScrollToCurrentControl setting.
Sets theme overrides for the BackColor property across all visual states of the panel element.
protected override void SetBackColorThemeOverrides()
Overrides:
Sets theme overrides for the ForeColor property across all visual states of the panel element.
protected override void SetForeColorThemeOverrides()
Overrides:
Processes Windows messages sent to the control.
protected override void WndProc(ref Message m)
The Windows Message to process.
Overrides: