PresentationSource PresentationSource PresentationSource PresentationSource Class

Definition

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.

public ref class PresentationSource abstract : System::Windows::Threading::DispatcherObject
public abstract class PresentationSource : System.Windows.Threading.DispatcherObject
type PresentationSource = class
    inherit DispatcherObject
Public MustInherit Class PresentationSource
Inherits DispatcherObject
Inheritance
PresentationSourcePresentationSourcePresentationSourcePresentationSource
Derived

Constructors

PresentationSource() PresentationSource() PresentationSource() PresentationSource()

Provides initialization for base class values when called by the constructor of a derived class.

Properties

CompositionTarget CompositionTarget CompositionTarget CompositionTarget

Gets the visual target for the visuals being presented in the source.

CurrentSources CurrentSources CurrentSources CurrentSources

Returns a list of sources.

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
IsDisposed IsDisposed IsDisposed IsDisposed

When overridden in a derived class, gets a value that declares whether the object is disposed.

RootVisual RootVisual RootVisual RootVisual

When overridden in a derived class, gets or sets the root visual being presented in the source.

Methods

AddSource() AddSource() AddSource() AddSource()

Adds a PresentationSource derived class instance to the list of known presentation sources.

AddSourceChangedHandler(IInputElement, SourceChangedEventHandler) AddSourceChangedHandler(IInputElement, SourceChangedEventHandler) AddSourceChangedHandler(IInputElement, SourceChangedEventHandler) AddSourceChangedHandler(IInputElement, SourceChangedEventHandler)

Adds a handler for the SourceChanged event to the provided element.

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
ClearContentRenderedListeners() ClearContentRenderedListeners() ClearContentRenderedListeners() ClearContentRenderedListeners()

Sets the list of listeners for the ContentRendered event to null.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromDependencyObject(DependencyObject) FromDependencyObject(DependencyObject) FromDependencyObject(DependencyObject) FromDependencyObject(DependencyObject)

Returns the source in which a provided DependencyObject is presented.

FromVisual(Visual) FromVisual(Visual) FromVisual(Visual) FromVisual(Visual)

Returns the source in which a provided Visual is presented.

GetCompositionTargetCore() GetCompositionTargetCore() GetCompositionTargetCore() GetCompositionTargetCore()

When overridden in a derived class, returns a visual target for the given source.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveSource() RemoveSource() RemoveSource() RemoveSource()

Removes a PresentationSource derived class instance from the list of known presentation sources.

RemoveSourceChangedHandler(IInputElement, SourceChangedEventHandler) RemoveSourceChangedHandler(IInputElement, SourceChangedEventHandler) RemoveSourceChangedHandler(IInputElement, SourceChangedEventHandler) RemoveSourceChangedHandler(IInputElement, SourceChangedEventHandler)

Removes a handler for the SourceChanged event from the provided element.

RootChanged(Visual, Visual) RootChanged(Visual, Visual) RootChanged(Visual, Visual) RootChanged(Visual, Visual)

Provides notification that the root Visual has changed.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Events

ContentRendered ContentRendered ContentRendered ContentRendered

Occurs when content is rendered and ready for user interaction.

Security

UIPermission
to derive from this class. Associated enumeration: Unrestricted.

Applies to

See Also