Exemple #1
0
        private static void ForceRedraw(RibbonContextualTabGroup contextGroup)
        {
            contextGroup.ForceMeasure();

            var ribbonTitleBar = UIHelper.GetParent <RibbonTitleBar>(contextGroup);

            ribbonTitleBar?.ForceMeasureAndArrange();
        }
        private static void ForceRedraw(RibbonContextualTabGroup contextGroup)
        {
            contextGroup.ForceMeasure();

            foreach (var ribbonTabItem in contextGroup.Items)
            {
                ribbonTabItem.ForceMeasure();
            }

            var ribbonTitleBar = UIHelper.GetParent <RibbonTitleBar>(contextGroup);

            ribbonTitleBar?.ScheduleForceMeasureAndArrange();
        }