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
- VisualBrush.cs
- NullEntityWrapper.cs
- ObjectToIdCache.cs
- DesignerTransaction.cs
- DisposableCollectionWrapper.cs
- SQlBooleanStorage.cs
- StringInfo.cs
- ToolStripPanelSelectionGlyph.cs
- GenerateTemporaryTargetAssembly.cs
- BrushProxy.cs
- TraceInternal.cs
- WindowsListViewScroll.cs
- SecurityAttributeGenerationHelper.cs
- Processor.cs
- SessionSwitchEventArgs.cs
- ExpressionConverter.cs
- QuestionEventArgs.cs
- OracleBinary.cs
- TargetParameterCountException.cs
- NavigationHelper.cs
- EventLog.cs
- ServiceInstallComponent.cs
- CanExecuteRoutedEventArgs.cs
- EntityDataReader.cs
- TextEditorCopyPaste.cs
- MouseOverProperty.cs
- AssemblyNameProxy.cs
- DBConcurrencyException.cs
- MessageQueuePermission.cs
- SafeCertificateContext.cs
- XmlDataSourceNodeDescriptor.cs
- FieldDescriptor.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ComplexTypeEmitter.cs
- EntityStoreSchemaGenerator.cs
- AdornerLayer.cs
- DictionaryEntry.cs
- EncoderFallback.cs
- PartialToken.cs
- XmlSchemaProviderAttribute.cs
- ToolStripControlHost.cs
- FunctionDescription.cs
- CurrencyWrapper.cs
- odbcmetadatacolumnnames.cs
- ProtocolsConfiguration.cs
- FrameworkElement.cs
- DisplayNameAttribute.cs
- ContentPresenter.cs
- VBIdentifierDesigner.xaml.cs
- ProtocolImporter.cs
- UtilityExtension.cs
- ConvertBinder.cs
- ThreadStartException.cs
- UserPreferenceChangingEventArgs.cs
- RelationshipDetailsRow.cs
- TransactionalPackage.cs
- TextViewElement.cs
- BindToObject.cs
- MruCache.cs
- BinarySerializer.cs
- JpegBitmapEncoder.cs
- DockingAttribute.cs
- ButtonFlatAdapter.cs
- linebase.cs
- ValidatedControlConverter.cs
- EnumerationRangeValidationUtil.cs
- OledbConnectionStringbuilder.cs
- ManagementBaseObject.cs
- EntityClassGenerator.cs
- PermissionSetTriple.cs
- XmlTextReader.cs
- Scene3D.cs
- SqlCommand.cs
- CheckBoxList.cs
- EditingMode.cs
- FindSimilarActivitiesVerb.cs
- ComplexLine.cs
- ReliabilityContractAttribute.cs
- ListBindingConverter.cs
- WebPartTransformerAttribute.cs
- webclient.cs
- SequentialOutput.cs
- StateMachineSubscriptionManager.cs
- Rect3DConverter.cs
- ChannelCacheSettings.cs
- ShapeTypeface.cs
- ListenerSingletonConnectionReader.cs
- SafeCryptContextHandle.cs
- SyndicationItemFormatter.cs
- DataGridViewRowHeaderCell.cs
- ListChunk.cs
- X509UI.cs
- OperationBehaviorAttribute.cs
- XmlCollation.cs
- ToolboxBitmapAttribute.cs
- DataSourceControl.cs
- HandleRef.cs
- SafeMILHandleMemoryPressure.cs
- XmlWellformedWriter.cs
- LineVisual.cs