DynamicResourceExtension.ResourceKey 屬性

定義

取得或設定由此動態資源參考指定的金鑰。 此金鑰用於透過中介式在資源字典中查找資源。

public:
 property System::Object ^ ResourceKey { System::Object ^ get(); void set(System::Object ^ value); };
public object ResourceKey { get; set; }
member this.ResourceKey : obj with get, set
Public Property ResourceKey As Object

屬性值

這個動態資源參考所指定的資源金鑰。

備註

金鑰並非強型別,通常以字串、a Type、 或衍生 ResourceKey 類別的形式提供。

XAML 文字使用

關於 XAML 的資訊,請參見 動態資源標記擴充(DynamicResource Markup Extension)。

適用於