示例#1
0
        private void ResetSize()
        {
            foreach (ViewBase item in this)
            {
                IRibbonViewGroupItemView viewItem = item as IRibbonViewGroupItemView;
                viewItem?.ResetGroupItemSize();
            }

            SetCurrentSize(_ribbonTriple.ItemSizeCurrent);
        }
        private void ResetSize()
        {
            foreach (ViewBase item in this)
            {
                IRibbonViewGroupItemView viewItem = item as IRibbonViewGroupItemView;
                viewItem?.ResetGroupItemSize();
            }

            CurrentSize = _ribbonLines.ItemSizeCurrent;
        }
示例#3
0
        /// <summary>
        /// Reset the group item size to the item definition.
        /// </summary>
        public void ResetGroupItemSize()
        {
            foreach (KryptonRibbonGroupItem item in _ribbonCluster.Items)
            {
                IRibbonViewGroupItemView viewItemSize = _itemToView[item] as IRibbonViewGroupItemView;
                viewItemSize.ResetGroupItemSize();
            }

            // Our current size is based on the parent one
            ViewLayoutRibbonGroupLines viewLines = (ViewLayoutRibbonGroupLines)Parent;

            _currentSize = (viewLines.CurrentSize == GroupItemSize.Small ? GroupItemSize.Small : GroupItemSize.Medium);
        }