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
- ServiceModelConfigurationSection.cs
- DesignRelationCollection.cs
- StringReader.cs
- ColumnClickEvent.cs
- FragmentNavigationEventArgs.cs
- WebUtil.cs
- IgnoreFlushAndCloseStream.cs
- TypeUtil.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TaskbarItemInfo.cs
- VirtualDirectoryMappingCollection.cs
- RuleProcessor.cs
- GlyphShapingProperties.cs
- NumberSubstitution.cs
- Substitution.cs
- TrailingSpaceComparer.cs
- HtmlInputText.cs
- AnnotationResourceChangedEventArgs.cs
- CapabilitiesUse.cs
- GridViewRowCollection.cs
- CodeCommentStatementCollection.cs
- FindResponse.cs
- WindowCollection.cs
- RightNameExpirationInfoPair.cs
- CrossSiteScriptingValidation.cs
- EventLogEntry.cs
- ZipIOBlockManager.cs
- Compiler.cs
- QuaternionAnimation.cs
- GridViewUpdateEventArgs.cs
- CollectionViewGroup.cs
- XmlAttributeOverrides.cs
- AdCreatedEventArgs.cs
- SessionEndingCancelEventArgs.cs
- Size.cs
- WindowsListViewGroupHelper.cs
- NativeMethods.cs
- ParserExtension.cs
- Query.cs
- MissingFieldException.cs
- CommonRemoteMemoryBlock.cs
- AsyncPostBackErrorEventArgs.cs
- ExpressionDumper.cs
- XmlArrayItemAttributes.cs
- MetabaseSettingsIis7.cs
- NumberFunctions.cs
- LocationReference.cs
- XMLDiffLoader.cs
- PhysicalOps.cs
- BuiltInPermissionSets.cs
- ReaderWriterLock.cs
- BoundingRectTracker.cs
- DelimitedListTraceListener.cs
- ErrorWebPart.cs
- URLAttribute.cs
- DataSourceHelper.cs
- BindUriHelper.cs
- LogLogRecordHeader.cs
- BufferedWebEventProvider.cs
- Shape.cs
- TransformedBitmap.cs
- SendSecurityHeaderElement.cs
- TableLayoutPanelCellPosition.cs
- HMACRIPEMD160.cs
- MatrixConverter.cs
- LogRestartAreaEnumerator.cs
- SymmetricKeyWrap.cs
- VirtualizedContainerService.cs
- WriteFileContext.cs
- SerializationFieldInfo.cs
- TCEAdapterGenerator.cs
- RuleInfoComparer.cs
- ActivityExecutionFilter.cs
- MoveSizeWinEventHandler.cs
- WCFModelStrings.Designer.cs
- WindowsButton.cs
- Wizard.cs
- DateTimeFormatInfo.cs
- RequestStatusBarUpdateEventArgs.cs
- ListQueryResults.cs
- TiffBitmapDecoder.cs
- DocumentSequenceHighlightLayer.cs
- NGCSerializerAsync.cs
- HttpListenerResponse.cs
- TaskFormBase.cs
- DomainConstraint.cs
- InputElement.cs
- InvalidEnumArgumentException.cs
- DataControlImageButton.cs
- ToolStripStatusLabel.cs
- ReliableDuplexSessionChannel.cs
- BitmapFrameDecode.cs
- XmlSchemaObjectTable.cs
- FormatException.cs
- ModuleBuilderData.cs
- Int16KeyFrameCollection.cs
- AccessorTable.cs
- DateTimeFormatInfo.cs
- WebPartZoneBase.cs
- XNameConverter.cs