Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / Primitives / ItemsChangedEventArgs.cs / 1 / ItemsChangedEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Delegate and args for the ItemsChanged event. // // Specs: [....]/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
- RangeValuePattern.cs
- SimpleType.cs
- FormatException.cs
- TreeViewImageIndexConverter.cs
- DataControlLinkButton.cs
- RuntimeUtils.cs
- TemplateBamlRecordReader.cs
- SecurityTokenContainer.cs
- HtmlValidatorAdapter.cs
- SafeBitVector32.cs
- RequestTimeoutManager.cs
- Brushes.cs
- HierarchicalDataBoundControlAdapter.cs
- WebSysDescriptionAttribute.cs
- DbQueryCommandTree.cs
- SessionStateSection.cs
- ContentWrapperAttribute.cs
- CalendarDesigner.cs
- DataGridItemCollection.cs
- XsltInput.cs
- Grid.cs
- OleDbMetaDataFactory.cs
- RangeBaseAutomationPeer.cs
- SpinLock.cs
- SimplePropertyEntry.cs
- HttpListener.cs
- FontStyleConverter.cs
- HtmlShimManager.cs
- OdbcConnectionStringbuilder.cs
- FamilyCollection.cs
- JoinGraph.cs
- ValueOfAction.cs
- EventSinkHelperWriter.cs
- WebPartVerbsEventArgs.cs
- FactoryGenerator.cs
- SeverityFilter.cs
- _ScatterGatherBuffers.cs
- WorkflowInlining.cs
- ObjectListShowCommandsEventArgs.cs
- StorageComplexPropertyMapping.cs
- SqlFacetAttribute.cs
- VirtualPathUtility.cs
- WmpBitmapDecoder.cs
- Menu.cs
- ConfigWriter.cs
- RowParagraph.cs
- OneWayChannelListener.cs
- StylusPointDescription.cs
- PropertyEntry.cs
- ScriptControl.cs
- UTF32Encoding.cs
- updateconfighost.cs
- CodeBinaryOperatorExpression.cs
- XmlSchemaAttributeGroup.cs
- SoapObjectInfo.cs
- DataBinding.cs
- SqlProviderUtilities.cs
- LifetimeServices.cs
- WinFormsUtils.cs
- MdiWindowListStrip.cs
- CodeRemoveEventStatement.cs
- CornerRadius.cs
- ExecutionContext.cs
- PasswordRecovery.cs
- BamlMapTable.cs
- ScrollBar.cs
- ProviderUtil.cs
- BrowsableAttribute.cs
- RowBinding.cs
- ReachFixedPageSerializer.cs
- ColorAnimationBase.cs
- Vector3DAnimationUsingKeyFrames.cs
- KeyboardNavigation.cs
- TagNameToTypeMapper.cs
- PropertyMetadata.cs
- GroupStyle.cs
- Tracer.cs
- SerializationObjectManager.cs
- XmlDictionaryWriter.cs
- HyperlinkAutomationPeer.cs
- SnapshotChangeTrackingStrategy.cs
- PersonalizationProviderCollection.cs
- SizeAnimationClockResource.cs
- AsymmetricAlgorithm.cs
- ProtocolsSection.cs
- CodeIterationStatement.cs
- DataBoundControl.cs
- UpdateException.cs
- SpecularMaterial.cs
- StatusBarItem.cs
- CollectionView.cs
- QilDataSource.cs
- CodeBlockBuilder.cs
- MessageSmuggler.cs
- IdnElement.cs
- Vector.cs
- UnmanagedMemoryStream.cs
- _RequestCacheProtocol.cs
- StylusDevice.cs
- ZipIOLocalFileHeader.cs