This documentation is archived and is not being maintained.
PresentationSource Class
Visual Studio 2010
Provides an abstract base for classes that present content from another technology as part of an interoperation scenario. In addition, this class provides static methods for working with these sources, as well as the basic visual-layer presentation architecture.
System::Object
System.Windows.Threading::DispatcherObject
System.Windows::PresentationSource
System.Windows.Interop::HwndSource
System.Windows.Threading::DispatcherObject
System.Windows::PresentationSource
System.Windows.Interop::HwndSource
Assembly: PresentationCore (in PresentationCore.dll)
The PresentationSource type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | PresentationSource | Provides initialization for base class values when called by the constructor of a derived class. |
| Name | Description | |
|---|---|---|
![]() | CompositionTarget | Gets the visual target for the visuals being presented in the source. |
![]() ![]() | CurrentSources | Returns a list of sources. |
![]() | Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) |
![]() | IsDisposed | When overridden in a derived class, gets a value that declares whether the object is disposed. |
![]() | RootVisual | When overridden in a derived class, gets or sets the root visual being presented in the source. |
| Name | Description | |
|---|---|---|
![]() | AddSource | Adds a PresentationSource derived class instance to the list of known presentation sources. |
![]() ![]() | AddSourceChangedHandler | Adds a handler for the SourceChanged event to the provided element. |
![]() | CheckAccess | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
![]() | ClearContentRenderedListeners | Sets the list of listeners for the ContentRendered event to nullptr. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FromDependencyObject | Returns the source in which a provided DependencyObject is presented. |
![]() ![]() | FromVisual | Returns the source in which a provided Visual is presented. |
![]() | GetCompositionTargetCore | When overridden in a derived class, returns a visual target for the given source. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RemoveSource | Removes a PresentationSource derived class instance from the list of known presentation sources. |
![]() ![]() | RemoveSourceChangedHandler | Removes a handler for the SourceChanged event from the provided element. |
![]() | RootChanged | Provides notification that the root Visual has changed. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | VerifyAccess | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
- UIPermission
to derive from this class. Associated enumeration: PermissionState::Unrestricted.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
