Code:
/ 4.0 / 4.0 / untmp / 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; // ReadOnlyCollection
namespace 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.
///
ReadOnlyCollection ItemProperties { 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
- HttpConfigurationContext.cs
- TabControlEvent.cs
- AsyncResult.cs
- ImageKeyConverter.cs
- ResourceManager.cs
- AttachmentService.cs
- Qualifier.cs
- StyleHelper.cs
- TreeViewImageIndexConverter.cs
- PageRanges.cs
- ThicknessConverter.cs
- IdentityModelDictionary.cs
- AuthenticateEventArgs.cs
- wgx_render.cs
- Polygon.cs
- WebPartDeleteVerb.cs
- EntityDesignerUtils.cs
- SplineQuaternionKeyFrame.cs
- PointCollection.cs
- TerminateSequenceResponse.cs
- DependencyObjectProvider.cs
- COM2PropertyDescriptor.cs
- XPathMessageContext.cs
- DataPagerField.cs
- RegisteredScript.cs
- DocumentViewerHelper.cs
- AmbiguousMatchException.cs
- ArraySubsetEnumerator.cs
- IERequestCache.cs
- _DisconnectOverlappedAsyncResult.cs
- MarkupProperty.cs
- TreeNode.cs
- XmlWriterSettings.cs
- PathSegmentCollection.cs
- BamlReader.cs
- String.cs
- ProgressBar.cs
- WorkflowViewService.cs
- ErrorHandler.cs
- FrameworkEventSource.cs
- TemplateXamlTreeBuilder.cs
- HitTestDrawingContextWalker.cs
- ExecutedRoutedEventArgs.cs
- SystemIcons.cs
- WarningException.cs
- ExtensionDataReader.cs
- DiscoveryEndpointValidator.cs
- NameValueConfigurationCollection.cs
- MenuBase.cs
- PrivilegeNotHeldException.cs
- ProviderConnectionPoint.cs
- QueryComponents.cs
- QueueProcessor.cs
- DynamicValueConverter.cs
- MiniMapControl.xaml.cs
- GACMembershipCondition.cs
- DataDocumentXPathNavigator.cs
- FrameworkElementAutomationPeer.cs
- GridViewAutoFormat.cs
- ContainerUIElement3D.cs
- FrameworkRichTextComposition.cs
- BamlStream.cs
- ConfigXmlWhitespace.cs
- TableLayout.cs
- CodeSnippetTypeMember.cs
- EmptyElement.cs
- Command.cs
- DocumentPageTextView.cs
- ContainerUtilities.cs
- HttpInputStream.cs
- assertwrapper.cs
- XXXOnTypeBuilderInstantiation.cs
- RawStylusInput.cs
- securitymgrsite.cs
- SortDescriptionCollection.cs
- SystemIPAddressInformation.cs
- CachedPathData.cs
- IArgumentProvider.cs
- DataControlPagerLinkButton.cs
- CommandHelpers.cs
- TableRowCollection.cs
- CompressionTransform.cs
- WinEventTracker.cs
- HandlerWithFactory.cs
- TableItemStyle.cs
- StringComparer.cs
- Inflater.cs
- TypeConverterHelper.cs
- NumberAction.cs
- CollectionContainer.cs
- ChangeTracker.cs
- DateBoldEvent.cs
- ImageField.cs
- GetLastErrorDetailsRequest.cs
- ThemeDictionaryExtension.cs
- XmlReaderSettings.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- TypefaceMetricsCache.cs
- TabControl.cs
- RMPermissions.cs