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
- FamilyTypeface.cs
- XmlSchemaAttribute.cs
- errorpatternmatcher.cs
- AnimationStorage.cs
- IOThreadScheduler.cs
- translator.cs
- SoapElementAttribute.cs
- QueryLifecycle.cs
- TreeNodeConverter.cs
- EditorZone.cs
- TextEditorThreadLocalStore.cs
- MeasureData.cs
- ChangeBlockUndoRecord.cs
- webclient.cs
- SelectionRangeConverter.cs
- TextEditorContextMenu.cs
- PropertyBuilder.cs
- DtrList.cs
- XmlEntityReference.cs
- DynamicILGenerator.cs
- XmlEnumAttribute.cs
- SequentialOutput.cs
- BaseCollection.cs
- SqlCacheDependencySection.cs
- UserControlParser.cs
- WriteTimeStream.cs
- ContentElement.cs
- SimpleMailWebEventProvider.cs
- BuilderPropertyEntry.cs
- ChangeDirector.cs
- NodeInfo.cs
- RegexRunnerFactory.cs
- AdornerHitTestResult.cs
- Pair.cs
- SelectionHighlightInfo.cs
- RelativeSource.cs
- ProfileInfo.cs
- FrameworkContentElement.cs
- BinaryFormatter.cs
- CodeSubDirectoriesCollection.cs
- OperatingSystem.cs
- FileDataSourceCache.cs
- LineSegment.cs
- LocatorManager.cs
- StylesEditorDialog.cs
- ErrorWebPart.cs
- GridSplitterAutomationPeer.cs
- SimpleWorkerRequest.cs
- StatusStrip.cs
- HttpCapabilitiesEvaluator.cs
- OperationContractGenerationContext.cs
- SQLInt16.cs
- ExpressionList.cs
- FileNotFoundException.cs
- RuleSetCollection.cs
- TreeViewItem.cs
- Int32CollectionConverter.cs
- DynamicQueryableWrapper.cs
- PlanCompiler.cs
- SerialPort.cs
- TraceContextEventArgs.cs
- CompareValidator.cs
- IPipelineRuntime.cs
- SQLDecimal.cs
- HttpRequest.cs
- SupportsPreviewControlAttribute.cs
- QilNode.cs
- DataSourceView.cs
- VectorAnimationUsingKeyFrames.cs
- BinarySerializer.cs
- MetadataHelper.cs
- TemplateXamlParser.cs
- DataObject.cs
- CodeRegionDirective.cs
- SerializationFieldInfo.cs
- TimeSpanValidator.cs
- SystemWebExtensionsSectionGroup.cs
- SqlMethodTransformer.cs
- Matrix.cs
- addressfiltermode.cs
- AggregateNode.cs
- SafeNativeMethods.cs
- Rectangle.cs
- BindingOperations.cs
- HtmlAnchor.cs
- StylusPlugInCollection.cs
- _PooledStream.cs
- SectionRecord.cs
- BrowserCapabilitiesFactory35.cs
- SettingsAttributes.cs
- FixedFindEngine.cs
- InputLanguage.cs
- ProxyFragment.cs
- HostingEnvironmentException.cs
- ExcludeFromCodeCoverageAttribute.cs
- mediapermission.cs
- Debug.cs
- CodeArgumentReferenceExpression.cs
- DoubleAnimationBase.cs
- MemberPath.cs