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
- DataGridViewRowsAddedEventArgs.cs
- MenuAdapter.cs
- CollaborationHelperFunctions.cs
- LeaseManager.cs
- XmlSerializerSection.cs
- GeometryGroup.cs
- ResolveDuplex11AsyncResult.cs
- NullReferenceException.cs
- ActivityExecutionFilter.cs
- XmlWriter.cs
- SizeAnimationClockResource.cs
- WebPartTracker.cs
- ToolboxItemFilterAttribute.cs
- HashCodeCombiner.cs
- ResourceSetExpression.cs
- ListView.cs
- DeploymentSection.cs
- DataTableMapping.cs
- XmlSchemaImport.cs
- DeploymentSection.cs
- AssemblyFilter.cs
- WindowsGraphicsCacheManager.cs
- DataControlLinkButton.cs
- HijriCalendar.cs
- WindowsListViewGroupSubsetLink.cs
- DataGridTable.cs
- ConfigsHelper.cs
- HttpRuntime.cs
- DesignerTextBoxAdapter.cs
- DBConnection.cs
- CommandHelper.cs
- GenericIdentity.cs
- ObjectSet.cs
- WebControlParameterProxy.cs
- RequestFactory.cs
- DataGrid.cs
- PropertyChangedEventArgs.cs
- CapabilitiesPattern.cs
- FactoryGenerator.cs
- CustomErrorsSection.cs
- EntityContainerRelationshipSet.cs
- UTF7Encoding.cs
- Form.cs
- FixedStringLookup.cs
- ListViewGroupConverter.cs
- ArcSegment.cs
- TimeoutException.cs
- HostedTransportConfigurationBase.cs
- Array.cs
- XmlBinaryWriterSession.cs
- DataGridViewCellParsingEventArgs.cs
- AstTree.cs
- UInt64Converter.cs
- ProjectionCamera.cs
- XPathParser.cs
- InputBuffer.cs
- FlowchartDesigner.Helpers.cs
- XmlImplementation.cs
- QueryGenerator.cs
- CoTaskMemUnicodeSafeHandle.cs
- HttpInputStream.cs
- Image.cs
- TypeGeneratedEventArgs.cs
- SettingsProviderCollection.cs
- SemaphoreSecurity.cs
- WebPartManagerInternals.cs
- MarkupWriter.cs
- controlskin.cs
- TemplateInstanceAttribute.cs
- ListMarkerSourceInfo.cs
- HtmlEmptyTagControlBuilder.cs
- OleDbDataAdapter.cs
- UInt64Storage.cs
- ApplicationCommands.cs
- RandomNumberGenerator.cs
- DataGridViewRowHeaderCell.cs
- FormsAuthentication.cs
- TypeKeyValue.cs
- SchemaElement.cs
- AnonymousIdentificationSection.cs
- ThousandthOfEmRealDoubles.cs
- MergeFilterQuery.cs
- ObjectIDGenerator.cs
- Site.cs
- Vector3DCollection.cs
- IpcChannelHelper.cs
- XmlSchemaSimpleContentRestriction.cs
- PartManifestEntry.cs
- Unit.cs
- LocationUpdates.cs
- CellQuery.cs
- SystemException.cs
- LambdaCompiler.Generated.cs
- nulltextcontainer.cs
- HttpProfileGroupBase.cs
- PagerStyle.cs
- RotateTransform.cs
- AutomationPatternInfo.cs
- DataServiceQuery.cs
- SqlNodeAnnotations.cs