Microsoft.Phone.Controls.LockablePivot.OnItemsChanged C# (CSharp) Method

OnItemsChanged() protected method

Invoked when the Items property changes.
protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs Information about the change.
return void
        protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
        {
            if (!_isUpdating)
            {
                if (_isLocked)
                {
                    throw new System.InvalidOperationException(
                        "Pivot Items cannot be modified when locked"
                        );
                }

                // Items have been changed, so animation information
                // will need to be recreated.
                _animInfo = null;

                base.OnItemsChanged(e);
            }
        }