Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlObjectSerializerWriteContextComplexJson.cs
- HttpCacheParams.cs
- DataObjectEventArgs.cs
- CoreSwitches.cs
- ThrowHelper.cs
- WebPartZoneBase.cs
- TemplateControlCodeDomTreeGenerator.cs
- TransformDescriptor.cs
- HotSpotCollection.cs
- TreeNodeStyle.cs
- Set.cs
- BindingValueChangedEventArgs.cs
- Pts.cs
- AnimatedTypeHelpers.cs
- CodeCatchClauseCollection.cs
- Serializer.cs
- PerformanceCounterPermission.cs
- SByteConverter.cs
- COM2IPerPropertyBrowsingHandler.cs
- CheckBoxAutomationPeer.cs
- AuthenticationConfig.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- FileFormatException.cs
- DoubleConverter.cs
- ZoneLinkButton.cs
- IncrementalHitTester.cs
- CurrencyWrapper.cs
- SmiGettersStream.cs
- ProcessInputEventArgs.cs
- SamlSubject.cs
- EDesignUtil.cs
- NonParentingControl.cs
- MSHTMLHost.cs
- ECDsaCng.cs
- UserControlCodeDomTreeGenerator.cs
- EngineSite.cs
- PageBreakRecord.cs
- MessageVersionConverter.cs
- HitTestParameters.cs
- GroupBoxAutomationPeer.cs
- OdbcConnection.cs
- ScaleTransform3D.cs
- unsafeIndexingFilterStream.cs
- HttpInputStream.cs
- ObservableCollection.cs
- Literal.cs
- SerialErrors.cs
- RTTypeWrapper.cs
- TimeoutHelper.cs
- DataControlCommands.cs
- _UncName.cs
- CLSCompliantAttribute.cs
- PrintingPermission.cs
- TextElementEditingBehaviorAttribute.cs
- SQLDateTimeStorage.cs
- Privilege.cs
- FragmentQueryKB.cs
- KnownColorTable.cs
- InstanceOwnerQueryResult.cs
- MetafileEditor.cs
- DataServiceSaveChangesEventArgs.cs
- DependencyObject.cs
- SiteMapPath.cs
- BigInt.cs
- AsymmetricKeyExchangeDeformatter.cs
- XsdBuilder.cs
- PrintDocument.cs
- ResourceContainer.cs
- MultiSelectRootGridEntry.cs
- DataObjectPastingEventArgs.cs
- FileSystemWatcher.cs
- RbTree.cs
- ListItemConverter.cs
- CookieParameter.cs
- OleDbEnumerator.cs
- Size.cs
- InkPresenter.cs
- TypedElement.cs
- _LocalDataStoreMgr.cs
- SamlSubject.cs
- XmlSchemaExporter.cs
- XmlUTF8TextWriter.cs
- EmissiveMaterial.cs
- CommandBinding.cs
- ConfigurationManager.cs
- Int16Converter.cs
- FileDialogCustomPlacesCollection.cs
- CapabilitiesPattern.cs
- Section.cs
- Control.cs
- OdbcParameterCollection.cs
- GZipStream.cs
- XmlDownloadManager.cs
- StubHelpers.cs
- ValueType.cs
- VisualTreeHelper.cs
- KnownBoxes.cs
- SqlLiftIndependentRowExpressions.cs
- MemberPathMap.cs
- SessionStateSection.cs