Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- AppearanceEditorPart.cs
- ProxyHwnd.cs
- RegionData.cs
- AgileSafeNativeMemoryHandle.cs
- Comparer.cs
- SrgsElement.cs
- StateMachineDesignerPaint.cs
- UniqueCodeIdentifierScope.cs
- WebServicesInteroperability.cs
- DefaultCommandExtensionCallback.cs
- Int16Storage.cs
- InputScopeManager.cs
- MsdtcWrapper.cs
- XPathNavigatorKeyComparer.cs
- ProxyManager.cs
- SevenBitStream.cs
- Bezier.cs
- CompressEmulationStream.cs
- EditorBrowsableAttribute.cs
- CompoundFileStreamReference.cs
- UIElement3D.cs
- IndexerNameAttribute.cs
- DtdParser.cs
- DispatcherFrame.cs
- ToolStripHighContrastRenderer.cs
- InstanceHandle.cs
- COMException.cs
- InternalSafeNativeMethods.cs
- CatalogPart.cs
- ErasingStroke.cs
- ActivityDesignerLayoutSerializers.cs
- EventProxy.cs
- SiteMapNodeItemEventArgs.cs
- SurrogateChar.cs
- X509Certificate2Collection.cs
- MatrixIndependentAnimationStorage.cs
- BufferModesCollection.cs
- UnsafeNativeMethods.cs
- Pointer.cs
- SystemWebExtensionsSectionGroup.cs
- AmbientValueAttribute.cs
- AgileSafeNativeMemoryHandle.cs
- AsyncCompletedEventArgs.cs
- DataTableNameHandler.cs
- MonitorWrapper.cs
- SyndicationDeserializer.cs
- Cast.cs
- PersistChildrenAttribute.cs
- WindowsSlider.cs
- SecurityResources.cs
- DataSvcMapFile.cs
- UnsafeCollabNativeMethods.cs
- CodeAttachEventStatement.cs
- OleDbErrorCollection.cs
- UnconditionalPolicy.cs
- HttpResponse.cs
- FactoryGenerator.cs
- StatusBarPanelClickEvent.cs
- LayoutEvent.cs
- ResourceKey.cs
- SelectionService.cs
- SmiContextFactory.cs
- WindowShowOrOpenTracker.cs
- DataSourceProvider.cs
- BrowserTree.cs
- ZoomingMessageFilter.cs
- OleDbError.cs
- ContentValidator.cs
- FactoryGenerator.cs
- TextBreakpoint.cs
- InheritedPropertyChangedEventArgs.cs
- CompilerGeneratedAttribute.cs
- DataColumnMapping.cs
- HtmlWindowCollection.cs
- SqlInternalConnectionTds.cs
- _SslStream.cs
- ResourceSet.cs
- AsymmetricKeyExchangeFormatter.cs
- SiteMapNodeItem.cs
- CompositeCollection.cs
- CookielessHelper.cs
- ThreadAttributes.cs
- FormView.cs
- BoolExpr.cs
- AppendHelper.cs
- LoginCancelEventArgs.cs
- ControlDesigner.cs
- BaseProcessor.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- WindowsAltTab.cs
- InvalidDataException.cs
- _emptywebproxy.cs
- DeviceContext2.cs
- SqlCacheDependencyDatabaseCollection.cs
- ISAPIApplicationHost.cs
- DetailsViewUpdatedEventArgs.cs
- InvalidEnumArgumentException.cs
- ArgumentNullException.cs
- InstanceData.cs
- VariableQuery.cs