XamlBindingHelper 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供資料系結的協助程式方法。
public ref class XamlBindingHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class XamlBindingHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class XamlBindingHelper
Public NotInheritable Class XamlBindingHelper
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
備註
這個類別可用於 XAML 編譯器所產生的程式碼中。
XAML 附加屬性
XamlBindingHelper 是 XAML 附加屬性的主機服務類別。 這些附加屬性可讓子項目報告它們應該如何放置在其 Grid 父系中。
為了支援 XAML 處理器對附加屬性的存取,以及公開對等 的 get 和 set 作業給程式碼,每個 XAML 附加屬性都有一對 Get 和 Set 存取子方法。 在程式碼中取得或設定值的另一種方式是使用相依性屬性系統,呼叫 GetValue 或 SetValue 並將識別碼欄位傳遞為相依性屬性識別碼。
附加屬性 | 描述 |
---|---|
DataTemplateComponent | 取得或設定資料範本元件。 |
屬性
DataTemplateComponentProperty |
識別 DataTemplateComponent 附加屬性。 |
附加屬性
DataTemplateComponent |
取得或設定資料範本元件。 |
方法
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應