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
- SecurityVersion.cs
- WorkflowTimerService.cs
- OciLobLocator.cs
- MenuTracker.cs
- FloaterBaseParaClient.cs
- CompatibleIComparer.cs
- ListBox.cs
- BindingContext.cs
- XPathSelectionIterator.cs
- TimeZone.cs
- XmlILModule.cs
- DiagnosticTraceRecords.cs
- NotifyIcon.cs
- SqlCommand.cs
- WindowsPen.cs
- WmlListAdapter.cs
- MembershipUser.cs
- ExpressionConverter.cs
- WebPartConnectionCollection.cs
- EntityDataSource.cs
- TextContainerHelper.cs
- RegexReplacement.cs
- Utils.cs
- HorizontalAlignConverter.cs
- PropertyChangeTracker.cs
- DetailsViewRow.cs
- ProxyAssemblyNotLoadedException.cs
- HtmlLink.cs
- XmlUtf8RawTextWriter.cs
- _PooledStream.cs
- XPathAxisIterator.cs
- CodeTypeOfExpression.cs
- FontWeights.cs
- XmlSchemaValidator.cs
- ClaimSet.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ZoneIdentityPermission.cs
- TextServicesLoader.cs
- RepeatButton.cs
- MessageSmuggler.cs
- XpsStructure.cs
- TextComposition.cs
- MetadataItem.cs
- MediaElement.cs
- XmlKeywords.cs
- ControlBindingsCollection.cs
- ToolboxItemAttribute.cs
- ExpressionContext.cs
- HtmlInputReset.cs
- OracleMonthSpan.cs
- NullableDecimalSumAggregationOperator.cs
- DateTimeOffset.cs
- EntityTypeEmitter.cs
- InputLanguageProfileNotifySink.cs
- PersonalizationDictionary.cs
- FileIOPermission.cs
- WindowsScrollBarBits.cs
- PropertyCondition.cs
- EventLogPermissionEntryCollection.cs
- ChangeBlockUndoRecord.cs
- Int32Animation.cs
- LabelInfo.cs
- UndoManager.cs
- DtdParser.cs
- MimeBasePart.cs
- linebase.cs
- InternalPermissions.cs
- PackagePart.cs
- FileDetails.cs
- handlecollector.cs
- XmlObjectSerializerWriteContext.cs
- DataPagerFieldItem.cs
- Identity.cs
- XmlSchemaObject.cs
- ExtensionQuery.cs
- HealthMonitoringSection.cs
- ExpressionParser.cs
- PathSegmentCollection.cs
- PreservationFileWriter.cs
- EtwProvider.cs
- WebProxyScriptElement.cs
- LinqToSqlWrapper.cs
- BitFlagsGenerator.cs
- BooleanProjectedSlot.cs
- DiscoveryMessageSequenceCD1.cs
- TransportContext.cs
- UrlEncodedParameterWriter.cs
- CorePropertiesFilter.cs
- XmlUrlResolver.cs
- XmlValidatingReader.cs
- Closure.cs
- TextElement.cs
- HostingPreferredMapPath.cs
- DbConvert.cs
- DeleteHelper.cs
- CompareInfo.cs
- Invariant.cs
- XPathAncestorIterator.cs
- OleDbRowUpdatedEvent.cs
- SettingsAttributes.cs