示例#1
0
        /// <summary>
        /// Disposes of the resources, other than memory, used by the <see cref="RibbonBarItemButtonMenu" />.
        /// </summary>
        /// <param name="disposing">true when this method is called by the application rather than a finalizer.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                this.Button = null;
            }

            base.Dispose(disposing);
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of <see cref="RibbonBarItemEventArgs"/>
        /// using the specified parameters.
        /// </summary>
        /// <param name="item">The <see cref="RibbonBarItemButton"/> that originated the event.</param>
        /// <param name="menuItem">The <see cref="MenuItem"/> that was clicked or tapped.</param>
        public RibbonBarMenuItemEventArgs(RibbonBarItemButton item, MenuItem menuItem)
            : base(menuItem)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }
            if (menuItem == null)
            {
                throw new ArgumentNullException(nameof(menuItem));
            }

            this.Item = item;
        }
示例#3
0
 internal RibbonBarItemButtonMenu(RibbonBarItemButton button)
 {
     this.Button = button;
 }