Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Base / Core / ContextItem.cs / 1305376 / ContextItem.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation { using System.Diagnostics.CodeAnalysis; using System; using System.Collections.Generic; //// The ContextItem class is the base class from which all context items must derive. // public abstract class ContextItem { //// Creates a new ContextItem. // protected ContextItem() { } //// Returns the item type for this editing context item. Context items are // considered unique based on their item type. By using ItemType to identify // a type of context item we allow several derived versions of context items to // be cataloged under the same key in the editing context. // //public abstract Type ItemType { get; } // // This method is called on a context item before it is stored in the context item // manager. The previous item in the context item manager is passed. // // The editing context that is making this change. // The previously active item in the context. Because items must have default constructors a default item will be fabricated if an item is first passed into the context. //protected virtual void OnItemChanged(EditingContext context, ContextItem previousItem) { } // // Internal API that calls OnItemChanged. This is invoked from the // abstract ContextItemManager class so deriving classes can still // invoke it. // internal void InvokeOnItemChanged(EditingContext context, ContextItem previousItem) { OnItemChanged(context, previousItem); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DtdParser.cs
- PageSetupDialog.cs
- MethodCallTranslator.cs
- Span.cs
- HashAlgorithm.cs
- CommandManager.cs
- DataGridViewTextBoxEditingControl.cs
- CombinedGeometry.cs
- ModelItemImpl.cs
- SafeRightsManagementSessionHandle.cs
- RegexCode.cs
- TrackBarRenderer.cs
- TogglePattern.cs
- DtrList.cs
- CustomAttributeBuilder.cs
- WorkflowMarkupElementEventArgs.cs
- ContextMenuAutomationPeer.cs
- CodeGeneratorOptions.cs
- XmlDataFileEditor.cs
- FixedHyperLink.cs
- DataServiceHostFactory.cs
- ImageFormatConverter.cs
- CqlLexerHelpers.cs
- NonVisualControlAttribute.cs
- XsltArgumentList.cs
- WebPartVerb.cs
- Attributes.cs
- XsdCachingReader.cs
- ReadWriteObjectLock.cs
- DesignerCategoryAttribute.cs
- IdentitySection.cs
- ISAPIRuntime.cs
- GlyphShapingProperties.cs
- ActivityInterfaces.cs
- Bits.cs
- MenuItemBindingCollection.cs
- StructuralType.cs
- GPStream.cs
- MarshalByValueComponent.cs
- GenericRootAutomationPeer.cs
- ListComponentEditorPage.cs
- DefaultValueConverter.cs
- FileUtil.cs
- Registry.cs
- SrgsNameValueTag.cs
- EventNotify.cs
- CodeBlockBuilder.cs
- Misc.cs
- Rect3D.cs
- PrinterSettings.cs
- ConfigXmlText.cs
- HashCodeCombiner.cs
- RadioButtonBaseAdapter.cs
- ObjectDataSourceView.cs
- AlternateViewCollection.cs
- ActionItem.cs
- HtmlShimManager.cs
- RuleSetDialog.Designer.cs
- WindowsEditBoxRange.cs
- PreDigestedSignedInfo.cs
- InternalBufferManager.cs
- MergablePropertyAttribute.cs
- PropertyToken.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ComMethodElementCollection.cs
- BoolExpr.cs
- EventLogException.cs
- CodeTypeMemberCollection.cs
- XmlSchemaFacet.cs
- IBuiltInEvidence.cs
- HtmlElementErrorEventArgs.cs
- HostingEnvironmentException.cs
- DiagnosticsConfigurationHandler.cs
- RegisteredHiddenField.cs
- TransformPattern.cs
- ProfileManager.cs
- DiffuseMaterial.cs
- MenuBase.cs
- EventProperty.cs
- indexingfiltermarshaler.cs
- IgnoreDataMemberAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- Table.cs
- UIPermission.cs
- ZipPackage.cs
- AdPostCacheSubstitution.cs
- PrintControllerWithStatusDialog.cs
- CounterCreationData.cs
- AccessedThroughPropertyAttribute.cs
- SymbolUsageManager.cs
- ConstraintManager.cs
- CompressionTransform.cs
- ItemsControl.cs
- SortFieldComparer.cs
- LinkArea.cs
- DecimalAnimationBase.cs
- AccessDataSource.cs
- ListSortDescriptionCollection.cs
- FixedDocumentSequencePaginator.cs
- SortFieldComparer.cs