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
Initializes a new instance of the RadToolbarFormControl class. Sets up default properties including AutoSize, CausesValidation, and Dock behavior.
public RadToolbarFormControl()
Properties
Gets or sets the height of the extended title bar.
public virtual int CaptionHeight { get; set; }
Gets the collection of items positioned in the center of the toolbar form control.
[Browsable(true)]
[RadNewItem("Type here", true, false)]
[RadEditItemsAction]
public virtual RadItemOwnerCollection CenterItems { get; }
A RadItemOwnerCollection containing the center-positioned toolbar items.
Gets or sets the margin that defines the margin of the WrapLayoutPanel holding the center items.
public Padding CenterItemsMargin { get; set; }
Gets or sets the vertical alignment of the center toolbar items.
public RadVerticalAlignment CenterItemsVerticalAlignment { get; set; }
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.
public int? CenterItemsWrapWeight { get; set; }
Gets the default size of the control.
protected override Size DefaultSize { get; }
A Size representing the default dimensions (400x40) of the control.
Overrides:
Gets the collection of items positioned on the far side (typically right) of the toolbar form control.
[Browsable(true)]
[RadNewItem("Type here", true, false)]
[RadEditItemsAction]
public virtual RadItemOwnerCollection FarItems { get; }
A RadItemOwnerCollection containing the far-positioned toolbar items.
Gets or sets the margin that defines the margin of the WrapLayoutPanel holding the far items.
public Padding FarItemsMargin { get; set; }
Gets or sets the vertical alignment of the far toolbar items.
public RadVerticalAlignment FarItemsVerticalAlignment { get; set; }
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.
public int? FarItemsWrapWeight { get; set; }
Gets the help button element in the form's caption bar.
public override RadItem HelpButtonElement { get; }
The RadItem representing the help button element.
Overrides:
Gets the icon element displayed in the caption bar of the form.
public override ImagePrimitive IconCaptionElement { get; }
The ImagePrimitive representing the icon element.
Overrides:
Gets the maximize button element in the form's caption bar.
public override RadItem MaximizeButtonElement { get; }
The RadItem representing the maximize button element.
Overrides:
Gets the minimize button element in the form's caption bar.
public override RadItem MinimizeButtonElement { get; }
The RadItem representing the minimize button element.
Overrides:
Gets the collection of items positioned on the near side (typically left) of the toolbar form control.
[Browsable(true)]
[RadNewItem("Type here", true, false)]
[RadEditItemsAction]
public virtual RadItemOwnerCollection NearItems { get; }
A RadItemOwnerCollection containing the near-positioned toolbar items.
Gets or sets the margin that defines the margin of the WrapLayoutPanel holding the near items.
public Padding NearItemsMargin { get; set; }
Gets or sets the vertical alignment of the near toolbar items.
public RadVerticalAlignment NearItemsVerticalAlignment { get; set; }
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.
public int? NearItemsWrapWeight { get; set; }
Gets or sets a value indicating whether an icon is displayed in the caption bar of the form.
public virtual bool ShowIcon { get; set; }
Gets or sets whether the element holding the text is visible.
public virtual bool ShowText { get; set; }
Gets the system buttons element containing the minimize, maximize, and close buttons in the form's caption bar.
public override RadItem SystemButtonsElement { get; }
The RadItem representing the system buttons element.
Overrides:
Gets the text element displayed in the caption bar of the form.
public override RadElement TextCaptionElement { get; }
The RadElement representing the text caption element.
Overrides:
Gets or sets the position of the text inside the title bar.
public ToolbarTextPosition TextPosition { get; set; }
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.
[Browsable(false)]
public RadToolbarFormControlElement ToolbarFormControlElement { get; }
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.
public ToolbarWrapMode WrapMode { get; set; }
Methods
Creates the child elements of this control by adding the main RadToolbarFormControlElement to the root element.
protected override void CreateChildItems(RadElement parent)
The parent element to which child elements will be added.
Overrides:
Creates and returns a new instance of RadToolbarFormControlElement. This method can be overridden to provide custom element implementations.
protected virtual RadToolbarFormControlElement CreateToolbarFormControlElement()
A new instance of RadToolbarFormControlElement.
Initializes the root element of the control by setting its vertical stretch behavior.
protected override void InitializeRootElement(RootRadElement rootElement)
The root element to initialize.
Overrides:
Processes changes to the AutoSize property. This method is intentionally empty for this control as auto-sizing behavior is handled differently.
protected override void ProcessAutoSizeChanged(bool value)
The new value of the AutoSize property.
Overrides: