MenuBarItemAutomationPeer クラス

定義

MenuBarItem 型を Microsoft UI オートメーション に公開します。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

/// [Microsoft.UI.Xaml.MUXContractProperty(version=7)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class MenuBarItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, IInvokeProvider
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=7)]
class MenuBarItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, IInvokeProvider
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class MenuBarItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, IInvokeProvider
[Microsoft.UI.Xaml.MUXContractProperty(version=7)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public class MenuBarItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, IInvokeProvider
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=7)]
public class MenuBarItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, IInvokeProvider
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public class MenuBarItemAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider, IInvokeProvider
Public Class MenuBarItemAutomationPeer
Inherits FrameworkElementAutomationPeer
Implements IExpandCollapseProvider, IInvokeProvider
継承
MenuBarItemAutomationPeer
属性
Microsoft.UI.Xaml.MUXContractPropertyAttribute MarshalingBehaviorAttribute ThreadingAttribute VersionAttribute Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute ContractVersionAttribute
実装

ヒント

WinUI 3 ギャラリー アプリと WinUI 2 ギャラリー アプリには、ほとんどの WinUI 3 および WinUI 2 コントロールと機能の対話型の例が含まれています。

既にインストールされている場合は、WinUI 3 ギャラリーまたは WinUI 2 ギャラリーのリンクをクリックして開きます。

インストールされていない場合は、Microsoft Store から WinUI 3 ギャラリーWinUI 2 ギャラリーをダウンロードできます。

GitHub から両方のソース コードを取得することもできます (WinUI 3 の場合は main ブランチ、WinUI 2 の場合は winui2 ブランチを使用します)。

コンストラクター

MenuBarItemAutomationPeer(MenuBarItem)

MenuBarItemAutomationPeer クラスの新しいインスタンスを初期化します。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

プロパティ

ExpandCollapseState

MenuBarItem の状態 (展開または折りたたみ) を取得します。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

メソッド

Collapse()

MenuBarItem の子孫であるすべてのノード、コントロール、またはコンテンツを非表示にします。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

Expand()

MenuBarItem のすべての子ノード、コントロール、またはコンテンツを表示します。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

Invoke()

オートメーション ピアに関連付けられている MenuBarItem をクリックする要求を送信します。

このドキュメントは、UWP 用 WinUI 2 に適用されます (Windows アプリ SDKWinUI については、Windows アプリ SDK名前空間を参照してください)。

適用対象

こちらもご覧ください