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
- WorkflowInstanceProvider.cs
- SqlProviderManifest.cs
- Visual3D.cs
- SharedPersonalizationStateInfo.cs
- KeyToListMap.cs
- ManifestSignatureInformation.cs
- Util.cs
- RenderData.cs
- DynamicRenderer.cs
- HelloOperation11AsyncResult.cs
- CheckableControlBaseAdapter.cs
- XpsImageSerializationService.cs
- Missing.cs
- SmiRequestExecutor.cs
- ListDataBindEventArgs.cs
- FrameworkContentElement.cs
- Unit.cs
- ObjectListFieldCollection.cs
- ResXResourceSet.cs
- RelOps.cs
- NameSpaceEvent.cs
- SourceChangedEventArgs.cs
- NetStream.cs
- BindingMAnagerBase.cs
- Transactions.cs
- ScaleTransform.cs
- XsltContext.cs
- MessageSmuggler.cs
- TextViewSelectionProcessor.cs
- wgx_sdk_version.cs
- TypeResolver.cs
- OneOfTypeConst.cs
- HttpChannelBindingToken.cs
- QueryTreeBuilder.cs
- UpdatePanelControlTrigger.cs
- Cell.cs
- DispatcherOperation.cs
- MsmqProcessProtocolHandler.cs
- TypeUsage.cs
- VersionedStreamOwner.cs
- PrimitiveCodeDomSerializer.cs
- PathStreamGeometryContext.cs
- StylusButtonCollection.cs
- ObjectStateFormatter.cs
- mediaeventargs.cs
- PersistenceException.cs
- Event.cs
- EntitySetDataBindingList.cs
- ZipIORawDataFileBlock.cs
- LocalBuilder.cs
- NegotiateStream.cs
- Button.cs
- StringExpressionSet.cs
- NodeFunctions.cs
- Facet.cs
- MailSettingsSection.cs
- ParameterCollectionEditorForm.cs
- GraphicsState.cs
- XmlSequenceWriter.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- Monitor.cs
- ReferentialConstraint.cs
- RuntimeEnvironment.cs
- HtmlElementCollection.cs
- DataGridViewRow.cs
- IPAddress.cs
- GestureRecognitionResult.cs
- QilGenerator.cs
- BitmapData.cs
- TransportBindingElement.cs
- ComplexPropertyEntry.cs
- LocalizedNameDescriptionPair.cs
- ColorBuilder.cs
- ThicknessKeyFrameCollection.cs
- ControlCollection.cs
- GroupBoxRenderer.cs
- ExceptionUtil.cs
- StatusBar.cs
- DataObject.cs
- XmlAggregates.cs
- Int32RectValueSerializer.cs
- DiscoveryMessageSequence.cs
- PageCatalogPartDesigner.cs
- DataGridItem.cs
- BordersPage.cs
- HwndSource.cs
- PEFileEvidenceFactory.cs
- Point3DAnimationBase.cs
- SqlGatherConsumedAliases.cs
- StorageEntitySetMapping.cs
- DescendantOverDescendantQuery.cs
- ByteStorage.cs
- PublisherMembershipCondition.cs
- RuntimeVariablesExpression.cs
- Int32Converter.cs
- HwndTarget.cs
- TextElementAutomationPeer.cs
- AutomationTextAttribute.cs
- SQLRoleProvider.cs
- CodeCommentStatementCollection.cs