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
- ByteStorage.cs
- UserControlDocumentDesigner.cs
- ClientSettingsSection.cs
- RemoveStoryboard.cs
- SafeFileHandle.cs
- QueuePathEditor.cs
- CodeMemberProperty.cs
- Group.cs
- HitTestParameters3D.cs
- ResXBuildProvider.cs
- DataContractAttribute.cs
- IdnMapping.cs
- PriorityBindingExpression.cs
- ErrorRuntimeConfig.cs
- XmlHierarchyData.cs
- SQLRoleProvider.cs
- HashHelper.cs
- Int64AnimationBase.cs
- FormViewPageEventArgs.cs
- TlsnegoTokenProvider.cs
- DeviceSpecificDesigner.cs
- EventWaitHandle.cs
- AuthorizationRule.cs
- ListItemCollection.cs
- _FtpDataStream.cs
- CurrentTimeZone.cs
- DataGridItemEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- StateDesigner.TransitionInfo.cs
- RelativeSource.cs
- Accessors.cs
- QueueProcessor.cs
- BlurEffect.cs
- DesignerDataSourceView.cs
- SmtpNetworkElement.cs
- Vector3DAnimationUsingKeyFrames.cs
- FactoryGenerator.cs
- SignedXml.cs
- PieceNameHelper.cs
- XmlSiteMapProvider.cs
- SharedPersonalizationStateInfo.cs
- OdbcTransaction.cs
- FileStream.cs
- AsymmetricSignatureDeformatter.cs
- CustomErrorsSectionWrapper.cs
- SignedXml.cs
- AssemblyAssociatedContentFileAttribute.cs
- HelpInfo.cs
- ClientRuntimeConfig.cs
- ScriptingWebServicesSectionGroup.cs
- StateMachineSubscription.cs
- RTLAwareMessageBox.cs
- FixedSOMSemanticBox.cs
- RawKeyboardInputReport.cs
- ModelVisual3D.cs
- PeerCollaboration.cs
- NameSpaceEvent.cs
- IResourceProvider.cs
- SqlUserDefinedAggregateAttribute.cs
- WorkflowInspectionServices.cs
- TextEditorTyping.cs
- ConfigurationLocation.cs
- StateChangeEvent.cs
- BamlStream.cs
- Rules.cs
- XmlSchemaSimpleContentExtension.cs
- WebBrowserContainer.cs
- SystemUdpStatistics.cs
- TypeElementCollection.cs
- WebDescriptionAttribute.cs
- InvokeFunc.cs
- BamlLocalizabilityResolver.cs
- StrokeRenderer.cs
- RuleProcessor.cs
- BufferedGraphicsContext.cs
- ActivityIdHeader.cs
- DigitalSignatureProvider.cs
- ToolZoneDesigner.cs
- PropertyEmitterBase.cs
- StrokeCollection2.cs
- PathGeometry.cs
- DispatcherSynchronizationContext.cs
- ProcessHost.cs
- PixelFormatConverter.cs
- ChooseAction.cs
- GlyphingCache.cs
- SqlMethodAttribute.cs
- CardSpaceSelector.cs
- XPathNodeInfoAtom.cs
- ArraySubsetEnumerator.cs
- Intellisense.cs
- WebContext.cs
- AssertUtility.cs
- TrustManagerMoreInformation.cs
- PerspectiveCamera.cs
- safesecurityhelperavalon.cs
- IMembershipProvider.cs
- FrugalList.cs
- SelectedDatesCollection.cs
- RecordManager.cs