/// <summary>
        /// Initialise a new instance of the KryptonRibbonGroupCluster class.
        /// </summary>
        public KryptonRibbonGroupCluster()
        {
            // Default fields
            _itemSizeMax = GroupItemSize.Medium;
            _itemSizeMin = GroupItemSize.Small;
            _itemSizeCurrent = GroupItemSize.Medium;
            _visible = true;

            // Create collection for holding triple items
            _ribbonClusterItems = new KryptonRibbonGroupClusterCollection();
            _ribbonClusterItems.Clearing += new EventHandler(OnRibbonGroupClusterClearing);
            _ribbonClusterItems.Cleared += new EventHandler(OnRibbonGroupClusterCleared);
            _ribbonClusterItems.Inserted += new TypedHandler<KryptonRibbonGroupItem>(OnRibbonGroupClusterInserted);
            _ribbonClusterItems.Removed += new TypedHandler<KryptonRibbonGroupItem>(OnRibbonGroupClusterRemoved);
        }
Exemple #2
0
        /// <summary>
        /// Initialise a new instance of the KryptonRibbonGroupCluster class.
        /// </summary>
        public KryptonRibbonGroupCluster()
        {
            // Default fields
            _itemSizeMax     = GroupItemSize.Medium;
            _itemSizeMin     = GroupItemSize.Small;
            _itemSizeCurrent = GroupItemSize.Medium;
            _visible         = true;

            // Create collection for holding triple items
            Items           = new KryptonRibbonGroupClusterCollection();
            Items.Clearing += OnRibbonGroupClusterClearing;
            Items.Cleared  += OnRibbonGroupClusterCleared;
            Items.Inserted += OnRibbonGroupClusterInserted;
            Items.Removed  += OnRibbonGroupClusterRemoved;
        }