Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ParseHttpDate.cs
- MsmqChannelFactoryBase.cs
- ButtonStandardAdapter.cs
- HttpStreamMessage.cs
- SimpleBitVector32.cs
- QueryStringParameter.cs
- precedingquery.cs
- TemplateNameScope.cs
- TargetParameterCountException.cs
- ProcessHost.cs
- SoapExtension.cs
- DBDataPermission.cs
- FtpWebRequest.cs
- AppModelKnownContentFactory.cs
- CompilerGeneratedAttribute.cs
- XmlElementList.cs
- DataBindEngine.cs
- SharedUtils.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- HtmlInputRadioButton.cs
- XmlWhitespace.cs
- ListBoxItem.cs
- Point3DConverter.cs
- Int32EqualityComparer.cs
- SystemFonts.cs
- ExtensionSimplifierMarkupObject.cs
- ClientApiGenerator.cs
- EDesignUtil.cs
- SyndicationItem.cs
- TTSEvent.cs
- PeerNeighborManager.cs
- ImageField.cs
- BuildManagerHost.cs
- TargetControlTypeAttribute.cs
- MethodImplAttribute.cs
- DateTimePicker.cs
- TreeNodeClickEventArgs.cs
- HttpResponseHeader.cs
- SoapReflectionImporter.cs
- ExpressionBuilderCollection.cs
- Metadata.cs
- ThreadPool.cs
- XmlEnumAttribute.cs
- WebBrowsableAttribute.cs
- DBConnectionString.cs
- DataControlFieldsEditor.cs
- ConfigurationValidatorBase.cs
- KeyInfo.cs
- WebPartAuthorizationEventArgs.cs
- AuthenticationSection.cs
- HttpAsyncResult.cs
- WindowsStreamSecurityElement.cs
- DefaultDialogButtons.cs
- PreservationFileWriter.cs
- MSAAEventDispatcher.cs
- Frame.cs
- LiteralControl.cs
- TreeWalker.cs
- PerformanceCounter.cs
- SecuritySessionFilter.cs
- SystemInformation.cs
- ToolStripDropDown.cs
- XamlParser.cs
- AssemblyBuilderData.cs
- XmlNamespaceDeclarationsAttribute.cs
- PackageProperties.cs
- EnumerableWrapperWeakToStrong.cs
- RegexCompiler.cs
- ExpressionBinding.cs
- TableLayoutPanelDesigner.cs
- SqlCachedBuffer.cs
- BlurBitmapEffect.cs
- XPathQilFactory.cs
- LambdaCompiler.Statements.cs
- Stack.cs
- PropertySourceInfo.cs
- DictionaryMarkupSerializer.cs
- SharedPersonalizationStateInfo.cs
- TagMapCollection.cs
- CatalogPartChrome.cs
- XmlDeclaration.cs
- SqlConnectionHelper.cs
- PopupControlService.cs
- CommonGetThemePartSize.cs
- FilterRepeater.cs
- DayRenderEvent.cs
- ReadOnlyTernaryTree.cs
- HtmlAnchor.cs
- WindowsFont.cs
- updateconfighost.cs
- XmlCollation.cs
- GenericTextProperties.cs
- LookupBindingPropertiesAttribute.cs
- ResourcePermissionBase.cs
- GridViewCancelEditEventArgs.cs
- TeredoHelper.cs
- RegexRunnerFactory.cs
- EntityClientCacheEntry.cs
- DuplexChannelFactory.cs
- TextElement.cs