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
- PropertyPath.cs
- Image.cs
- DocobjHost.cs
- TextTreePropertyUndoUnit.cs
- SettingsBindableAttribute.cs
- ObjectTypeMapping.cs
- ListViewUpdatedEventArgs.cs
- ScriptReferenceBase.cs
- CommonProperties.cs
- _UriSyntax.cs
- LingerOption.cs
- InternalReceiveMessage.cs
- WizardPanel.cs
- TextTreeTextNode.cs
- RectValueSerializer.cs
- ReaderContextStackData.cs
- Rfc2898DeriveBytes.cs
- AxWrapperGen.cs
- RestHandlerFactory.cs
- CodeSubDirectory.cs
- SapiRecoContext.cs
- ProxyHelper.cs
- FreezableCollection.cs
- Compress.cs
- OdbcPermission.cs
- CodeEntryPointMethod.cs
- ColorDialog.cs
- CleanUpVirtualizedItemEventArgs.cs
- StreamWriter.cs
- ManipulationInertiaStartingEventArgs.cs
- FileDialogPermission.cs
- SQLMembershipProvider.cs
- CompilationLock.cs
- EventSourceCreationData.cs
- DynamicDataRouteHandler.cs
- UrlMappingsModule.cs
- RowToFieldTransformer.cs
- WpfPayload.cs
- QilStrConcat.cs
- TabletCollection.cs
- WebAdminConfigurationHelper.cs
- ScrollChrome.cs
- SemanticBasicElement.cs
- PropertyInfo.cs
- BooleanExpr.cs
- FontStyleConverter.cs
- ParserContext.cs
- DependencyPropertyConverter.cs
- CodeTypeParameterCollection.cs
- OdbcCommand.cs
- AlignmentXValidation.cs
- BamlRecords.cs
- CodeDirectoryCompiler.cs
- NavigatorOutput.cs
- SchemaCollectionCompiler.cs
- CornerRadiusConverter.cs
- Icon.cs
- ReceiveSecurityHeaderElementManager.cs
- EditableTreeList.cs
- PtsHelper.cs
- InstanceKey.cs
- VariantWrapper.cs
- MultiView.cs
- DataRelationCollection.cs
- PenContext.cs
- DataGrid.cs
- KeyInfo.cs
- ConfigurationException.cs
- MenuCommands.cs
- PageEventArgs.cs
- ThemeDictionaryExtension.cs
- QilPatternVisitor.cs
- DataServiceRequestException.cs
- QuarticEase.cs
- SingleSelectRootGridEntry.cs
- VerificationException.cs
- MarginsConverter.cs
- DebugView.cs
- FixedPageAutomationPeer.cs
- TheQuery.cs
- RestHandlerFactory.cs
- PageSettings.cs
- XamlSerializerUtil.cs
- XmlLoader.cs
- NonVisualControlAttribute.cs
- XmlBoundElement.cs
- EnumBuilder.cs
- oledbmetadatacollectionnames.cs
- DBAsyncResult.cs
- WebEventCodes.cs
- XmlAttribute.cs
- DrawListViewSubItemEventArgs.cs
- OleDbConnection.cs
- XmlSchemaException.cs
- HtmlElementEventArgs.cs
- EndpointInfo.cs
- TemplateNameScope.cs
- AlternateView.cs
- ObjectPropertyMapping.cs
- RtfToXamlReader.cs