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
- CodeValidator.cs
- UrlParameterWriter.cs
- StickyNoteAnnotations.cs
- RefExpr.cs
- NotificationContext.cs
- DefaultPerformanceCounters.cs
- DaylightTime.cs
- NavigationProperty.cs
- HashUtility.cs
- LockedHandleGlyph.cs
- BinaryFormatter.cs
- ExtendedProtectionPolicyElement.cs
- OLEDB_Util.cs
- ConnectionsZoneAutoFormat.cs
- PersistenceMetadataNamespace.cs
- ServiceContractAttribute.cs
- CounterSampleCalculator.cs
- HwndAppCommandInputProvider.cs
- UmAlQuraCalendar.cs
- RegexBoyerMoore.cs
- WrappedIUnknown.cs
- DbConnectionPoolCounters.cs
- DbDataRecord.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ByteStack.cs
- ItemCollection.cs
- RadioButtonRenderer.cs
- MenuItemStyleCollection.cs
- NavigationWindow.cs
- FileDataSourceCache.cs
- StandardCommands.cs
- GroupByQueryOperator.cs
- WebPartActionVerb.cs
- SvcMapFileSerializer.cs
- Pool.cs
- ColorMatrix.cs
- HeaderCollection.cs
- BamlMapTable.cs
- CaretElement.cs
- DataGridViewTextBoxColumn.cs
- AnnotationResourceChangedEventArgs.cs
- DesignSurfaceServiceContainer.cs
- ParenthesizePropertyNameAttribute.cs
- XmlReturnReader.cs
- StateDesigner.TransitionInfo.cs
- PropertyStore.cs
- DataRecord.cs
- ChineseLunisolarCalendar.cs
- FileChangesMonitor.cs
- StretchValidation.cs
- ExpressionNormalizer.cs
- CodeGeneratorAttribute.cs
- InvalidDataException.cs
- Internal.cs
- DesignSurfaceEvent.cs
- RayMeshGeometry3DHitTestResult.cs
- SessionChannels.cs
- Matrix3D.cs
- ProfilePropertyNameValidator.cs
- RelativeSource.cs
- ExtendedProtectionPolicyTypeConverter.cs
- GroupItemAutomationPeer.cs
- InvokePattern.cs
- XmlEntity.cs
- PingOptions.cs
- COM2ExtendedBrowsingHandler.cs
- DataColumn.cs
- Header.cs
- DesignerForm.cs
- Int32Rect.cs
- UnmanagedMemoryStream.cs
- XmlFormatExtensionPrefixAttribute.cs
- ColumnMapProcessor.cs
- _ShellExpression.cs
- ResourceIDHelper.cs
- CodeExporter.cs
- IndexedDataBuffer.cs
- SqlDataSourceQuery.cs
- MemberMemberBinding.cs
- TypeExtensionConverter.cs
- XmlWriterDelegator.cs
- Command.cs
- MediaElementAutomationPeer.cs
- SqlCommandSet.cs
- DefaultWorkflowLoaderService.cs
- SplineKeyFrames.cs
- NativeMethods.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ListBindingHelper.cs
- EntryIndex.cs
- PolyBezierSegmentFigureLogic.cs
- FileDetails.cs
- QuaternionAnimationBase.cs
- XmlJsonWriter.cs
- MultiBinding.cs
- DateTimeUtil.cs
- XmlParserContext.cs
- BindingOperations.cs
- OLEDB_Enum.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs