Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- MouseGestureValueSerializer.cs
- BitmapFrame.cs
- OlePropertyStructs.cs
- Int64.cs
- Visual3D.cs
- MethodRental.cs
- VisualBrush.cs
- SchemaManager.cs
- Char.cs
- ByteStream.cs
- glyphs.cs
- Stroke2.cs
- UInt64Converter.cs
- EnumerableWrapperWeakToStrong.cs
- SqlExpander.cs
- DesignerTransactionCloseEvent.cs
- InheritanceService.cs
- InvalidComObjectException.cs
- ConfigurationValues.cs
- UIElement3DAutomationPeer.cs
- AlignmentYValidation.cs
- RestHandlerFactory.cs
- SqlInternalConnectionTds.cs
- Substitution.cs
- WebFormsRootDesigner.cs
- DesignerTextViewAdapter.cs
- ComplexBindingPropertiesAttribute.cs
- Helper.cs
- PriorityChain.cs
- DisplayMemberTemplateSelector.cs
- WebPartCloseVerb.cs
- UriScheme.cs
- StylusShape.cs
- LessThanOrEqual.cs
- QueryOptionExpression.cs
- PersonalizationProvider.cs
- EntityReference.cs
- CopyNamespacesAction.cs
- HttpListenerResponse.cs
- ListItem.cs
- QuadraticEase.cs
- QilValidationVisitor.cs
- LockedActivityGlyph.cs
- SmtpCommands.cs
- TdsValueSetter.cs
- EmptyEnumerator.cs
- ActivityExecutionContextCollection.cs
- ContextConfiguration.cs
- HttpServerUtilityWrapper.cs
- ArraySortHelper.cs
- WorkBatch.cs
- DesignerSerializerAttribute.cs
- XmlElementElement.cs
- ActivityAction.cs
- NamedPipeWorkerProcess.cs
- TraceSource.cs
- ExtenderControl.cs
- TreeNodeCollection.cs
- EventData.cs
- CheckoutException.cs
- DbExpressionVisitor.cs
- HttpPostProtocolImporter.cs
- ProtocolsConfigurationEntry.cs
- CaseExpr.cs
- Group.cs
- NameValuePair.cs
- WindowsClaimSet.cs
- Line.cs
- x509utils.cs
- RemotingConfiguration.cs
- ChangeBlockUndoRecord.cs
- HandlerBase.cs
- XPathNodeInfoAtom.cs
- SymbolPair.cs
- ProtocolReflector.cs
- ModelItem.cs
- EntityContainerEntitySetDefiningQuery.cs
- RangeValidator.cs
- XamlSerializer.cs
- EqualityComparer.cs
- SpecialNameAttribute.cs
- TypeDescriptionProvider.cs
- BrowserCapabilitiesCompiler.cs
- DataPager.cs
- AsyncOperationManager.cs
- CompositeTypefaceMetrics.cs
- DataObject.cs
- DynamicDataExtensions.cs
- PolyBezierSegment.cs
- SuppressMessageAttribute.cs
- DebugView.cs
- StrokeCollectionDefaultValueFactory.cs
- ButtonChrome.cs
- Types.cs
- ChangeTracker.cs
- InvalidCastException.cs
- StreamGeometry.cs
- GridViewColumnCollection.cs
- SoapSchemaImporter.cs
- MarkerProperties.cs