Compartir a través de


System.ComponentModel Namespace

Microsoft Silverlight will reach end of support after October 2021. Learn more.

The System.ComponentModel namespace provides classes that are used to implement the run-time and design-time behavior of components and controls. This namespace includes the base classes and interfaces for implementing attributes and type converters, and for performing asynchronous operations.

Classes

  Class Description
Public class AlternateContentPropertyAttribute Indicates whether a non-content property should be displayed in the the object tree.
Public class AsyncCompletedEventArgs Provides data for the MethodNameCompleted event.
Public class AsyncOperation Tracks the lifetime of an asynchronous operation.
Public class AsyncOperationManager Provides concurrency management for classes that support asynchronous method calls. This class cannot be inherited.
Public class BackgroundWorker Runs an operation on a separate thread.
Public class BindableAttribute Specifies whether a member is typically used for binding. This class cannot be inherited.
Public class BrowsableAttribute Specifies whether a property or event should be displayed in a Properties window.
Public class CancelEventArgs Provides data for a cancelable event.
Public class CategoryAttribute Specifies the name of the category in which to group the property or event when displayed in a property grid control set to Categorized mode.
Public class ClosingEventArgs Provides data for the Window.Closing event.
Public class ComplexBindingPropertiesAttribute Specifies the data source and data member properties for a component that supports complex data binding. This class cannot be inherited.
Public class ComponentCollection Gets a specific component in the container.
Public class CurrentChangingEventArgs Provides data for the ICollectionView.CurrentChanging event.
Public class DataErrorsChangedEventArgs Provides data for the INotifyDataErrorInfo.ErrorsChanged event.
Public class DefaultBindingPropertyAttribute Specifies the default binding property for a component.
Public class DefaultEventAttribute Specifies the default event for a control.
Public class DefaultPropertyAttribute Specifies the default property for a control.
Public class DefaultValueAttribute Specifies the default value for a property.
Public class DescriptionAttribute Specifies a description for a property or event.
Public class DesignerProperties Provides attached properties that can be used to communicate with a designer.
Public class DesignTimeVisibleAttribute DesignTimeVisibleAttribute marks a control's visibility. If Yes is present, a visual designer can show this control on a designer.
Public class DoWorkEventArgs Provides data for the DoWork event.
Public class EditorBrowsableAttribute Specifies that a property or method is viewable in an editor. This class cannot be inherited.
Public class GroupDescription Provides a base class for defining how to divide the items in a collection into groups.
Public class InvalidEnumArgumentException Obsolete. The exception that is thrown when you pass an enumeration value that is not valid as a method argument.
Public class LookupBindingPropertiesAttribute Specifies the properties that support lookup-based binding.
Public class PageChangingEventArgs Provides data for the PageChanging event.
Public class ProgressChangedEventArgs Provides data for the ProgressChanged event.
Public class PropertyChangedEventArgs Provides data for the PropertyChanged event.
Public class PropertyChangingEventArgs Provides data for the INotifyPropertyChanging.PropertyChanging event.
Public class PropertyDescriptor Provides a description of a property.
Public class ReadOnlyAttribute Specifies whether the property this attribute is applied to is read-only or read/write.
Public class RunWorkerCompletedEventArgs Provides data for the RunWorkerCompleted event.
Public class SortDescriptionCollection Represents a collection of SortDescription instances.
Public class TypeConverter Provides a unified way of converting types of values to other types. TypeConverter typically supports string-to-object conversion, either for property editors in design environments, or to enable XAML usages.
Public class TypeConverterAttribute Specifies the class to use as a type converter for the type or property that this attribute is bound to.

Structures

  Structure Description
Public structure SortDescription Defines the direction and the property name that will be used as the criteria for sorting a collection.

Interfaces

  Interface Description
Public interface IChangeTracking Defines the mechanism for querying the object for changes and resetting of the changed status.
Public interface ICollectionView Enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping.
Public interface ICollectionViewFactory Defines a method that enables a collection to provide a custom view for specialized sorting, filtering, grouping, and currency.
Public interface IComponent When implemented by a class, gets or sets the ISite associated with the component.
Public interface IContainer Provides functionality for containers. Containers are objects that logically contain zero or more components.
Public interface IDataErrorInfo Defines members that data entity classes can implement to provide custom validation support.
Public interface IEditableCollectionView Defines methods and properties that a collection view implements to provide editing capabilities to a collection.
Public interface IEditableObject Represents an object that has an editing mode and the ability to commit or revert changes.
Public interface INotifyDataErrorInfo Defines members that data entity classes can implement to provide custom synchronous and asynchronous validation support.
Public interface INotifyPropertyChanged Notifies clients that a property value has changed.
Public interface INotifyPropertyChanging Defines an event for notifying clients that a property value is changing.
Public interface IPagedCollectionView Defines methods and properties that a collection view implements to provide paging capabilities to a collection.
Public interface IRevertibleChangeTracking Provides support for rolling back changes.
Public interface ISite Provides functionality required by sites. Sites bind a component to a container and enable communication between them, as well as provide a way for the container to manage its components.
Public interface ISupportInitialize Specifies that this object supports a simple, transacted notification for batch initialization.
Public interface ITypeDescriptorContext Provides information about a context to a type converter or a value editor, so that the type converter or editor can perform a conversion.

Delegates

  Delegate Description
Public delegate AsyncCompletedEventHandler Represents the method that will handle the MethodNameCompleted event of an asynchronous operation.
Public delegate CurrentChangingEventHandler Represents a method that can handle the CurrentChanging event of an ICollectionView implementation.
Public delegate DoWorkEventHandler Represents the method that will handle the DoWork event that is raised when the RunWorkerAsync method is called.
Public delegate ProgressChangedEventHandler Represents the method that will handle the ProgressChanged event that is raised when progress is reported by a BackgroundWorker.
Public delegate PropertyChangedEventHandler Represents the method that will handle the INotifyPropertyChanged.PropertyChanged event.
Public delegate PropertyChangingEventHandler Represents a method that will handle the INotifyPropertyChanging.PropertyChanging event.
Public delegate RunWorkerCompletedEventHandler Represents the method that will handle the RunWorkerCompleted event that is raised when the operation performed by a BackgroundWorker has completed, has been canceled, or has raised an exception.

Enumerations

  Enumeration Description
Public enumeration BindableSupport Specifies values to indicate whether a property can be bound to a data element or another property.
Public enumeration BindingDirection Specifies whether the template can be bound one way or two ways.
Public enumeration EditorBrowsableState Specifies the browsable state of a property or method from within an editor.
Public enumeration ListSortDirection Specifies the direction of a sort operation.
Public enumeration NewItemPlaceholderPosition Specifies where the placeholder for a new item appears in an IEditableCollectionView.