/// <summary> /// Prevents a default instance of the <see cref="RibbonControlBase" /> class from being created. /// </summary> /// <param name="tabItemHeader">The tab item header.</param> /// <param name="groupBoxHeader">The group box header.</param> /// <param name="itemHeader">The item header.</param> /// <param name="behavior">The behavior.</param> /// <exception cref="ArgumentException">The <paramref name="tabItemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="groupBoxHeader"/> is <c>null</c> or whitespace.</exception> protected RibbonControlBase(string tabItemHeader, string groupBoxHeader, string itemHeader, RibbonBehavior behavior = RibbonBehavior.ActivateTab) { Argument.IsNotNullOrWhitespace("tabItemHeader", tabItemHeader); Argument.IsNotNullOrWhitespace("groupBoxHeader", groupBoxHeader); TabItemHeader = tabItemHeader; GroupBoxHeader = groupBoxHeader; ItemHeader = itemHeader; Behavior = behavior; OnlyShowWhenTabIsActivated = false; }
/// <summary> /// Initializes a new instance of the <see cref="RibbonItem"/> class. /// </summary> /// <param name="tabItemHeader">The tab item header.</param> /// <param name="groupBoxHeader">The group box header.</param> /// <param name="itemHeader">The item header.</param> /// <param name="commandName">The name of the command.</param> /// <param name="behavior">The behavior.</param> /// <exception cref="ArgumentException">The <paramref name="tabItemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="groupBoxHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="itemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="commandName"/> is <c>null</c> or whitespace.</exception> public RibbonItem(string tabItemHeader, string groupBoxHeader, string itemHeader, string commandName, RibbonBehavior behavior = RibbonBehavior.ActivateTab) : base(tabItemHeader, groupBoxHeader, itemHeader, commandName, behavior) { }
/// <summary> /// Initializes a new instance of the <see cref="RibbonSplitButton"/> class. /// </summary> /// <param name="tabItemHeader">The tab item header.</param> /// <param name="groupBoxHeader">The group box header.</param> /// <param name="itemHeader">The item header.</param> /// <param name="command">The command.</param> /// <param name="behavior">The behavior.</param> public RibbonSplitButton(string tabItemHeader, string groupBoxHeader, string itemHeader, ICommand command, RibbonBehavior behavior = RibbonBehavior.ActivateTab) : base(tabItemHeader, groupBoxHeader, itemHeader, command, behavior) { }
/// <summary> /// Initializes a new instance of the <see cref="RibbonItem"/> class. /// </summary> /// <param name="tabItemHeader">The tab item header.</param> /// <param name="groupBoxHeader">The group box header.</param> /// <param name="itemHeader">The item header.</param> /// <param name="commandName">The name of the command.</param> /// <param name="behavior">The behavior.</param> /// <exception cref="ArgumentException">The <paramref name="tabItemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="groupBoxHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="itemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="commandName"/> is <c>null</c> or whitespace.</exception> public RibbonItem(string tabItemHeader, string groupBoxHeader, string itemHeader, string commandName, RibbonBehavior behavior = RibbonBehavior.ActivateTab) : this(tabItemHeader, groupBoxHeader, itemHeader, behavior) { Argument.IsNotNullOrWhitespace("commandName", commandName); CommandName = commandName; }
/// <summary> /// Initializes a new instance of the <see cref="RibbonItem"/> class. /// </summary> /// <param name="tabItemHeader">The tab item header.</param> /// <param name="groupBoxHeader">The group box header.</param> /// <param name="itemHeader">The item header.</param> /// <param name="command">The command.</param> /// <param name="behavior">The behavior.</param> /// <exception cref="ArgumentException">The <paramref name="tabItemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="groupBoxHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="itemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentNullException">The <paramref name="command"/> is <c>null</c>.</exception> public RibbonItem(string tabItemHeader, string groupBoxHeader, string itemHeader, ICommand command, RibbonBehavior behavior = RibbonBehavior.ActivateTab) : this(tabItemHeader, groupBoxHeader, itemHeader, behavior) { Argument.IsNotNull("command", command); Command = command; }
/// <summary> /// Initializes a new instance of the <see cref="RibbonButton"/> class. /// </summary> /// <param name="tabItemHeader">The tab item header.</param> /// <param name="groupBoxHeader">The group box header.</param> /// <param name="itemHeader">The item header.</param> /// <param name="command">The command.</param> /// <param name="behavior">The behavior.</param> /// <exception cref="ArgumentException">The <paramref name="tabItemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="groupBoxHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentException">The <paramref name="itemHeader"/> is <c>null</c> or whitespace.</exception> /// <exception cref="ArgumentNullException">The <paramref name="command"/> is <c>null</c>.</exception> public RibbonButton(string tabItemHeader, string groupBoxHeader, string itemHeader, ICommand command, RibbonBehavior behavior = RibbonBehavior.ActivateTab) : base(tabItemHeader, groupBoxHeader, itemHeader, behavior) { Argument.IsNotNullOrWhitespace("itemHeader", itemHeader); Argument.IsNotNull("command", command); Command = command; }
/// <summary> /// Initializes a new instance of the <see cref="RibbonComboBox" /> class. /// </summary> /// <param name="tabItemHeader">The tab item header.</param> /// <param name="groupBoxHeader">The group box header.</param> /// <param name="itemHeader">The item header.</param> /// <param name="behavior">The behavior.</param> public RibbonComboBox(string tabItemHeader, string groupBoxHeader, string itemHeader = null, RibbonBehavior behavior = RibbonBehavior.ActivateTab) : base(tabItemHeader, groupBoxHeader, itemHeader, behavior) { }