語言

DesktopSiteBridge 類別

定義

一個為 Win32 硬體系統實作 IContentSiteBridge 的抽象類別。

[WebHostHidden]
public ref class DesktopSiteBridge : IContentSiteBridge, IClosableNotifier, IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[WebHostHidden]
class DesktopSiteBridge : IContentSiteBridge, IClosableNotifier, IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class DesktopSiteBridge : IContentSiteBridge, IClosableNotifier, System.IDisposable
Public Class DesktopSiteBridge
Implements IClosableNotifier, IContentSiteBridge, IDisposable
繼承
Object Platform::Object IInspectable DesktopSiteBridge
衍生
屬性
實作

備註

此類別支援特定類型的 HWND 衍生類別。

屬性

名稱 Description
DispatcherQueue

取得相關 Win32 HWND 的 DispatcherQueue 。

IsClosed

會判斷相關的 Win32 硬體是否已關閉。

IsEnabled

會判斷相關的 Win32 硬體設備是否被啟用。

IsVisible

判斷相關的 Win32 HWND 是否可見。

LayoutDirectionOverride

取得或設定由相關 Win32 HWND 擁有的 ContentSite 所使用的閱讀順序與文字對齊的版面方向。

OverrideScale

取得或設定由相關 Win32 硬體擁有的 ContentSite 所使用的縮放因子。

WindowId

取得對應 Win32 HWND 的 WindowId 。

方法

名稱 Description
Close()

關閉相關的 Win32 HWND。

Connect(ContentIsland)

將 ContentIsland 連接到 DesktopSiteBridge。

Disable()

停用相關的 Win32 HWND。

Dispose()

執行與釋放、釋放或重設非受控資源相關聯的應用程式定義工作。

Enable()

啟用相關的 Win32 硬體環境。

Hide()

它會隱藏相關的 Win32 硬體和它擁有的任何彈出視窗。

IsSupported()

查詢目前環境中是否支援 DesktopSiteBridge 。

MoveAndResize(RectInt32)

將相關的 Win32 HWND 移至指定位置,並設定為指定大小。

MoveInZOrderAtBottom()

將對應的 Win32 HWND 移至 Z 順序的底部。

MoveInZOrderAtTop()

將相關的 Win32 HWND 移至 Z 順序頂端。

MoveInZOrderBelow(WindowId)

將相關的 Win32 硬體遷移到指定的 Microsoft 後方。UI。WindowID。

Show()

顯示對應的 Win32 硬體和它擁有的任何彈出視窗。

TryCreatePopupSiteBridge()

一個為 Win32 硬體系統實作 IContentSiteBridge 的抽象類別。

事件

名稱 Description
Closed

當相關的 Win32 硬體關閉時會發生。

FrameworkClosed

當框架關閉時會發生。

適用於