System.Windows.Data.ListCollectionView.UpdateCurrentPositionAndItem C# (CSharp) Method

UpdateCurrentPositionAndItem() private method

private UpdateCurrentPositionAndItem ( int position, object item ) : void
position int
item object
return void
		void UpdateCurrentPositionAndItem (int position, object item)
		{
			bool emitPositionChanged = CurrentPosition != position;
			bool emitItemChanged = CurrentItem != item;

			CurrentPosition = position;
			CurrentItem = item;

			if (emitPositionChanged)
				RaisePropertyChanged ("CurrentPosition");
			if (emitItemChanged)
				RaisePropertyChanged ("CurrentItem");
		}
	}