VirtualSurfaceImageSource 類別

定義

擴充 SurfaceImageSource ,以支援內容可能大於畫面上可容納的內容,且內容必須虛擬化才能以最佳方式呈現的情況。

public ref class VirtualSurfaceImageSource sealed : SurfaceImageSource
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.Media.Imaging.IVirtualSurfaceImageSourceFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class VirtualSurfaceImageSource final : SurfaceImageSource
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.Media.Imaging.IVirtualSurfaceImageSourceFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VirtualSurfaceImageSource final : SurfaceImageSource
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.Media.Imaging.IVirtualSurfaceImageSourceFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class VirtualSurfaceImageSource : SurfaceImageSource
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.Media.Imaging.IVirtualSurfaceImageSourceFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VirtualSurfaceImageSource : SurfaceImageSource
Public NotInheritable Class VirtualSurfaceImageSource
Inherits SurfaceImageSource
繼承
Object Platform::Object IInspectable DependencyObject ImageSource SurfaceImageSource VirtualSurfaceImageSource
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

此類別具有額外的 API,但這些 API 適用于 Microsoft DirectX 交互操作,但不屬於本檔中所述的一般應用程式程式設計模型。 例如,從 Microsoft DirectX 端,您可以呼叫 BeginDraw。 如需如何繪製至 VirtualSurfaceImageSource 的詳細資訊,包括範例程式碼,請參閱 DirectX 和 XAML Interop

建構函式

VirtualSurfaceImageSource(Int32, Int32)

初始化 VirtualSurfaceImageSource 類別的新實例,並指定繪圖區域的大小。

VirtualSurfaceImageSource(Int32, Int32, Boolean)

初始化 VirtualSurfaceImageSource 類別的新實例,並指定繪圖區域的大小,以及是否要使用 Alpha 透明度轉譯的喜好設定。

屬性

Dispatcher

取得與此物件相關聯的 CoreDispatcherCoreDispatcher代表可以存取 UI 執行緒上DependencyObject的功能,即使程式碼是由非 UI 執行緒起始也一樣。

(繼承來源 DependencyObject)

方法

ClearValue(DependencyProperty)

清除相依性屬性的本機值。

(繼承來源 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

傳回針對相依性屬性所建立的任何基底值,如果動畫未使用中,則會套用。

(繼承來源 DependencyObject)
GetValue(DependencyProperty)

DependencyObject傳回相依性屬性的目前有效值。

(繼承來源 DependencyObject)
ReadLocalValue(DependencyProperty)

如果已設定本機值,則傳回相依性屬性的本機值。

(繼承來源 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

註冊通知函式,以接聽此DependencyObject實例上特定DependencyProperty的變更。

(繼承來源 DependencyObject)
SetValue(DependencyProperty, Object)

DependencyObject上設定相依性屬性的本機值。

(繼承來源 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消先前透過呼叫 RegisterPropertyChangedCallback註冊的變更通知。

(繼承來源 DependencyObject)

適用於

另請參閱