Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / Primitives / ItemsChangedEventArgs.cs / 1305600 / 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
- CheckBoxPopupAdapter.cs
- TreeNodeEventArgs.cs
- SingleResultAttribute.cs
- MiniConstructorInfo.cs
- XmlSchemaInclude.cs
- XmlSerializerVersionAttribute.cs
- TimeSpanValidatorAttribute.cs
- RangeValueProviderWrapper.cs
- PixelShader.cs
- UserControlParser.cs
- CodeTypeMember.cs
- Site.cs
- SafeProcessHandle.cs
- Stack.cs
- Array.cs
- ResourcesChangeInfo.cs
- FontSource.cs
- TableRow.cs
- AutomationElement.cs
- diagnosticsswitches.cs
- CompilationLock.cs
- DataObjectSettingDataEventArgs.cs
- EventEntry.cs
- SolidColorBrush.cs
- CompareInfo.cs
- SemanticBasicElement.cs
- WebScriptMetadataMessage.cs
- UserPersonalizationStateInfo.cs
- Resources.Designer.cs
- SubpageParaClient.cs
- TextProperties.cs
- PropertyBuilder.cs
- ServiceCredentials.cs
- HashJoinQueryOperatorEnumerator.cs
- ProjectedWrapper.cs
- ClientBuildManagerCallback.cs
- OutputCacheProfile.cs
- Page.cs
- UriTemplateClientFormatter.cs
- DistinctQueryOperator.cs
- ToolboxBitmapAttribute.cs
- PersistChildrenAttribute.cs
- SecurityRuntime.cs
- wmiprovider.cs
- TextBlockAutomationPeer.cs
- ExpressionEditorAttribute.cs
- QilName.cs
- TreePrinter.cs
- SqlUtil.cs
- NativeCppClassAttribute.cs
- DataBindingCollection.cs
- SqlBooleanizer.cs
- SystemMulticastIPAddressInformation.cs
- ImageListImage.cs
- VariantWrapper.cs
- IntSecurity.cs
- StrokeFIndices.cs
- DbConnectionPoolGroup.cs
- DelegatingMessage.cs
- XmlRootAttribute.cs
- QueryCursorEventArgs.cs
- RequestCacheEntry.cs
- ArrayHelper.cs
- Models.cs
- DocumentViewerBase.cs
- EpmHelper.cs
- PageContentCollection.cs
- TextViewBase.cs
- ExecutedRoutedEventArgs.cs
- PointUtil.cs
- _SSPISessionCache.cs
- MembershipAdapter.cs
- MenuRendererStandards.cs
- CriticalHandle.cs
- AsymmetricAlgorithm.cs
- FontInfo.cs
- ServiceContractListItemList.cs
- WebHttpSecurity.cs
- HttpCacheVary.cs
- Graph.cs
- ComboBoxItem.cs
- TextureBrush.cs
- Pair.cs
- DbDataReader.cs
- XmlHierarchicalEnumerable.cs
- ClientFormsIdentity.cs
- ManagementEventArgs.cs
- WorkflowPersistenceService.cs
- DesignerRegion.cs
- ImageInfo.cs
- Model3DGroup.cs
- RequestUriProcessor.cs
- LoginCancelEventArgs.cs
- FixedSOMSemanticBox.cs
- QilTypeChecker.cs
- PublishLicense.cs
- ListView.cs
- TaskFormBase.cs
- PreviewPrintController.cs
- OdbcConnectionPoolProviderInfo.cs