Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / Primitives / ItemsChangedEventArgs.cs / 1305600 / ItemsChangedEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Delegate and args for the ItemsChanged event. // // Specs: http://avalon/connecteddata/M5%20General%20Docs/Data%20Styling.mht // //--------------------------------------------------------------------------- using System; using System.Collections.Specialized; using System.ComponentModel; namespace System.Windows.Controls.Primitives { ////// The ItemsChanged event is raised by an ItemContainerGenerator to inform /// layouts that the items collection has changed. /// public class ItemsChangedEventArgs : EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- internal ItemsChangedEventArgs(NotifyCollectionChangedAction action, GeneratorPosition position, GeneratorPosition oldPosition, int itemCount, int itemUICount) { _action = action; _position = position; _oldPosition = oldPosition; _itemCount = itemCount; _itemUICount = itemUICount; } internal ItemsChangedEventArgs(NotifyCollectionChangedAction action, GeneratorPosition position, int itemCount, int itemUICount) : this(action, position, new GeneratorPosition(-1, 0), itemCount, itemUICount) { } //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- ///What happened public NotifyCollectionChangedAction Action { get { return _action; } } ///Where it happened public GeneratorPosition Position { get { return _position; } } ///Where it happened public GeneratorPosition OldPosition { get { return _oldPosition; } } ///How many items were involved public int ItemCount { get { return _itemCount; } } ///How many UI elements were involved public int ItemUICount { get { return _itemUICount; } } //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ NotifyCollectionChangedAction _action; GeneratorPosition _position; GeneratorPosition _oldPosition; int _itemCount; int _itemUICount; } ////// The delegate to use for handlers that receive ItemsChangedEventArgs. /// public delegate void ItemsChangedEventHandler(object sender, ItemsChangedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _StreamFramer.cs
- CharAnimationUsingKeyFrames.cs
- NativeMethods.cs
- ContentDesigner.cs
- PageRanges.cs
- XmlElementCollection.cs
- ExceptionUtil.cs
- DataFieldCollectionEditor.cs
- DBParameter.cs
- SerializableAttribute.cs
- ProxyElement.cs
- HttpException.cs
- XamlTemplateSerializer.cs
- InputProcessorProfiles.cs
- ProcessRequestAsyncResult.cs
- DynamicUpdateCommand.cs
- XmlHierarchyData.cs
- TextEditorDragDrop.cs
- DataStreams.cs
- CachedTypeface.cs
- ByteAnimationUsingKeyFrames.cs
- ExpressionBinding.cs
- PropertyEmitterBase.cs
- ProtocolsConfiguration.cs
- SQLCharsStorage.cs
- WrappedDispatcherException.cs
- ContentWrapperAttribute.cs
- ConstraintConverter.cs
- PeerCollaborationPermission.cs
- CodeSnippetStatement.cs
- ValueTypeFixupInfo.cs
- Matrix3D.cs
- FastEncoder.cs
- XmlAttributeProperties.cs
- BinaryObjectInfo.cs
- FormatterServices.cs
- StreamWriter.cs
- CipherData.cs
- Win32MouseDevice.cs
- NegotiateStream.cs
- ValidatingCollection.cs
- TextSelectionProcessor.cs
- TableHeaderCell.cs
- PathFigureCollectionConverter.cs
- Separator.cs
- Storyboard.cs
- DataPager.cs
- CdpEqualityComparer.cs
- ColumnMapVisitor.cs
- EntityCommand.cs
- Rectangle.cs
- coordinator.cs
- SupportingTokenParameters.cs
- ExtentKey.cs
- BulletChrome.cs
- XmlAnyElementAttributes.cs
- ListViewTableRow.cs
- MapPathBasedVirtualPathProvider.cs
- HybridObjectCache.cs
- UnsafeMethods.cs
- HtmlInputReset.cs
- XmlSchemaGroupRef.cs
- PackWebResponse.cs
- ProxyManager.cs
- FilterElement.cs
- CollectionType.cs
- DispatcherSynchronizationContext.cs
- AbstractSvcMapFileLoader.cs
- Pens.cs
- HotSpotCollection.cs
- SqlMethodAttribute.cs
- AvTraceFormat.cs
- AuthenticationModuleElementCollection.cs
- ExceptionValidationRule.cs
- LockRecursionException.cs
- CounterCreationDataCollection.cs
- RecipientInfo.cs
- ReadOnlyHierarchicalDataSourceView.cs
- validationstate.cs
- MostlySingletonList.cs
- SmiEventSink_DeferedProcessing.cs
- WindowsSolidBrush.cs
- PageBuildProvider.cs
- StaticSiteMapProvider.cs
- BitmapEffectInputData.cs
- DeferredRunTextReference.cs
- NodeInfo.cs
- WindowsRebar.cs
- Transform3DCollection.cs
- ClientFormsIdentity.cs
- CategoryNameCollection.cs
- InstanceDataCollectionCollection.cs
- TextElementEnumerator.cs
- DataPagerField.cs
- TextRunProperties.cs
- OperationAbortedException.cs
- MessageHeaders.cs
- LicFileLicenseProvider.cs
- AutoResizedEvent.cs
- _NTAuthentication.cs