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
- SerializationFieldInfo.cs
- FilterInvalidBodyAccessException.cs
- DefaultWorkflowSchedulerService.cs
- BindToObject.cs
- Set.cs
- TableLayoutCellPaintEventArgs.cs
- GatewayDefinition.cs
- Scanner.cs
- CompileLiteralTextParser.cs
- TabletDeviceInfo.cs
- glyphs.cs
- NonceToken.cs
- AssemblyNameProxy.cs
- ElementHostAutomationPeer.cs
- TreeViewHitTestInfo.cs
- DataGridViewCellEventArgs.cs
- DockProviderWrapper.cs
- base64Transforms.cs
- FontStretches.cs
- XmlSignatureManifest.cs
- EditingCoordinator.cs
- ValueConversionAttribute.cs
- SystemIcmpV6Statistics.cs
- Pair.cs
- ResolveNameEventArgs.cs
- XmlDocument.cs
- HttpResponseInternalWrapper.cs
- PriorityBindingExpression.cs
- SqlCommand.cs
- EventsTab.cs
- PasswordDeriveBytes.cs
- MappingModelBuildProvider.cs
- RootBrowserWindowAutomationPeer.cs
- BStrWrapper.cs
- ListBindingHelper.cs
- CategoryNameCollection.cs
- URLIdentityPermission.cs
- FileInfo.cs
- DBSqlParserTableCollection.cs
- RoutedUICommand.cs
- ContainerParaClient.cs
- WebPartHeaderCloseVerb.cs
- CompiledIdentityConstraint.cs
- RuntimeHelpers.cs
- CompiledXpathExpr.cs
- Encoder.cs
- SoapSchemaExporter.cs
- errorpatternmatcher.cs
- SEHException.cs
- SqlConnectionFactory.cs
- ReliableInputConnection.cs
- MsdtcWrapper.cs
- RangeBase.cs
- XmlSerializableReader.cs
- HandlerFactoryCache.cs
- RowsCopiedEventArgs.cs
- ListItemConverter.cs
- Msec.cs
- BuildManager.cs
- HttpContextServiceHost.cs
- TransformPatternIdentifiers.cs
- GuidelineSet.cs
- CircleHotSpot.cs
- Dump.cs
- QuotedPrintableStream.cs
- BuildDependencySet.cs
- ProgressPage.cs
- GlyphRun.cs
- XmlValidatingReader.cs
- DecimalAnimationBase.cs
- DropShadowEffect.cs
- cookie.cs
- XmlUrlResolver.cs
- ReflectionServiceProvider.cs
- EntityDataSourceColumn.cs
- Dispatcher.cs
- CircleHotSpot.cs
- MsmqIntegrationSecurity.cs
- TcpProcessProtocolHandler.cs
- ErrorRuntimeConfig.cs
- String.cs
- GlobalItem.cs
- TemplateBindingExtension.cs
- ScriptingAuthenticationServiceSection.cs
- SqlXmlStorage.cs
- MeasurementDCInfo.cs
- TCPListener.cs
- CodeDOMUtility.cs
- CodeSnippetExpression.cs
- AuthenticationModuleElement.cs
- RowUpdatedEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- FtpWebResponse.cs
- TextEditorCopyPaste.cs
- GridLengthConverter.cs
- VarInfo.cs
- WindowsAltTab.cs
- typedescriptorpermission.cs
- TrackBar.cs
- EnlistmentTraceIdentifier.cs