Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / Primitives / ItemsChangedEventArgs.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuEventArgs.cs
- WebPartExportVerb.cs
- GridViewRowPresenterBase.cs
- TabControlCancelEvent.cs
- SqlDataSourceConfigureSelectPanel.cs
- EndpointDesigner.cs
- VectorAnimationBase.cs
- DesignerVerb.cs
- SrgsSubset.cs
- RegexTree.cs
- GregorianCalendar.cs
- DataGridViewRowsRemovedEventArgs.cs
- ToolStripScrollButton.cs
- Label.cs
- Utility.cs
- SortExpressionBuilder.cs
- ItemMap.cs
- CompilationPass2Task.cs
- OneOf.cs
- PropertyInfoSet.cs
- precedingsibling.cs
- MimeXmlImporter.cs
- RuleSettingsCollection.cs
- TransformDescriptor.cs
- SessionStateUtil.cs
- X509Certificate.cs
- SortDescriptionCollection.cs
- PackageRelationshipCollection.cs
- BitmapPalettes.cs
- EventMap.cs
- TextEditorThreadLocalStore.cs
- CorruptStoreException.cs
- CfgRule.cs
- IPPacketInformation.cs
- XmlObjectSerializerReadContext.cs
- ActionItem.cs
- OleDbDataAdapter.cs
- OleDbDataReader.cs
- SQLDecimal.cs
- ZipIOExtraFieldZip64Element.cs
- UnhandledExceptionEventArgs.cs
- SqlParameterCollection.cs
- LinearGradientBrush.cs
- listitem.cs
- WeakReferenceEnumerator.cs
- InputManager.cs
- SecurityHelper.cs
- MetadataSource.cs
- FigureHelper.cs
- DateTimeOffsetAdapter.cs
- HTMLTextWriter.cs
- PropertyStore.cs
- MatrixAnimationUsingPath.cs
- EventInfo.cs
- MetadataArtifactLoaderComposite.cs
- XmlQualifiedName.cs
- BasicHttpMessageSecurity.cs
- DynamicValidatorEventArgs.cs
- HttpModuleAction.cs
- HitTestWithPointDrawingContextWalker.cs
- ApplicationSecurityInfo.cs
- WindowsFormsHelpers.cs
- UidManager.cs
- OleDbFactory.cs
- DataServiceRequestArgs.cs
- Accessible.cs
- DataGridViewColumnCollection.cs
- WebPartEditorCancelVerb.cs
- SmtpFailedRecipientsException.cs
- Debug.cs
- ConstructorNeedsTagAttribute.cs
- _AutoWebProxyScriptEngine.cs
- OneOfTypeConst.cs
- TreeNodeStyleCollection.cs
- MethodCallConverter.cs
- ResourceContainer.cs
- LayoutTableCell.cs
- GradientStopCollection.cs
- TemplateBaseAction.cs
- SafeRightsManagementPubHandle.cs
- ConnectionAcceptor.cs
- UnmanagedMemoryStream.cs
- TdsParserStaticMethods.cs
- DataObjectEventArgs.cs
- HttpTransportManager.cs
- ParentUndoUnit.cs
- MaterializeFromAtom.cs
- TraceEventCache.cs
- DataControlPagerLinkButton.cs
- DocumentPageViewAutomationPeer.cs
- ActivityExecutor.cs
- TextureBrush.cs
- EnumerableRowCollectionExtensions.cs
- AssertFilter.cs
- ConfigXmlCDataSection.cs
- SerTrace.cs
- AnchoredBlock.cs
- WmfPlaceableFileHeader.cs
- DoubleAnimation.cs
- XhtmlTextWriter.cs