PresentationSource 類別

定義

提供抽象基底類別,以顯示互通案例中其他技術的內容。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
繼承
PresentationSource
衍生

建構函式

PresentationSource()

在透過衍生類別的建構函式呼叫時,提供基本類別值的初始設定。Provides initialization for base class values when called by the constructor of a derived class.

屬性

CompositionTarget

取得來源中顯示視覺的視覺目標。Gets the visual target for the visuals being presented in the source.

CurrentSources

傳回來源清單。Returns a list of sources.

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(繼承來源 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.

方法

AddSource()

新增 PresentationSource 衍生類別執行個體至已知展示來源的清單。Adds a PresentationSource derived class instance to the list of known presentation sources.

AddSourceChangedHandler(IInputElement, SourceChangedEventHandler)

新增 SourceChanged 事件的處理常式至提供的項目中。Adds a handler for the SourceChanged event to the provided element.

CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)
ClearContentRenderedListeners()

ContentRendered 事件的接聽程式清單設定為 nullSets the list of listeners for the ContentRendered event to null.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
FromDependencyObject(DependencyObject)

傳回會顯示所提供 DependencyObject 的資源。Returns the source in which a provided DependencyObject is presented.

FromVisual(Visual)

傳回會顯示所提供 Visual 的資源。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 the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
RemoveSource()

PresentationSource 衍生類別執行個體從已知展示來源的清單中移除。Removes a PresentationSource derived class instance from the list of known presentation sources.

RemoveSourceChangedHandler(IInputElement, SourceChangedEventHandler)

SourceChanged 事件的處理常式從提供的項目中移除。Removes a handler for the SourceChanged event from the provided element.

RootChanged(Visual, Visual)

提供告知,指出根 Visual 已變更。Provides notification that the root Visual has changed.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)

事件

ContentRendered

內容已呈現且可以進行使用者互動時發生。Occurs when content is rendered and ready for user interaction.

適用於

另請參閱