Draws a ribbon group custom control.
Inheritance: ComponentFactory.Krypton.Toolkit.ViewComposite, IRibbonViewGroupItemView
コード例 #1
0
        /// <summary>
        /// Initialize a new instance of the CustomControlController class.
        /// </summary>
        /// <param name="ribbon">Reference to owning ribbon instance.</param>
        /// <param name="customControl">Source definition.</param>
        /// <param name="target">Target view element.</param>
        public CustomControlController(KryptonRibbon ribbon,
                                       KryptonRibbonGroupCustomControl customControl,
                                       ViewDrawRibbonGroupCustomControl target)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(customControl != null);
            Debug.Assert(customControl != null);

            _ribbon = ribbon;
            _customControl = customControl;
            _target = target;
        }
        /// <summary>
        /// Initialize a new instance of the CustomControlController class.
        /// </summary>
        /// <param name="ribbon">Reference to owning ribbon instance.</param>
        /// <param name="customControl">Source definition.</param>
        /// <param name="target">Target view element.</param>
        public CustomControlController(KryptonRibbon ribbon,
                                       KryptonRibbonGroupCustomControl customControl,
                                       ViewDrawRibbonGroupCustomControl target)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(customControl != null);
            Debug.Assert(customControl != null);

            _ribbon        = ribbon;
            _customControl = customControl;
            _target        = target;
        }