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
- IMembershipProvider.cs
- ReadOnlyAttribute.cs
- LoginViewDesigner.cs
- PopupControlService.cs
- EqualityArray.cs
- ServiceSettingsResponseInfo.cs
- ObjectQuery.cs
- XmlBoundElement.cs
- SqlDesignerDataSourceView.cs
- SessionStateContainer.cs
- TemplateContainer.cs
- BooleanStorage.cs
- SimpleBitVector32.cs
- FixedSOMTableRow.cs
- Event.cs
- PropertyNames.cs
- FillErrorEventArgs.cs
- ConfigurationLocationCollection.cs
- WebDescriptionAttribute.cs
- ShellProvider.cs
- HashMembershipCondition.cs
- TextBoxRenderer.cs
- UnsafeNativeMethods.cs
- PixelFormatConverter.cs
- ExclusiveHandleList.cs
- ColumnBinding.cs
- DesignerVerbCollection.cs
- ClipboardProcessor.cs
- DbRetry.cs
- XmlMtomReader.cs
- HScrollBar.cs
- ObservableCollection.cs
- ImageMapEventArgs.cs
- UserControl.cs
- PackWebRequest.cs
- MgmtConfigurationRecord.cs
- InvalidOleVariantTypeException.cs
- _UncName.cs
- DataKeyCollection.cs
- QueryExpr.cs
- PropertyPath.cs
- RecognizedPhrase.cs
- ValidationRule.cs
- ViewKeyConstraint.cs
- CornerRadiusConverter.cs
- InputLanguageCollection.cs
- _CookieModule.cs
- Base64Decoder.cs
- DispatcherEventArgs.cs
- TrackingServices.cs
- BaseDataBoundControl.cs
- FileDialog.cs
- SharedConnectionInfo.cs
- SafeHandles.cs
- RewritingPass.cs
- DecoderNLS.cs
- TargetInvocationException.cs
- ListControl.cs
- EntityCodeGenerator.cs
- XmlElementAttribute.cs
- IDReferencePropertyAttribute.cs
- SemaphoreFullException.cs
- TransformConverter.cs
- HttpModuleCollection.cs
- UnknownBitmapEncoder.cs
- SoapCodeExporter.cs
- InkCanvas.cs
- DbConnectionPoolCounters.cs
- ReverseComparer.cs
- QuaternionIndependentAnimationStorage.cs
- PopOutPanel.cs
- DescendentsWalker.cs
- ImportCatalogPart.cs
- SystemColorTracker.cs
- DataControlLinkButton.cs
- NullableIntSumAggregationOperator.cs
- GACMembershipCondition.cs
- OleDbDataAdapter.cs
- NativeMethodsCLR.cs
- xmlglyphRunInfo.cs
- CapabilitiesPattern.cs
- QueryableFilterUserControl.cs
- MemberBinding.cs
- WebInvokeAttribute.cs
- ProfileServiceManager.cs
- RtfToken.cs
- Accessible.cs
- Buffer.cs
- TimersDescriptionAttribute.cs
- CodeSnippetTypeMember.cs
- SerializationSectionGroup.cs
- HyperLinkStyle.cs
- XPathDocumentNavigator.cs
- Point4DConverter.cs
- EntityDataSourceColumn.cs
- FocusWithinProperty.cs
- ConfigXmlText.cs
- Schema.cs
- Cursors.cs
- UTF7Encoding.cs