Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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: 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. //---------------------------------------------------------------------------- // //// 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
- NodeLabelEditEvent.cs
- WebPartVerb.cs
- MultipleCopiesCollection.cs
- Switch.cs
- TaskFormBase.cs
- DocumentsTrace.cs
- SimpleRecyclingCache.cs
- ModelItem.cs
- HostingEnvironment.cs
- CryptoProvider.cs
- StrokeNode.cs
- SqlFlattener.cs
- MonitoringDescriptionAttribute.cs
- MenuRenderer.cs
- Stroke.cs
- XmlBoundElement.cs
- GrammarBuilderPhrase.cs
- StorageComplexPropertyMapping.cs
- SpellerError.cs
- XmlImplementation.cs
- EntitySqlException.cs
- SynchronizedChannelCollection.cs
- CompressionTransform.cs
- XmlTextReader.cs
- UshortList2.cs
- SimplePropertyEntry.cs
- SymDocumentType.cs
- CodeNamespaceImport.cs
- MexHttpsBindingCollectionElement.cs
- ToolStripRendererSwitcher.cs
- EventSourceCreationData.cs
- RoleGroup.cs
- ViewgenGatekeeper.cs
- WeakHashtable.cs
- BitmapEffectOutputConnector.cs
- KnownAssemblyEntry.cs
- BuilderPropertyEntry.cs
- TypeConstant.cs
- CacheManager.cs
- CellIdBoolean.cs
- RequiredFieldValidator.cs
- HitTestResult.cs
- SplitContainer.cs
- CharAnimationBase.cs
- DataGridViewTopLeftHeaderCell.cs
- xamlnodes.cs
- BaseDataList.cs
- MonikerHelper.cs
- FlowNode.cs
- FixedTextPointer.cs
- LinqDataSourceStatusEventArgs.cs
- ECDsaCng.cs
- ScalarRestriction.cs
- FormClosingEvent.cs
- ZipIOLocalFileHeader.cs
- ResourceType.cs
- MetaTable.cs
- SafeFileMapViewHandle.cs
- XmlUnspecifiedAttribute.cs
- SerialPinChanges.cs
- FacetChecker.cs
- ContextActivityUtils.cs
- ChannelOptions.cs
- AutomationElementCollection.cs
- ModelService.cs
- PartialTrustVisibleAssembly.cs
- AddressAlreadyInUseException.cs
- EndCreateSecurityTokenRequest.cs
- PerfService.cs
- DefaultValueAttribute.cs
- ListItemCollection.cs
- SafeNativeMethods.cs
- PageSettings.cs
- ConnectionStringsExpressionBuilder.cs
- ExpandedWrapper.cs
- WindowsAuthenticationModule.cs
- SecurityTokenSerializer.cs
- ADMembershipUser.cs
- SearchForVirtualItemEventArgs.cs
- InvalidOleVariantTypeException.cs
- OrderingInfo.cs
- DesignerProperties.cs
- BufferModesCollection.cs
- ApplicationGesture.cs
- ErrorRuntimeConfig.cs
- DependencySource.cs
- PropertyEntry.cs
- ContextMenu.cs
- OracleConnectionString.cs
- SelectedCellsChangedEventArgs.cs
- DataRelationCollection.cs
- Bind.cs
- CLRBindingWorker.cs
- BitmapEffectDrawing.cs
- RelatedView.cs
- SqlReorderer.cs
- ProxyHwnd.cs
- XmlEncodedRawTextWriter.cs
- FragmentNavigationEventArgs.cs
- Int32Animation.cs