ClassRadToolbarFormControl
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadToolbarFormControl : RadNCEnabledControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadNonClientUIControlRadNCEnabledControlRadToolbarFormControl
Implements:
Inherited Members
Constructors
RadToolbarFormControl()
Initializes a new instance of the RadToolbarFormControl class. Sets up default properties including AutoSize, CausesValidation, and Dock behavior.
Declaration
public RadToolbarFormControl()
Properties
CaptionHeight
Gets or sets the height of the extended title bar.
CenterItems
Gets the collection of items positioned in the center of the toolbar form control.
Declaration
[Browsable(true)]
[RadNewItem("Type here", true, false)]
[RadEditItemsAction]
public virtual RadItemOwnerCollection CenterItems { get; }
Property Value
A RadItemOwnerCollection containing the center-positioned toolbar items.
CenterItemsMargin
Gets or sets the margin that defines the margin of the WrapLayoutPanel holding the center items.
CenterItemsVerticalAlignment
Gets or sets the vertical alignment of the center toolbar items.
Declaration
public RadVerticalAlignment CenterItemsVerticalAlignment { get; set; }
Property Value
CenterItemsWrapWeight
Gets or sets the wrap weight while performing the layout of the CenterItems container. The property is only relevant in the Weight wrap mode. The value is in percentage and determines what part of the available space is dedicated to the container.
DefaultSize
Gets the default size of the control.
FarItems
Gets the collection of items positioned on the far side (typically right) of the toolbar form control.
Declaration
[Browsable(true)]
[RadNewItem("Type here", true, false)]
[RadEditItemsAction]
public virtual RadItemOwnerCollection FarItems { get; }
Property Value
A RadItemOwnerCollection containing the far-positioned toolbar items.
FarItemsMargin
Gets or sets the margin that defines the margin of the WrapLayoutPanel holding the far items.
FarItemsVerticalAlignment
Gets or sets the vertical alignment of the far toolbar items.
Declaration
public RadVerticalAlignment FarItemsVerticalAlignment { get; set; }
Property Value
FarItemsWrapWeight
Gets or sets the wrap weight while performing the layout of the FarItems container. The property is only relevant in the Weight wrap mode. The value is in percentage and determines what part of the available space is dedicated to the container.
HelpButtonElement
Gets the help button element in the form's caption bar.
IconCaptionElement
Gets the icon element displayed in the caption bar of the form.
Declaration
public override ImagePrimitive IconCaptionElement { get; }
Property Value
The ImagePrimitive representing the icon element.
Overrides
MaximizeButtonElement
Gets the maximize button element in the form's caption bar.
MinimizeButtonElement
Gets the minimize button element in the form's caption bar.
NearItems
Gets the collection of items positioned on the near side (typically left) of the toolbar form control.
Declaration
[Browsable(true)]
[RadNewItem("Type here", true, false)]
[RadEditItemsAction]
public virtual RadItemOwnerCollection NearItems { get; }
Property Value
A RadItemOwnerCollection containing the near-positioned toolbar items.
NearItemsMargin
Gets or sets the margin that defines the margin of the WrapLayoutPanel holding the near items.
NearItemsVerticalAlignment
Gets or sets the vertical alignment of the near toolbar items.
Declaration
public RadVerticalAlignment NearItemsVerticalAlignment { get; set; }
Property Value
NearItemsWrapWeight
Gets or sets the wrap weight while performing the layout of the NearItems container. The property is only relevant in the Weight wrap mode. The value is in percentage and determines what part of the available space is dedicated to the container.
ShowIcon
Gets or sets a value indicating whether an icon is displayed in the caption bar of the form.
ShowText
Gets or sets whether the element holding the text is visible.
SystemButtonsElement
Gets the system buttons element containing the minimize, maximize, and close buttons in the form's caption bar.
TextCaptionElement
Gets the text element displayed in the caption bar of the form.
Declaration
public override RadElement TextCaptionElement { get; }
Property Value
The RadElement representing the text caption element.
Overrides
TextPosition
Gets or sets the position of the text inside the title bar.
Declaration
public ToolbarTextPosition TextPosition { get; set; }
Property Value
ToolbarFormControlElement
Gets the instance of RadToolbarFormControlElement wrapped by this control. The RadToolbarFormControlElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadToolbarFormControlElement.
Declaration
[Browsable(false)]
public RadToolbarFormControlElement ToolbarFormControlElement { get; }
Property Value
WrapMode
Determines how the element containers are wrapped in relation to the available space. Both options will allocate the space for each of the containers proportionally from the totally available space. The DesiredSize will calculate the proportion depending on the DesiredSize of the element containers. The Weight option will calculate the proportion depending on the items count or the explicitly specified items weight.
Declaration
public ToolbarWrapMode WrapMode { get; set; }
Property Value
Methods
CreateChildItems(RadElement)
Creates the child elements of this control by adding the main RadToolbarFormControlElement to the root element.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
The parent element to which child elements will be added.
Overrides
CreateToolbarFormControlElement()
Creates and returns a new instance of RadToolbarFormControlElement. This method can be overridden to provide custom element implementations.
Declaration
protected virtual RadToolbarFormControlElement CreateToolbarFormControlElement()
Returns
A new instance of RadToolbarFormControlElement.
InitializeRootElement(RootRadElement)
Initializes the root element of the control by setting its vertical stretch behavior.
Declaration
protected override void InitializeRootElement(RootRadElement rootElement)
Parameters
rootElement
The root element to initialize.
Overrides
ProcessAutoSizeChanged(bool)
Processes changes to the AutoSize property. This method is intentionally empty for this control as auto-sizing behavior is handled differently.
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
value
The new value of the AutoSize property.
Overrides