Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / System / ComponentModel / IItemProperties.cs / 1 / IItemProperties.cs
//---------------------------------------------------------------------------- // //// Copyright (C) 2007 by Microsoft Corporation. All rights reserved. // // // // Description: Editing functionality for collection views. // // See spec at http://sharepoint/sites/wpftsv/Documents/DataGrid/DataGrid_CollectionView.mht // //--------------------------------------------------------------------------- using System; using System.Collections.ObjectModel; // ReadOnlyCollectionnamespace System.ComponentModel { /// /// IItemProperties is an interface that a collection view /// can implement to expose information about the properties available on /// items in the underlying collection. /// public interface IItemProperties { ////// Returns information about the properties available on items in the /// underlying collection. This information may come from a schema, from /// a type descriptor, from a representative item, or from some other source /// known to the view. /// ReadOnlyCollectionItemProperties { get; } } /// /// Information about a property. Returned by public class ItemPropertyInfo { ////// Creates a new instance of ItemPropertyInfo. public ItemPropertyInfo(string name, Type type, object descriptor) { _name = name; _type = type; _descriptor = descriptor; } ///The property's name. public string Name { get { return _name; } } ///The property's type. public Type PropertyType { get { return _type; } } ///More information about the property. This may be null, /// the view is unable to provide any more information. Or it may be /// an object that describes the property, such as a PropertyDescriptor, /// a PropertyInfo, or the like. /// public object Descriptor { get { return _descriptor; } } string _name; Type _type; object _descriptor; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) 2007 by Microsoft Corporation. All rights reserved. // // // // Description: Editing functionality for collection views. // // See spec at http://sharepoint/sites/wpftsv/Documents/DataGrid/DataGrid_CollectionView.mht // //--------------------------------------------------------------------------- using System; using System.Collections.ObjectModel; // ReadOnlyCollectionnamespace System.ComponentModel { /// /// IItemProperties is an interface that a collection view /// can implement to expose information about the properties available on /// items in the underlying collection. /// public interface IItemProperties { ////// Returns information about the properties available on items in the /// underlying collection. This information may come from a schema, from /// a type descriptor, from a representative item, or from some other source /// known to the view. /// ReadOnlyCollectionItemProperties { get; } } /// /// Information about a property. Returned by public class ItemPropertyInfo { ////// Creates a new instance of ItemPropertyInfo. public ItemPropertyInfo(string name, Type type, object descriptor) { _name = name; _type = type; _descriptor = descriptor; } ///The property's name. public string Name { get { return _name; } } ///The property's type. public Type PropertyType { get { return _type; } } ///More information about the property. This may be null, /// the view is unable to provide any more information. Or it may be /// an object that describes the property, such as a PropertyDescriptor, /// a PropertyInfo, or the like. /// public object Descriptor { get { return _descriptor; } } string _name; Type _type; object _descriptor; } } // 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
- SessionStateSection.cs
- TableLayoutStyle.cs
- PointCollection.cs
- AsymmetricSignatureDeformatter.cs
- RequestUriProcessor.cs
- ObjectHandle.cs
- EntityClientCacheKey.cs
- ThrowHelper.cs
- QilNode.cs
- printdlgexmarshaler.cs
- base64Transforms.cs
- GridItemCollection.cs
- PageParser.cs
- Compress.cs
- InkCanvasAutomationPeer.cs
- DictionaryContent.cs
- GACIdentityPermission.cs
- SqlExpressionNullability.cs
- regiisutil.cs
- VirtualizingStackPanel.cs
- Column.cs
- ArcSegment.cs
- ToolStripContentPanel.cs
- SqlInternalConnectionSmi.cs
- NTAccount.cs
- SQLStringStorage.cs
- GridViewRowPresenter.cs
- UnSafeCharBuffer.cs
- HwndProxyElementProvider.cs
- ImpersonationContext.cs
- UnsafeNativeMethods.cs
- HttpClientCertificate.cs
- AxisAngleRotation3D.cs
- DbProviderServices.cs
- AnimatedTypeHelpers.cs
- ISAPIApplicationHost.cs
- TabControlCancelEvent.cs
- MetadataConversionError.cs
- HttpFileCollection.cs
- util.cs
- ImageFormat.cs
- XsltInput.cs
- WebFormDesignerActionService.cs
- SiteMap.cs
- LinqDataSourceContextData.cs
- MarkupExtensionParser.cs
- FrameworkContentElement.cs
- PointLight.cs
- GenericPrincipal.cs
- _UriSyntax.cs
- RecognizeCompletedEventArgs.cs
- EntityDataSourceSelectingEventArgs.cs
- SqlTriggerAttribute.cs
- XmlSchemaRedefine.cs
- GeneralTransform3DTo2D.cs
- PatternMatchRules.cs
- ListControl.cs
- TypeLoadException.cs
- UIElementParagraph.cs
- FloatUtil.cs
- Geometry3D.cs
- ProviderUtil.cs
- XmlDataSourceNodeDescriptor.cs
- Triplet.cs
- PolyBezierSegment.cs
- DropSourceBehavior.cs
- Size.cs
- ActiveXSite.cs
- ForwardPositionQuery.cs
- SecUtil.cs
- ToolStripItemImageRenderEventArgs.cs
- RuntimeConfigLKG.cs
- GlobalEventManager.cs
- PageEventArgs.cs
- CharEntityEncoderFallback.cs
- GPPOINT.cs
- Int64.cs
- HtmlProps.cs
- WebControlParameterProxy.cs
- ComPlusContractBehavior.cs
- GeometryValueSerializer.cs
- ValidatedControlConverter.cs
- TemplateControl.cs
- TempEnvironment.cs
- HttpRuntimeSection.cs
- TreeViewAutomationPeer.cs
- XmlChildNodes.cs
- ValidationResult.cs
- SafeNativeMethods.cs
- StorageRoot.cs
- ConfigurationStrings.cs
- XmlSchemaAnyAttribute.cs
- MouseButtonEventArgs.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SqlDelegatedTransaction.cs
- PersonalizationProvider.cs
- DataRowCollection.cs
- Socket.cs
- PersonalizationStateInfoCollection.cs
- TimelineClockCollection.cs