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
- WindowsBrush.cs
- RayHitTestParameters.cs
- ConnectivityStatus.cs
- ValuePatternIdentifiers.cs
- HtmlEmptyTagControlBuilder.cs
- StrongNamePublicKeyBlob.cs
- ADRole.cs
- IDispatchConstantAttribute.cs
- DataGridState.cs
- CodeAccessSecurityEngine.cs
- ComponentRenameEvent.cs
- WeakHashtable.cs
- JsonUriDataContract.cs
- PerformanceCountersElement.cs
- MsdtcClusterUtils.cs
- SHA1Managed.cs
- ParallelTimeline.cs
- XmlSerializerFactory.cs
- MethodToken.cs
- DragEventArgs.cs
- XmlDataImplementation.cs
- RMPublishingDialog.cs
- FontDifferentiator.cs
- MediaContextNotificationWindow.cs
- TemplateKey.cs
- LocalBuilder.cs
- ResourceBinder.cs
- HtmlInputText.cs
- ToolStripPanelCell.cs
- xmlfixedPageInfo.cs
- InternalBase.cs
- RecordManager.cs
- TextCharacters.cs
- TreeNodeStyleCollection.cs
- RegistryDataKey.cs
- CommandEventArgs.cs
- MarkupExtensionParser.cs
- HTMLTagNameToTypeMapper.cs
- ThicknessKeyFrameCollection.cs
- GeometryCombineModeValidation.cs
- MsmqIntegrationSecurityMode.cs
- Latin1Encoding.cs
- CellConstantDomain.cs
- ClientTargetSection.cs
- ObjectPersistData.cs
- TextTreeRootNode.cs
- SQLBinaryStorage.cs
- IsolatedStorageException.cs
- BitmapFrameDecode.cs
- EventProviderTraceListener.cs
- ExecutionTracker.cs
- ViewEventArgs.cs
- GridViewColumnHeader.cs
- ResourceSetExpression.cs
- FlowDocumentReaderAutomationPeer.cs
- CorrelationHandle.cs
- DataListItemEventArgs.cs
- NonPrimarySelectionGlyph.cs
- SqlXml.cs
- EnumConverter.cs
- PathParser.cs
- GregorianCalendarHelper.cs
- SmtpCommands.cs
- TerminatorSinks.cs
- dataSvcMapFileLoader.cs
- X509Chain.cs
- XmlParserContext.cs
- ZipFileInfo.cs
- SettingsProperty.cs
- SqlDuplicator.cs
- comcontractssection.cs
- GradientSpreadMethodValidation.cs
- TraceLog.cs
- DataGridHeaderBorder.cs
- CustomExpression.cs
- WindowsComboBox.cs
- WebPartConnectionsConfigureVerb.cs
- RepeaterItem.cs
- AgileSafeNativeMemoryHandle.cs
- DataGridViewImageCell.cs
- StreamingContext.cs
- MarkupCompilePass2.cs
- LongTypeConverter.cs
- TypeTypeConverter.cs
- UserControl.cs
- DataRecordInfo.cs
- ObjectSelectorEditor.cs
- WebPartAddingEventArgs.cs
- NegotiateStream.cs
- BulletedListDesigner.cs
- FastPropertyAccessor.cs
- FolderLevelBuildProvider.cs
- SystemKeyConverter.cs
- WinFormsComponentEditor.cs
- HelpKeywordAttribute.cs
- DataGridViewColumnConverter.cs
- RtfNavigator.cs
- MimeParameter.cs
- PrePrepareMethodAttribute.cs
- XamlNamespaceHelper.cs