Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / ComponentModel / IItemProperties.cs / 1305600 / 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
- InProcStateClientManager.cs
- ToolStripItemImageRenderEventArgs.cs
- WorkerRequest.cs
- MouseButtonEventArgs.cs
- DataGridItemEventArgs.cs
- XmlSerializationWriter.cs
- ListViewItemEventArgs.cs
- JsonWriter.cs
- DeferredReference.cs
- ConstraintEnumerator.cs
- FreezableDefaultValueFactory.cs
- TreeChangeInfo.cs
- TimeStampChecker.cs
- sqlser.cs
- LayoutTableCell.cs
- LinkClickEvent.cs
- TextTreeDeleteContentUndoUnit.cs
- EncodingNLS.cs
- _FixedSizeReader.cs
- ItemsPanelTemplate.cs
- FontNamesConverter.cs
- WindowsRebar.cs
- MeasureItemEvent.cs
- DetailsViewRowCollection.cs
- ItemChangedEventArgs.cs
- OleDbConnectionFactory.cs
- UdpTransportSettings.cs
- SectionVisual.cs
- ImageSource.cs
- UserPreferenceChangingEventArgs.cs
- WebUtil.cs
- VariableExpressionConverter.cs
- PolyBezierSegment.cs
- NullableDecimalMinMaxAggregationOperator.cs
- ContainerFilterService.cs
- DbParameterCollection.cs
- WindowVisualStateTracker.cs
- AttachedPropertyDescriptor.cs
- SqlMetaData.cs
- TextSerializer.cs
- PageAsyncTaskManager.cs
- AppSettingsExpressionEditor.cs
- OleDbPermission.cs
- FileUtil.cs
- XPathException.cs
- CapabilitiesRule.cs
- XamlFigureLengthSerializer.cs
- ProcessProtocolHandler.cs
- __FastResourceComparer.cs
- Int16Animation.cs
- RedBlackList.cs
- UInt16.cs
- SocketConnection.cs
- updateconfighost.cs
- SchemeSettingElementCollection.cs
- HierarchicalDataSourceConverter.cs
- EntityContainerAssociationSetEnd.cs
- SinglePageViewer.cs
- mediapermission.cs
- SQLBytes.cs
- GcHandle.cs
- SmiContext.cs
- StylusLogic.cs
- MessageDecoder.cs
- VersionPair.cs
- TransactionException.cs
- WSHttpBindingBaseElement.cs
- AnimationStorage.cs
- MessageAction.cs
- Geometry3D.cs
- XhtmlBasicControlAdapter.cs
- XmlNodeList.cs
- ExpressionBuilder.cs
- SourceElementsCollection.cs
- DashStyle.cs
- TableRowCollection.cs
- TextEditorTables.cs
- SolidColorBrush.cs
- precedingquery.cs
- DataGridViewColumnCollection.cs
- XmlUtf8RawTextWriter.cs
- DefaultPrintController.cs
- TcpSocketManager.cs
- CodeGotoStatement.cs
- SqlTriggerAttribute.cs
- AccessDataSource.cs
- InternalEnumValidator.cs
- DataServiceRequestOfT.cs
- DateBoldEvent.cs
- QuadraticBezierSegment.cs
- VariableReference.cs
- UIElementAutomationPeer.cs
- WebPartConnectionCollection.cs
- FlatButtonAppearance.cs
- XamlSerializerUtil.cs
- QuestionEventArgs.cs
- CodeRemoveEventStatement.cs
- OdbcRowUpdatingEvent.cs
- Avt.cs
- HtmlInputCheckBox.cs