次の方法で共有


StaticResourceExtension クラス

定義

ResourceDictionaryからリソースを解決する XAML マークアップ拡張機能を提供します。

public ref class StaticResourceExtension sealed : Microsoft::Maui::Controls::Xaml::IMarkupExtension
[Microsoft.Maui.Controls.ContentProperty("Key")]
[Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider), typeof(Microsoft.Maui.Controls.Xaml.IProvideParentValues), typeof(Microsoft.Maui.Controls.Xaml.IRootObjectProvider) })]
public sealed class StaticResourceExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension
[Microsoft.Maui.Controls.ContentProperty("Key")]
public sealed class StaticResourceExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension
[Microsoft.Maui.Controls.ContentProperty("Key")]
[Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider), typeof(Microsoft.Maui.Controls.Xaml.IProvideParentValues) })]
public sealed class StaticResourceExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Key")>]
[<Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider), typeof(Microsoft.Maui.Controls.Xaml.IProvideParentValues), typeof(Microsoft.Maui.Controls.Xaml.IRootObjectProvider) })>]
type StaticResourceExtension = class
    interface IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Key")>]
type StaticResourceExtension = class
    interface IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Key")>]
[<Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider), typeof(Microsoft.Maui.Controls.Xaml.IProvideParentValues) })>]
type StaticResourceExtension = class
    interface IMarkupExtension
Public NotInheritable Class StaticResourceExtension
Implements IMarkupExtension
継承
StaticResourceExtension
属性
実装

コンストラクター

名前 説明
StaticResourceExtension()

ResourceDictionaryからリソースを解決する XAML マークアップ拡張機能を提供します。

プロパティ

名前 説明
Key

取得するリソースのキーを取得または設定します。

メソッド

名前 説明
ProvideValue(IServiceProvider)

ResourceDictionaryからリソースを解決する XAML マークアップ拡張機能を提供します。

適用対象