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
- CmsInterop.cs
- XmlAttributeAttribute.cs
- FactoryMaker.cs
- ColorAnimationBase.cs
- tibetanshape.cs
- OleDbConnectionFactory.cs
- XmlElementCollection.cs
- ConfigurationManagerInternal.cs
- DynamicILGenerator.cs
- TabItem.cs
- UrlMappingsModule.cs
- DataQuery.cs
- ThreadExceptionEvent.cs
- _CookieModule.cs
- TraceEventCache.cs
- TextProviderWrapper.cs
- XmlQualifiedNameTest.cs
- Baml2006KnownTypes.cs
- DynamicResourceExtension.cs
- StylusSystemGestureEventArgs.cs
- MatrixTransform.cs
- ExtenderProvidedPropertyAttribute.cs
- SmiConnection.cs
- BitmapEffectInputData.cs
- XmlDataSourceView.cs
- LineGeometry.cs
- SafeFileMappingHandle.cs
- GroupBox.cs
- DataGridViewCellFormattingEventArgs.cs
- KeyGestureConverter.cs
- OdbcReferenceCollection.cs
- MenuBase.cs
- HuffModule.cs
- TypeConverterAttribute.cs
- IndentedWriter.cs
- WebSysDefaultValueAttribute.cs
- AbsoluteQuery.cs
- SpeechAudioFormatInfo.cs
- WebControlsSection.cs
- LinkLabel.cs
- PinnedBufferMemoryStream.cs
- HttpHandlersSection.cs
- UpdatePanel.cs
- TargetPerspective.cs
- AddInController.cs
- GeometryGroup.cs
- Window.cs
- NativeWindow.cs
- HttpCapabilitiesSectionHandler.cs
- KnowledgeBase.cs
- ComponentManagerBroker.cs
- RouteTable.cs
- FacetChecker.cs
- PropertyRecord.cs
- LogExtentCollection.cs
- DirectionalLight.cs
- DbDataAdapter.cs
- SqlMultiplexer.cs
- ConfigurationProperty.cs
- AttributeUsageAttribute.cs
- RowUpdatedEventArgs.cs
- RegistryKey.cs
- WebPartConnectionsCloseVerb.cs
- PrintDialogDesigner.cs
- ToolboxItemAttribute.cs
- TabOrder.cs
- EventHandlersStore.cs
- ImmComposition.cs
- MarkupCompilePass2.cs
- VirtualPathUtility.cs
- SmtpNegotiateAuthenticationModule.cs
- InputBinder.cs
- IndexingContentUnit.cs
- ActivationServices.cs
- PropertyMap.cs
- FixedSOMImage.cs
- IntegrationExceptionEventArgs.cs
- ContentType.cs
- SQLBinary.cs
- EntryWrittenEventArgs.cs
- followingsibling.cs
- OracleBFile.cs
- RecognizerInfo.cs
- Enlistment.cs
- ColorAnimation.cs
- VoiceChangeEventArgs.cs
- EditorServiceContext.cs
- PrintControllerWithStatusDialog.cs
- StringComparer.cs
- XPathAncestorQuery.cs
- PackageFilter.cs
- DragDropHelper.cs
- ipaddressinformationcollection.cs
- TextRangeProviderWrapper.cs
- PolicyLevel.cs
- PageBreakRecord.cs
- Clock.cs
- XmlSchemaSimpleContent.cs
- MinMaxParagraphWidth.cs
- COAUTHINFO.cs