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
- CallContext.cs
- FileIOPermission.cs
- ManagementObject.cs
- HttpStaticObjectsCollectionBase.cs
- StaticFileHandler.cs
- SiteMapNodeCollection.cs
- ExpressionBuilderCollection.cs
- ListItemParagraph.cs
- Label.cs
- RelationshipDetailsRow.cs
- Hashtable.cs
- XmlSchemaAnnotated.cs
- MsdtcWrapper.cs
- DataGridTablesFactory.cs
- Utils.cs
- CallbackDebugBehavior.cs
- RequestCachePolicyConverter.cs
- MasterPageBuildProvider.cs
- ProcessModelSection.cs
- WsdlInspector.cs
- TreeViewHitTestInfo.cs
- FormsAuthenticationEventArgs.cs
- Semaphore.cs
- FontFamilyIdentifier.cs
- XmlSerializationGeneratedCode.cs
- DeflateEmulationStream.cs
- RegisteredDisposeScript.cs
- TableTextElementCollectionInternal.cs
- RegexCaptureCollection.cs
- HttpRequestBase.cs
- InProcStateClientManager.cs
- TransformBlockRequest.cs
- ProfileSettings.cs
- HotSpot.cs
- LogicalExpressionTypeConverter.cs
- TrackBar.cs
- XmlLinkedNode.cs
- ComplexLine.cs
- XmlDictionaryReaderQuotas.cs
- PointAnimationClockResource.cs
- AuthorizationRule.cs
- MimeWriter.cs
- CommandLineParser.cs
- RequestResizeEvent.cs
- TextMetrics.cs
- AspNetHostingPermission.cs
- Model3D.cs
- CompilerInfo.cs
- filewebrequest.cs
- TextDecoration.cs
- StylusTip.cs
- ZoneLinkButton.cs
- WizardPanel.cs
- XslVisitor.cs
- ListSortDescriptionCollection.cs
- LinkedDataMemberFieldEditor.cs
- ConfigXmlComment.cs
- TaskForm.cs
- InstanceData.cs
- SHA1Managed.cs
- StringComparer.cs
- IpcChannelHelper.cs
- FixedSOMPageElement.cs
- QfeChecker.cs
- CreateUserWizardDesigner.cs
- StateDesigner.TransitionInfo.cs
- SQLInt32.cs
- RestHandler.cs
- WebPartConnectionsCloseVerb.cs
- _AcceptOverlappedAsyncResult.cs
- DataViewSetting.cs
- _SslStream.cs
- MdbDataFileEditor.cs
- PictureBox.cs
- FormViewUpdateEventArgs.cs
- ISessionStateStore.cs
- TableCell.cs
- DataKeyArray.cs
- QuaternionConverter.cs
- SecurityTimestamp.cs
- RoleExceptions.cs
- FilterEventArgs.cs
- AutomationPropertyInfo.cs
- RegexTree.cs
- Bold.cs
- ResourceFallbackManager.cs
- DefaultSettingsSection.cs
- OdbcErrorCollection.cs
- GlobalEventManager.cs
- GotoExpression.cs
- Panel.cs
- MouseButtonEventArgs.cs
- AttachInfo.cs
- TextServicesPropertyRanges.cs
- DetailsViewInsertEventArgs.cs
- BrowserTree.cs
- BufferModeSettings.cs
- CommonDialog.cs
- NetNamedPipeBindingElement.cs
- BinaryObjectWriter.cs