Esempio n. 1
0
        /// <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;
        }
Esempio n. 2
0
 /// <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)
 {
 }
Esempio n. 3
0
 /// <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)
 {
 }
Esempio n. 4
0
        /// <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;
        }
Esempio n. 5
0
        /// <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;
        }
Esempio n. 6
0
        /// <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)
 {
 }