RadToolbarForm
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
public RadToolbarForm()
Properties
Gets a value indicating whether the non-client control should be added when the form is shown at runtime. Always returns true for RadToolbarForm.
protected override bool AddNonClientControlOnShownRuntime { get; }
Overrides:
Gets the main ToolbarFormElement that represents the visual structure of the RadToolbarForm.
public ToolbarFormElement FormElement { get; }
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.
[Browsable(true)]
public bool ShowIcon { get; set; }
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.
[Browsable(true)]
public bool ShowText { get; set; }
Gets or sets the class name of the theme to be used for styling this RadToolbarForm. The default value is "Telerik.WinControls.UI.RadToolbarForm".
public override string ThemeClassName { get; set; }
Overrides:
Gets the RadToolbarFormControl instance that is used internally by the form to provide toolbar functionality.
public RadToolbarFormControl ToolbarFormControl { get; }
Methods
Adds the non-client control to the form. In design mode, uses the base implementation. At runtime, creates a RadToolbarFormControl through the ToolbarFormControlCreating event.
protected override void AddNonClientControlInForm()
Overrides:
Initializes the form behavior instance that manages the toolbar form's non-client area behavior and appearance.
protected override FormControlBehavior InitializeFormBehavior()
A RadToolbarFormBehavior instance that handles the form's custom behavior.
Overrides:
Events
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.
public event EventHandler<ToolbarFormControlCreatingEventArgs> ToolbarFormControlCreating