New to Telerik UI for WinForms? Start a free 30-day trial

Provides customization dialogs for RadCommandBar.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CommandBarCustomizeDialogProvider

Inheritance: objectCommandBarCustomizeDialogProvider

Constructors

C#
public CommandBarCustomizeDialogProvider()

Properties

Gets or sets the provider used to create command-bar customization dialogs. Assign null to restore the default provider.

C#
[Browsable(false)]
public static CommandBarCustomizeDialogProvider CurrentProvider { get; set; }

Methods

Raises CustomizeDialogOpened immediately before the dialog is shown modally.

C#
protected static void OnDialogOpened(object sender)
Parameters:senderobject

The customization dialog about to be shown.

Raises CustomizeDialogOpening and reports whether a handler canceled the dialog.

C#
protected static bool OnDialogOpening(object sender)
Parameters:senderobject

The customization dialog that is about to be shown.

Returns:

bool

true if a handler cancels the opening; otherwise, false.

Creates and shows the command-bar customization dialog as a modal window.

C#
public virtual Form ShowCustomizeDialog(object sender, CommandBarStripInfoHolder infoHolder)
Parameters:senderobject

The object used to choose the initial page and inherit appearance settings. A RadCommandBar selects the strips page, and a CommandBarStripElement selects the item page. A RadControl or an element attached to one supplies the theme and reading direction; a detached element supplies only the reading direction.

infoHolderCommandBarStripInfoHolder

The strip and item information used to populate the customization dialog.

Returns:

Form

The dialog after its modal display finishes, or null if CustomizeDialogOpening cancels it.

Events

Fires when the current dialog provider has changed.

C#
public static event EventHandler CurrentProviderChanged

Occurs immediately before the customization dialog is shown modally.

C#
public static event EventHandler CustomizeDialogOpened

Fires before a customize dialog is shown

C#
public static event CancelEventHandler CustomizeDialogOpening