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
- InfoCardSchemas.cs
- PropertyAccessVisitor.cs
- SendKeys.cs
- SHA256Managed.cs
- TreeNodeBinding.cs
- IOThreadScheduler.cs
- CorrelationTokenInvalidatedHandler.cs
- AssemblyCollection.cs
- ResourceReader.cs
- EnumDataContract.cs
- BorderGapMaskConverter.cs
- KeyManager.cs
- PartialList.cs
- DoubleAnimation.cs
- HtmlInputText.cs
- ActivitySurrogate.cs
- List.cs
- controlskin.cs
- CacheEntry.cs
- RowToParametersTransformer.cs
- Thumb.cs
- ValueTypeFixupInfo.cs
- ActivityExecutionContextCollection.cs
- InputProcessorProfilesLoader.cs
- DbConnectionPoolGroup.cs
- SQLInt16.cs
- FlowNode.cs
- CultureMapper.cs
- PagedControl.cs
- ProcessThreadCollection.cs
- InputMethod.cs
- XmlSchemaCollection.cs
- SecurityTraceRecordHelper.cs
- ArrayEditor.cs
- TraceUtility.cs
- RijndaelManagedTransform.cs
- SplineKeyFrames.cs
- XmlSchemaImport.cs
- AdjustableArrowCap.cs
- ApplicationCommands.cs
- FixedSOMElement.cs
- LayoutManager.cs
- HostedHttpTransportManager.cs
- HelloOperationCD1AsyncResult.cs
- CommandHelper.cs
- XmlDataDocument.cs
- ObjectQuery_EntitySqlExtensions.cs
- StreamMarshaler.cs
- BamlRecordHelper.cs
- ForeignConstraint.cs
- X509ChainPolicy.cs
- ValueUnavailableException.cs
- PartialTrustVisibleAssembly.cs
- ListBindingConverter.cs
- ActivityTypeResolver.xaml.cs
- CryptoApi.cs
- CannotUnloadAppDomainException.cs
- ComplusTypeValidator.cs
- DropShadowBitmapEffect.cs
- SapiInterop.cs
- DesignerProperties.cs
- PrintDocument.cs
- PropertyConverter.cs
- BrowsableAttribute.cs
- EncoderExceptionFallback.cs
- IdentityReference.cs
- PowerModeChangedEventArgs.cs
- InheritanceUI.cs
- Accessible.cs
- CqlQuery.cs
- CodeTypeParameterCollection.cs
- SemaphoreSlim.cs
- String.cs
- AllMembershipCondition.cs
- DeobfuscatingStream.cs
- ValidatorCompatibilityHelper.cs
- EffectiveValueEntry.cs
- StreamUpgradeAcceptor.cs
- Parameter.cs
- ProxyWebPartManager.cs
- OverrideMode.cs
- XomlCompilerResults.cs
- UpdateRecord.cs
- TemplatePropertyEntry.cs
- DataGridTable.cs
- PointValueSerializer.cs
- Msec.cs
- SecurityTokenRequirement.cs
- GC.cs
- CookieParameter.cs
- LogManagementAsyncResult.cs
- DataGridViewDataConnection.cs
- DbSource.cs
- Query.cs
- CopyOnWriteList.cs
- DataTemplate.cs
- HorizontalAlignConverter.cs
- EndPoint.cs
- UpdatePanelTrigger.cs
- HttpModuleCollection.cs