Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DisplayNameAttribute.cs
- ASCIIEncoding.cs
- DelegateHelpers.Generated.cs
- XmlParserContext.cs
- ResourceDisplayNameAttribute.cs
- ConfigViewGenerator.cs
- SecurityChannelFaultConverter.cs
- ParsedAttributeCollection.cs
- GraphicsContext.cs
- ListViewAutomationPeer.cs
- GenericTypeParameterBuilder.cs
- RemotingServices.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- Itemizer.cs
- XamlFxTrace.cs
- Currency.cs
- ProbeDuplexAsyncResult.cs
- ToolStripDropDown.cs
- VSWCFServiceContractGenerator.cs
- FileBasedResourceGroveler.cs
- Base64Decoder.cs
- XmlNotation.cs
- TypeUtil.cs
- StreamedFramingRequestChannel.cs
- Nullable.cs
- RemotingConfiguration.cs
- WebBrowserSiteBase.cs
- BCryptNative.cs
- DataGridAddNewRow.cs
- CommandLibraryHelper.cs
- MethodExpr.cs
- DataGridViewCellCancelEventArgs.cs
- CredentialCache.cs
- XhtmlBasicPageAdapter.cs
- SqlGatherProducedAliases.cs
- DescendantOverDescendantQuery.cs
- ReliableChannelListener.cs
- SQLInt64.cs
- CollectionViewGroupRoot.cs
- TableAdapterManagerGenerator.cs
- MatrixKeyFrameCollection.cs
- DataMember.cs
- UTF32Encoding.cs
- CollectionBase.cs
- WebPartConnectVerb.cs
- StreamWithDictionary.cs
- ChannelSinkStacks.cs
- ComplexObject.cs
- MemberDomainMap.cs
- UInt32Converter.cs
- ListViewDataItem.cs
- PackageProperties.cs
- SqlNotificationEventArgs.cs
- RegistryExceptionHelper.cs
- NestedContainer.cs
- FileRecordSequenceCompletedAsyncResult.cs
- EpmSourcePathSegment.cs
- Site.cs
- ConsumerConnectionPoint.cs
- DataContractSerializer.cs
- RequestQueue.cs
- AppDomain.cs
- WinEventQueueItem.cs
- XPathPatternParser.cs
- XmlQueryStaticData.cs
- DataBoundControlActionList.cs
- ToolStripStatusLabel.cs
- NegotiateStream.cs
- CoreSwitches.cs
- NamespaceInfo.cs
- documentsequencetextview.cs
- SystemInformation.cs
- SchemaImporter.cs
- PngBitmapDecoder.cs
- SystemBrushes.cs
- KnowledgeBase.cs
- _HeaderInfo.cs
- UIElement.cs
- ValueUtilsSmi.cs
- SettingsContext.cs
- SqlConnectionStringBuilder.cs
- XamlFxTrace.cs
- PersistenceProviderBehavior.cs
- SharedPersonalizationStateInfo.cs
- SetIterators.cs
- QilDataSource.cs
- InterleavedZipPartStream.cs
- NativeMethods.cs
- SqlFacetAttribute.cs
- ApplicationSecurityManager.cs
- ThreadSafeList.cs
- SwitchLevelAttribute.cs
- GridViewSortEventArgs.cs
- ApplicationServicesHostFactory.cs
- CngKey.cs
- Model3DGroup.cs
- ValidationErrorCollection.cs
- ProcessHostFactoryHelper.cs
- CodeTypeDeclarationCollection.cs
- CreateUserWizardStep.cs