Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TableProviderWrapper.cs
- KerberosSecurityTokenProvider.cs
- DocumentOrderQuery.cs
- VisualStyleTypesAndProperties.cs
- FormViewRow.cs
- EventLogQuery.cs
- CodeNamespaceCollection.cs
- ObjectQuery.cs
- AddInServer.cs
- XmlParserContext.cs
- CodeTypeDeclaration.cs
- X509CertificateClaimSet.cs
- Parameter.cs
- _StreamFramer.cs
- TextFragmentEngine.cs
- SessionStateSection.cs
- WriterOutput.cs
- TypeToken.cs
- ApplicationInterop.cs
- CustomCategoryAttribute.cs
- FilterException.cs
- ElementInit.cs
- SqlClientFactory.cs
- TaskDesigner.cs
- GroupQuery.cs
- MimeMultiPart.cs
- FixedSOMElement.cs
- DataGridViewCellStyle.cs
- IgnoreFileBuildProvider.cs
- AttributeUsageAttribute.cs
- ToolboxItemAttribute.cs
- MustUnderstandSoapException.cs
- IIS7UserPrincipal.cs
- Int32Animation.cs
- KeyedHashAlgorithm.cs
- BulletedList.cs
- DebugInfoExpression.cs
- ContextQuery.cs
- UnSafeCharBuffer.cs
- ECDsa.cs
- mactripleDES.cs
- CursorConverter.cs
- TextTreeTextBlock.cs
- SyndicationDeserializer.cs
- GetWinFXPath.cs
- MaskedTextBox.cs
- SqlDependencyListener.cs
- HwndProxyElementProvider.cs
- BitmapSizeOptions.cs
- IItemContainerGenerator.cs
- NativeMethods.cs
- RSAOAEPKeyExchangeFormatter.cs
- TrustManager.cs
- ContravarianceAdapter.cs
- CodeDirectoryCompiler.cs
- ArraySortHelper.cs
- ObjectStateEntry.cs
- DBNull.cs
- ProxyWebPartManager.cs
- LeaseManager.cs
- SortableBindingList.cs
- Compiler.cs
- WhitespaceReader.cs
- NonSerializedAttribute.cs
- LocalBuilder.cs
- BaseProcessProtocolHandler.cs
- PointAnimationUsingKeyFrames.cs
- HtmlInputCheckBox.cs
- AtomicFile.cs
- EntitySqlQueryBuilder.cs
- PaperSize.cs
- NameValuePair.cs
- PageStatePersister.cs
- PKCS1MaskGenerationMethod.cs
- DataGridState.cs
- AppDomainAttributes.cs
- ShapingWorkspace.cs
- SiblingIterators.cs
- SQLInt16Storage.cs
- XmlEntity.cs
- ChainOfResponsibility.cs
- TimeEnumHelper.cs
- BamlRecordReader.cs
- PageOutputColor.cs
- UInt16.cs
- LogRecordSequence.cs
- ContentType.cs
- dbdatarecord.cs
- ListViewContainer.cs
- RoamingStoreFileUtility.cs
- AssemblyHash.cs
- BaseResourcesBuildProvider.cs
- PropVariant.cs
- GenericEnumerator.cs
- AttributeData.cs
- ToolStripItemDesigner.cs
- InputScopeManager.cs
- HttpClientCertificate.cs
- Options.cs
- CollectionEditVerbManager.cs