Microsoft.Windows.Controls.Ribbon.RibbonGalleryCategory.SynchronizeWithCurrentItem C# (CSharp) 메소드

SynchronizeWithCurrentItem() 개인적인 메소드

private SynchronizeWithCurrentItem ( ) : void
리턴 void
        private void SynchronizeWithCurrentItem()
        {
            if (RibbonGallery != null && RibbonGallery.IsSynchronizedWithCurrentItemInternal)
            {
                if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
                {
                    if (RibbonGallery != null && RibbonGallery.SelectedItem == null)
                    {
                        // Since there isn't already a SelectedItem
                        // synchronize it to match CurrentItem
                        OnCurrentItemChanged();
                    }
                }
            }
        }