Represents a simple dialog that provides customization options for the RadCommandBar element.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CommandBarCustomizeDialog : RadForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadFormCommandBarCustomizeDialog...
Implements:
Inherited Members
Constructors
Creates the dialog controls and initializes their theme context without binding strip data.
public CommandBarCustomizeDialog()
Creates a customize dialog that provides options for the strips in the specified CommandBarStripInfoHolder.
public CommandBarCustomizeDialog(CommandBarStripInfoHolder stripInfoHolder)
The CommandBarStripInfoHolder that supplies the strips and their items.
Fields
Labels the strip selector on the item-customization page.
public RadLabel chooseToolstripLabel
Closes the customization dialog.
public RadButton closeButton
Moves the selected item later in the selected strip's item order.
public RadButton moveDownButton
Moves the selected item earlier in the selected strip's item order.
public RadButton moveUpButton
Hosts the pages for editing strip visibility and strip-item order and visibility.
public RadPageView radPageView
The reset button control, hidden in the dialog's initial layout.
public RadButton resetItemsButton
Supplies the strip data used to populate the customization dialog.
public CommandBarStripInfoHolder stripInfoHolder
Lists the selected strip's items, including items in its overflow panel.
public RadListControl stripItemsListControl
Selects the strip whose items are displayed in the item-customization page.
public RadDropDownList stripsDropDownList
Lists command-bar strips; each row can change whether its strip is shown.
public RadListControl stripsListControl
Displays the selected strip's items and their order and visibility settings.
public RadPageViewPage toolstripItemsPage
Displays the list of command-bar strips and their visibility settings.
public RadPageViewPage toolstripsPage
Methods
Clean up any resources being used.
protected override void Dispose(bool disposing)
true if managed resources should be disposed; otherwise, false.
Overrides:
Supplies a data item that exposes a strip's display name and visibility to the list.
protected virtual void ItemDataBinding(object sender, ListItemDataBindingEventArgs args)
The strips list requesting a data item.
argsListItemDataBindingEventArgsThe binding event data in which to provide the new item.
Adjusts the dialog's layout for Metro Touch and Material themes.
protected override void OnLoad(EventArgs e)
Event data for the load event.
Overrides:
Mirrors the positions of the dialog's interactive controls when its reading direction changes.
protected override void OnRightToLeftChanged(EventArgs e)
Event data for the right-to-left change.
Overrides:
Applies the dialog's theme name to its nested Telerik controls.
protected override void OnThemeChanged()
Overrides:
Sets the strings values depending on the current localization provider.
protected virtual void SetLocalizedStrings()
Supplies the visual row that displays a strip's name and visibility checkbox.
protected virtual void stripsListControl_CreatingVisualListItem(object sender, CreatingVisualListItemEventArgs args)
The strips list creating a visual row.
argsCreatingVisualListItemEventArgsThe event data in which to provide the visual item.
Synchronizes the strip selector with the selected row in the strips list.
protected virtual void stripsListControl_SelectedIndexChanged(object sender, PositionChangedEventArgs e)
The strips list whose selection changed.
ePositionChangedEventArgsThe new selection position.
Supplies the visual row that displays an item's name and visibility checkbox.
protected virtual void toolstripItemsListControl_CreatingVisualListItem(object sender, CreatingVisualListItemEventArgs args)
The item list creating a visual row.
argsCreatingVisualListItemEventArgsThe event data in which to provide the visual item.
Supplies a data item that exposes a command-bar item's display name and visibility to the list.
protected virtual void toolstripItemsListControl_ItemDataBinding(object sender, ListItemDataBindingEventArgs args)
The item list requesting a data item.
argsListItemDataBindingEventArgsThe binding event data in which to provide the new item.
Enables the move buttons according to the selected item's position in the list.
protected virtual void toolstripItemsListControl_SelectedIndexChanged(object sender, PositionChangedEventArgs e)
The item list whose selection changed.
ePositionChangedEventArgsThe new selection position.
Synchronizes the strips list selection with the selected strip in the drop-down list.
protected virtual void toolstripsDropDownList_SelectedIndexChanged(object sender, PositionChangedEventArgs e)
The strip selector whose selection changed.
ePositionChangedEventArgsThe new selection position.
Removes selection, data-binding, and visual-item handlers from the two list controls and unsubscribes from localization-provider changes.
protected virtual void UnwireEvents()
Connects the dialog's close, selection, and localization-provider event handlers.
protected virtual void WireEvents()