UIElement3DAutomationPeer 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 UIElement3D 類型公開至 UI 自動化。
public ref class UIElement3DAutomationPeer : System::Windows::Automation::Peers::AutomationPeer
public class UIElement3DAutomationPeer : System.Windows.Automation.Peers.AutomationPeer
type UIElement3DAutomationPeer = class
inherit AutomationPeer
Public Class UIElement3DAutomationPeer
Inherits AutomationPeer
- 繼承
備註
根據預設,繼承自 UIElement3D 的任何類別都會使用 UIElement3DAutomationPeer 與 UI 自動化通訊。
如果您建立繼承自 UIElement3D 的類別,您可能會想要提供自動化對等來支援類別的功能。 GetClassNameCore覆寫 方法以傳回字串,此字串表示與 UIElement3DAutomationPeer 相關聯的專案類型。 例如,如果您建立名為 My3DElement
的類別和名為 My3DElementAutomationPeer
的自動化對等,請覆寫 GetClassNameCore 方法以傳回字串 「My3DElement」。
如果您的類別符合其中一個已知的控制項類型,請覆寫 GetAutomationControlTypeCore 方法以傳回該 ControlType 。 請注意,雖然現有的 ControlType 值通常與 2D 控制項相關聯,但 ControlType 表示控制項的功能,而不是其外觀。 因此,如果您在 UIElement3D 使用者按一下動作時叫用動作,您可能想要 GetHelpTextCore 傳回 ControlType.Button 。
自訂 UIElement3D 的行為會決定您應該覆寫的其他方法。 中的每個 UIElement3DAutomationPeer 方法主題描述如何使用 方法,以及何時適合覆寫方法。
UIElement3DAutomationPeer.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性。
建構函式
UIElement3DAutomationPeer(UIElement3D) |
初始化 UIElement3DAutomationPeer 類別的新執行個體。 |
屬性
Dispatcher |
取得與這個 Dispatcher 關聯的 DispatcherObject。 (繼承來源 DispatcherObject) |
EventsSource |
取得或設定 AutomationPeer,其報告至自動化用戶端,作為所有來自此 AutomationPeer 的事件來源。 (繼承來源 AutomationPeer) |
IsHwndHost |
取得值,這個值表示與 WPF Windows Presentation Foundation (WPF) 中與此 AutomationPeer 主機 |
Owner |
取得與 UIElement3DAutomationPeer 相關聯的 UIElement3D。 |
方法
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應