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
- ReservationNotFoundException.cs
- TextSearch.cs
- ExpressionVisitorHelpers.cs
- DesigntimeLicenseContext.cs
- NameValueConfigurationElement.cs
- IOException.cs
- DbProviderFactories.cs
- InertiaTranslationBehavior.cs
- ApplicationInfo.cs
- Part.cs
- StrongNameIdentityPermission.cs
- CommittableTransaction.cs
- InputScope.cs
- ListView.cs
- NotifyCollectionChangedEventArgs.cs
- MemberDescriptor.cs
- Stroke.cs
- serverconfig.cs
- WindowsGraphics2.cs
- StateManagedCollection.cs
- TypeDescriptionProvider.cs
- DerivedKeySecurityToken.cs
- RepeaterItem.cs
- PropertyItem.cs
- SqlProviderManifest.cs
- GridViewUpdatedEventArgs.cs
- OleDbReferenceCollection.cs
- DbParameterCollectionHelper.cs
- DrawListViewSubItemEventArgs.cs
- DiagnosticSection.cs
- IntranetCredentialPolicy.cs
- InternalPermissions.cs
- SymbolType.cs
- ServiceOperationListItemList.cs
- XmlEnumAttribute.cs
- ExeConfigurationFileMap.cs
- SmiSettersStream.cs
- OSEnvironmentHelper.cs
- StorageBasedPackageProperties.cs
- Group.cs
- WarningException.cs
- DoubleAnimationUsingKeyFrames.cs
- FontConverter.cs
- ListViewDeletedEventArgs.cs
- DomainConstraint.cs
- RSAProtectedConfigurationProvider.cs
- SqlPersonalizationProvider.cs
- CodeDirectoryCompiler.cs
- AppDomainAttributes.cs
- WindowsComboBox.cs
- TextDecorations.cs
- MD5.cs
- UserPreferenceChangedEventArgs.cs
- Utils.cs
- OrderByQueryOptionExpression.cs
- MtomMessageEncoder.cs
- HintTextConverter.cs
- HttpConfigurationContext.cs
- IpcManager.cs
- CollectionBuilder.cs
- VScrollBar.cs
- Opcode.cs
- CalendarModeChangedEventArgs.cs
- XdrBuilder.cs
- SessionStateUtil.cs
- XamlPathDataSerializer.cs
- ListBase.cs
- Rotation3DAnimationBase.cs
- MachineKeySection.cs
- SiteMembershipCondition.cs
- DataBinder.cs
- ParameterDataSourceExpression.cs
- ReadWriteObjectLock.cs
- CompiledXpathExpr.cs
- Calendar.cs
- Animatable.cs
- HttpCacheVary.cs
- Container.cs
- XmlSchemaAttributeGroupRef.cs
- ButtonBaseAdapter.cs
- Section.cs
- documentsequencetextpointer.cs
- GridViewRowEventArgs.cs
- MessageQueue.cs
- DependencySource.cs
- DataMember.cs
- DataGridViewControlCollection.cs
- TemplateColumn.cs
- TextEditorTables.cs
- RenamedEventArgs.cs
- ExpressionBuilderContext.cs
- DbUpdateCommandTree.cs
- UnsafeNativeMethods.cs
- BinaryReader.cs
- DynamicPropertyReader.cs
- ArraySortHelper.cs
- ImageDrawing.cs
- ColumnHeaderConverter.cs
- Storyboard.cs
- NotifyIcon.cs