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
- BindUriHelper.cs
- CodeCommentStatementCollection.cs
- SchemaImporter.cs
- SecurityTokenInclusionMode.cs
- Animatable.cs
- StylusDownEventArgs.cs
- regiisutil.cs
- MetadataCacheItem.cs
- PropertyMetadata.cs
- TaiwanCalendar.cs
- InstancePersistenceContext.cs
- SqlMethodCallConverter.cs
- ElementNotAvailableException.cs
- XmlImplementation.cs
- x509utils.cs
- HeaderedContentControl.cs
- URL.cs
- TypedTableBaseExtensions.cs
- SmiEventSink_DeferedProcessing.cs
- ColumnWidthChangedEvent.cs
- SqlLiftWhereClauses.cs
- AssociatedControlConverter.cs
- MonthChangedEventArgs.cs
- InstanceLockTracking.cs
- IntPtr.cs
- KnownIds.cs
- ResourceDefaultValueAttribute.cs
- Rotation3D.cs
- HtmlEmptyTagControlBuilder.cs
- FormatSettings.cs
- NetworkInterface.cs
- FixedSchema.cs
- MatrixCamera.cs
- HttpModuleAction.cs
- COSERVERINFO.cs
- DesignConnectionCollection.cs
- SimpleRecyclingCache.cs
- XmlNodeComparer.cs
- ActivityBuilder.cs
- EntityDataSourceChangedEventArgs.cs
- InstanceCreationEditor.cs
- Geometry.cs
- IdentityValidationException.cs
- CustomBindingElement.cs
- DockingAttribute.cs
- TextLineBreak.cs
- Trace.cs
- CounterSampleCalculator.cs
- WebResourceUtil.cs
- WorkflowViewManager.cs
- ExclusiveTcpListener.cs
- TextSelectionHighlightLayer.cs
- WebBrowserEvent.cs
- StoreItemCollection.Loader.cs
- ConnectionsZone.cs
- BackoffTimeoutHelper.cs
- ProtocolsConfiguration.cs
- FilterableAttribute.cs
- WebPartZoneCollection.cs
- ParameterReplacerVisitor.cs
- ClientConfigurationSystem.cs
- DataGridViewBand.cs
- PackageDigitalSignatureManager.cs
- TreeView.cs
- OpCodes.cs
- EventLogTraceListener.cs
- EntityDesignerUtils.cs
- XmlName.cs
- DesignTimeParseData.cs
- UIPropertyMetadata.cs
- TagMapCollection.cs
- ImpersonationContext.cs
- SortDescriptionCollection.cs
- SHA512.cs
- Model3D.cs
- AlgoModule.cs
- SqlTransaction.cs
- SchemaCollectionPreprocessor.cs
- Decorator.cs
- WorkflowApplicationCompletedException.cs
- RectangleGeometry.cs
- ComponentEditorPage.cs
- ToolStripItemImageRenderEventArgs.cs
- OutputCacheSettingsSection.cs
- DataSourceSelectArguments.cs
- QuotedPrintableStream.cs
- XmlAttributeOverrides.cs
- RoutedEvent.cs
- AppSettingsReader.cs
- RedirectionProxy.cs
- RowType.cs
- SystemIPInterfaceStatistics.cs
- CodeArgumentReferenceExpression.cs
- UrlPath.cs
- FileSystemInfo.cs
- OperandQuery.cs
- FormsAuthenticationUser.cs
- XmlDictionaryReader.cs
- Int64AnimationBase.cs
- XPathEmptyIterator.cs