RadialControllerMenuItem クラス
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
RadialController メニューから 1 つのカスタム ツールを表します。
public ref class RadialControllerMenuItem sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RadialControllerMenuItem final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RadialControllerMenuItem
Public NotInheritable Class RadialControllerMenuItem
- 継承
- 属性
デバイス ファミリ |
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
|
API contract |
Windows.Foundation.UniversalApiContract (v3.0 で導入)
|
この例では、標準アイコンを含むカスタム ツール (Sample
) を [Surface Dial] メニューに追加します。
- まず、CreateForCurrentView を呼び出して、Surface Dial (
myController
) の RadialController オブジェクトへの参照を取得します。 - 次に、RadialControllerMenuItem.CreateFromIcon を呼び出して RadialControllerMenuItem (
myItem
) のインスタンスを作成します。 - 最後に、その項目をメニュー項目のコレクションに追加します。
public sealed partial class MainPage : Page
{
RadialController myController;
public MainPage()
{
this.InitializeComponent();
// Create a reference to the RadialController.
myController = RadialController.CreateForCurrentView();
// Create an icon for the custom tool.
RandomAccessStreamReference icon =
RandomAccessStreamReference.CreateFromUri(
new Uri("ms-appx:///Assets/StoreLogo.png"));
// Create a menu item for the custom tool.
RadialControllerMenuItem myItem =
RadialControllerMenuItem.CreateFromIcon("Sample", icon);
// Add the custom tool to the RadialController menu.
myController.Menu.Items.Add(myItem);
// Declare input handlers for the RadialController.
myController.ButtonClicked += MyController_ButtonClicked;
myController.RotationChanged += MyController_RotationChanged;
}
}
Windows のバージョン | SDK バージョン | 追加された値 |
---|---|---|
1703 | 15063 | CreateFromFontGlyph(String,String,String) |
1703 | 15063 | CreateFromFontGlyph(String,String,String,Uri) |
Display |
RadialController メニューのカスタム ツールのテキスト文字列を取得します。 |
Tag |
RadialController メニューのカスタム ツールを識別するために使用するオブジェクトを取得または設定します。 |
Create |
RadialController メニューで (指定したテキスト文字列とフォント グリフを使用して) カスタム ツールを作成します。 |
Create |
RadialController メニューで (指定したテキスト文字列とフォント グリフを使用して) カスタム ツールを作成します。 |
Create |
RadialController メニューで(指定したテキスト文字列とカスタム アイコンを使用して) カスタム ツールを作成します。 |
Create |
RadialController メニューのカスタム ツール (指定したテキスト文字列とシステム アイコンを使用) を作成します。 |
Invoked |
RadialController メニューからカスタム ツールが選択されている場合に発生します。 |
製品 | バージョン |
---|---|
WinRT | Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |