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
- DbMetaDataFactory.cs
- OleDbTransaction.cs
- PointCollection.cs
- EnumValAlphaComparer.cs
- PolicyManager.cs
- OleDbMetaDataFactory.cs
- SessionSwitchEventArgs.cs
- CapabilitiesRule.cs
- _ConnectionGroup.cs
- QueryResponse.cs
- GestureRecognizer.cs
- ActivitiesCollection.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- SafeEventLogWriteHandle.cs
- MediaCommands.cs
- OverrideMode.cs
- NamespaceImport.cs
- DataServiceHostWrapper.cs
- SchemaNamespaceManager.cs
- GuidConverter.cs
- HttpCookiesSection.cs
- WebServiceResponse.cs
- CngKeyBlobFormat.cs
- x509utils.cs
- safesecurityhelperavalon.cs
- StoreItemCollection.Loader.cs
- InstanceLockedException.cs
- IssuedTokenParametersEndpointAddressElement.cs
- CodeObjectCreateExpression.cs
- PropertyEntry.cs
- Single.cs
- EntryPointNotFoundException.cs
- IgnoreSectionHandler.cs
- storagemappingitemcollection.viewdictionary.cs
- DesignerExtenders.cs
- Cursors.cs
- WebPartZoneBase.cs
- CodeParameterDeclarationExpressionCollection.cs
- CollectionViewSource.cs
- Imaging.cs
- CompiledQuery.cs
- ToolStripDesignerAvailabilityAttribute.cs
- SwitchLevelAttribute.cs
- TextDecorationCollection.cs
- BuildResult.cs
- UnsafeNativeMethods.cs
- CategoryNameCollection.cs
- InfoCardSymmetricAlgorithm.cs
- SubstitutionList.cs
- DbConnectionPoolGroup.cs
- DataRelation.cs
- Misc.cs
- WFItemsToSpacerVisibility.cs
- StrokeDescriptor.cs
- ObjectList.cs
- ToggleButton.cs
- SqlDataSourceSelectingEventArgs.cs
- COAUTHIDENTITY.cs
- GenericPrincipal.cs
- RemotingConfigParser.cs
- TreeViewItemAutomationPeer.cs
- PenLineCapValidation.cs
- PartialCachingAttribute.cs
- EntityStoreSchemaFilterEntry.cs
- TabPanel.cs
- Evaluator.cs
- OpenFileDialog.cs
- ImageKeyConverter.cs
- PackWebRequest.cs
- VirtualPath.cs
- SmiXetterAccessMap.cs
- DocumentStream.cs
- PerformanceCounterCategory.cs
- ListControlConvertEventArgs.cs
- HttpGetClientProtocol.cs
- HtmlWindow.cs
- PropertyValueChangedEvent.cs
- MouseEventArgs.cs
- ProviderException.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- JavaScriptObjectDeserializer.cs
- ValidationSummary.cs
- SQLChars.cs
- XmlSchemaImport.cs
- AssertFilter.cs
- Configuration.cs
- SizeKeyFrameCollection.cs
- D3DImage.cs
- BooleanConverter.cs
- LayoutEditorPart.cs
- SafeNativeMethods.cs
- ScrollBarAutomationPeer.cs
- ClickablePoint.cs
- TraceHandlerErrorFormatter.cs
- UrlMappingsModule.cs
- ListBase.cs
- Empty.cs
- Wizard.cs
- SafeBitVector32.cs
- CellLabel.cs