Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / ComponentModel / IItemProperties.cs / 1305600 / 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
- EventManager.cs
- FontStyles.cs
- Paragraph.cs
- SamlAuthorizationDecisionClaimResource.cs
- ComponentGuaranteesAttribute.cs
- ScrollProviderWrapper.cs
- SaveFileDialog.cs
- _SslState.cs
- RectConverter.cs
- XamlSerializerUtil.cs
- OrderedDictionary.cs
- MailBnfHelper.cs
- ServiceActivationException.cs
- XamlPoint3DCollectionSerializer.cs
- TypeUtil.cs
- NameSpaceExtractor.cs
- RegexFCD.cs
- TypeUsageBuilder.cs
- SqlClientWrapperSmiStream.cs
- PartitionResolver.cs
- unsafeIndexingFilterStream.cs
- SaveFileDialog.cs
- DictionaryBase.cs
- PrinterResolution.cs
- SqlProvider.cs
- XmlDataImplementation.cs
- StdValidatorsAndConverters.cs
- FastPropertyAccessor.cs
- Lasso.cs
- ProjectedSlot.cs
- FontCacheUtil.cs
- PolyQuadraticBezierSegment.cs
- DataListItem.cs
- ChildrenQuery.cs
- RuleSettings.cs
- ObjectDataSourceDisposingEventArgs.cs
- HtmlGenericControl.cs
- VerificationAttribute.cs
- entitydatasourceentitysetnameconverter.cs
- WebBrowserContainer.cs
- CreateUserErrorEventArgs.cs
- TraceUtility.cs
- ComponentCollection.cs
- ConsoleTraceListener.cs
- GZipDecoder.cs
- XmlSchemaObjectCollection.cs
- SoapRpcMethodAttribute.cs
- CacheAxisQuery.cs
- HttpStaticObjectsCollectionWrapper.cs
- MemberProjectedSlot.cs
- JapaneseLunisolarCalendar.cs
- GetWinFXPath.cs
- ResourceExpression.cs
- cryptoapiTransform.cs
- ColorConverter.cs
- XamlStyleSerializer.cs
- PropertyToken.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TextureBrush.cs
- ListItemConverter.cs
- Parsers.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SystemUdpStatistics.cs
- CatalogUtil.cs
- ComplexType.cs
- PrivilegedConfigurationManager.cs
- CommandLibraryHelper.cs
- WorkflowValidationFailedException.cs
- BindingGroup.cs
- ExpressionUtilities.cs
- PeerSecurityManager.cs
- ThaiBuddhistCalendar.cs
- DataColumnMappingCollection.cs
- LinearGradientBrush.cs
- GridViewEditEventArgs.cs
- AppModelKnownContentFactory.cs
- KeyboardEventArgs.cs
- XmlAnyElementAttributes.cs
- RowTypeElement.cs
- TranslateTransform.cs
- SelectionUIService.cs
- CultureSpecificCharacterBufferRange.cs
- CounterCreationData.cs
- LinqDataSourceStatusEventArgs.cs
- EditorReuseAttribute.cs
- XmlStreamStore.cs
- PeerNodeTraceRecord.cs
- DataSvcMapFile.cs
- RoleManagerEventArgs.cs
- ColorAnimationUsingKeyFrames.cs
- SharedRuntimeState.cs
- DefaultTextStoreTextComposition.cs
- TreeViewHitTestInfo.cs
- XmlCharacterData.cs
- HashAlgorithm.cs
- AdapterUtil.cs
- Switch.cs
- Internal.cs
- DataGridViewCheckBoxCell.cs
- LifetimeMonitor.cs