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
- ExchangeUtilities.cs
- UInt32Converter.cs
- DataRowCollection.cs
- TcpConnectionPool.cs
- PingReply.cs
- DbConnectionPoolCounters.cs
- ConfigXmlCDataSection.cs
- NumberFormatter.cs
- DbBuffer.cs
- GlyphingCache.cs
- HttpModuleAction.cs
- RoleGroup.cs
- SrgsGrammarCompiler.cs
- SerialPort.cs
- SetterBaseCollection.cs
- WCFModelStrings.Designer.cs
- Rijndael.cs
- MachineKeySection.cs
- HighContrastHelper.cs
- QueryGenerator.cs
- WebMessageFormatHelper.cs
- AdobeCFFWrapper.cs
- DuplicateWaitObjectException.cs
- NavigateEvent.cs
- CodeObjectCreateExpression.cs
- EvidenceBase.cs
- XhtmlBasicFormAdapter.cs
- AlternateViewCollection.cs
- XmlEventCache.cs
- ObjectDataProvider.cs
- PropertyValueChangedEvent.cs
- DbBuffer.cs
- DateTimeOffsetStorage.cs
- ListBindingHelper.cs
- LocalizationComments.cs
- ProcessModelSection.cs
- Encoding.cs
- SafeRegistryKey.cs
- WebPartConnectionCollection.cs
- XmlTextReaderImplHelpers.cs
- StackSpiller.Generated.cs
- KeyBinding.cs
- EntityDataSourceView.cs
- VectorAnimationBase.cs
- DataGridViewCellStyle.cs
- DataControlImageButton.cs
- MessageBodyDescription.cs
- ArglessEventHandlerProxy.cs
- AtomicFile.cs
- Literal.cs
- ObjectListComponentEditor.cs
- LineSegment.cs
- login.cs
- WebServiceData.cs
- WebEventTraceProvider.cs
- DataGridTableCollection.cs
- DllHostInitializer.cs
- NetworkInformationException.cs
- TaskResultSetter.cs
- DataReceivedEventArgs.cs
- XmlTypeMapping.cs
- SqlDataAdapter.cs
- TargetPerspective.cs
- MetadataPropertyCollection.cs
- FormClosedEvent.cs
- QilLoop.cs
- NativeMethods.cs
- ContainerControlDesigner.cs
- MetafileHeaderWmf.cs
- ScriptingAuthenticationServiceSection.cs
- Helpers.cs
- CroppedBitmap.cs
- LicenseManager.cs
- View.cs
- ThemeableAttribute.cs
- FixedFindEngine.cs
- TraceListeners.cs
- XmlDataLoader.cs
- Image.cs
- XmlIlTypeHelper.cs
- LogReserveAndAppendState.cs
- DrawingCollection.cs
- SelectionChangedEventArgs.cs
- Errors.cs
- SystemDropShadowChrome.cs
- AddInAdapter.cs
- PeerNameRegistration.cs
- EncoderReplacementFallback.cs
- SqlRetyper.cs
- WindowsToolbarAsMenu.cs
- OutputWindow.cs
- ConfigXmlWhitespace.cs
- FilterQuery.cs
- SafeRegistryKey.cs
- controlskin.cs
- OptimizedTemplateContentHelper.cs
- SortDescriptionCollection.cs
- LinkedResource.cs
- GroupStyle.cs
- DataConnectionHelper.cs