Microsoft.Windows.Controls.Ribbon.RibbonGallery.OnSourceCollectionViewCurrentItemChanged C# (CSharp) Method

OnSourceCollectionViewCurrentItemChanged() private method

private OnSourceCollectionViewCurrentItemChanged ( ) : void
return void
        private void OnSourceCollectionViewCurrentItemChanged()
        {
            Debug.Assert(IsSynchronizedWithCurrentItemInternal, "We shouldn't be listening for currency changes if IsSynchronizedWithCurrentItemInternal is false");

            if (IsSelectionChangeActive)
            {
                return;
            }

            // Synchronize SelectedItem with the CurrentItem
            // of the Source CollectionView
            if (SourceCollectionView != null)
            {
                SelectedItem = SourceCollectionView.CurrentItem;
            }
        }
RibbonGallery