ClassRadToolbarForm
Represents a specialized form that hosts a RadToolbarFormControl control, providing a modern toolbar-style interface with customizable title bar functionality.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadToolbarForm : RadNonClientUIBaseForm<RadToolbarFormControl, RadToolbarFormBehavior>, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadNonClientUIBaseForm<RadToolbarFormControl, RadToolbarFormBehavior>RadToolbarForm
Implements:
Inherited Members
Constructors
RadToolbarForm()
Declaration
public RadToolbarForm()
Properties
AddNonClientControlOnShownRuntime
Gets a value indicating whether the non-client control should be added when the form is shown at runtime. Always returns true for RadToolbarForm.
Declaration
protected override bool AddNonClientControlOnShownRuntime { get; }
Property Value
Overrides
FormElement
Gets the main ToolbarFormElement that represents the visual structure of the RadToolbarForm.
Declaration
public ToolbarFormElement FormElement { get; }
Property Value
ShowIcon
Gets or sets a value indicating whether an icon is displayed in the caption bar of the form. This property is synchronized with the ToolbarFormControl when available.
Declaration
[Browsable(true)]
public bool ShowIcon { get; set; }
Property Value
ShowText
Gets or sets a value indicating whether to display the text in the title bar of the form. This property requires the ToolbarFormControl to be initialized.
Declaration
[Browsable(true)]
public bool ShowText { get; set; }
Property Value
ThemeClassName
Gets or sets the class name of the theme to be used for styling this RadToolbarForm. The default value is "Telerik.WinControls.UI.RadToolbarForm".
Declaration
public override string ThemeClassName { get; set; }
Property Value
Overrides
ToolbarFormControl
Gets the RadToolbarFormControl instance that is used internally by the form to provide toolbar functionality.
Declaration
public RadToolbarFormControl ToolbarFormControl { get; }
Property Value
Methods
AddNonClientControlInForm()
Adds the non-client control to the form. In design mode, uses the base implementation. At runtime, creates a RadToolbarFormControl through the ToolbarFormControlCreating event.
Declaration
protected override void AddNonClientControlInForm()
Overrides
InitializeFormBehavior()
Initializes the form behavior instance that manages the toolbar form's non-client area behavior and appearance.
Declaration
protected override FormControlBehavior InitializeFormBehavior()
Returns
A RadToolbarFormBehavior instance that handles the form's custom behavior.
Overrides
Events
ToolbarFormControlCreating
Occurs when the RadToolbarFormControl is being created at runtime, allowing customization of the control before it is added to the form. This event is only raised when the form is created at runtime, not during design time.
Declaration
public event EventHandler<ToolbarFormControlCreatingEventArgs> ToolbarFormControlCreating
Event Value