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
- UniqueEventHelper.cs
- DrawToolTipEventArgs.cs
- KeyValueInternalCollection.cs
- Membership.cs
- SingleAnimationUsingKeyFrames.cs
- ListViewHitTestInfo.cs
- MemberPath.cs
- DbConnectionPoolGroup.cs
- System.Data.OracleClient_BID.cs
- HandledEventArgs.cs
- ThreadStartException.cs
- Or.cs
- DataGrid.cs
- VarRefManager.cs
- OdbcReferenceCollection.cs
- RowVisual.cs
- RuntimeCompatibilityAttribute.cs
- IImplicitResourceProvider.cs
- FrameAutomationPeer.cs
- IconBitmapDecoder.cs
- DataRecordInternal.cs
- MimeFormReflector.cs
- DbConnectionPoolGroup.cs
- TouchFrameEventArgs.cs
- FileCodeGroup.cs
- TagElement.cs
- NativeMethods.cs
- StringAnimationUsingKeyFrames.cs
- XpsFilter.cs
- DbMetaDataFactory.cs
- SafeEventHandle.cs
- EasingFunctionBase.cs
- XmlCharType.cs
- TableRowGroup.cs
- SettingsSection.cs
- TextEditorTyping.cs
- CalendarData.cs
- RealProxy.cs
- HtmlSelectionListAdapter.cs
- WebServiceReceiveDesigner.cs
- FontFamilyConverter.cs
- DispatcherProcessingDisabled.cs
- DependencySource.cs
- ToolStripDropDownItem.cs
- NumberSubstitution.cs
- DataGridViewCellStateChangedEventArgs.cs
- MissingFieldException.cs
- AnnotationHighlightLayer.cs
- HttpCapabilitiesSectionHandler.cs
- ProfilePropertyNameValidator.cs
- ThousandthOfEmRealDoubles.cs
- MeasureItemEvent.cs
- ActionNotSupportedException.cs
- CodeDomLoader.cs
- CompositeActivityCodeGenerator.cs
- SplitContainerDesigner.cs
- DropShadowBitmapEffect.cs
- ListItemConverter.cs
- UrlUtility.cs
- ToolStripTextBox.cs
- ParameterCollection.cs
- EncodingTable.cs
- GridLengthConverter.cs
- UriTemplateTable.cs
- TextDecorationUnitValidation.cs
- ExpressionTextBox.xaml.cs
- ColorTranslator.cs
- TimeZone.cs
- WindowsToolbarItemAsMenuItem.cs
- XmlSchemaValidator.cs
- ISAPIApplicationHost.cs
- ToolStripPanelSelectionBehavior.cs
- InstanceOwnerQueryResult.cs
- FileChangeNotifier.cs
- ThreadStartException.cs
- SqlDataSourceCustomCommandEditor.cs
- CommandDevice.cs
- User.cs
- CombinedGeometry.cs
- ComponentEditorForm.cs
- TokenBasedSet.cs
- XamlReaderHelper.cs
- WorkflowRequestContext.cs
- PageDeviceFont.cs
- DataGridViewImageColumn.cs
- DataRelation.cs
- CompoundFileReference.cs
- ConfigurationProperty.cs
- EmptyEnumerable.cs
- UriTemplate.cs
- WebScriptEnablingBehavior.cs
- PartitionResolver.cs
- ProxyWebPartManager.cs
- SetterBaseCollection.cs
- MimeXmlReflector.cs
- EffectiveValueEntry.cs
- Module.cs
- UserUseLicenseDictionaryLoader.cs
- EntitySet.cs
- OraclePermission.cs