Expander.TemplateSettings 屬性

定義

取得 對象,這個物件提供計算值,可在定義 Expander 的範本時參考為 TemplatedParent 來源。

public:
 property ExpanderTemplateSettings ^ TemplateSettings { ExpanderTemplateSettings ^ get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField]
ExpanderTemplateSettings TemplateSettings();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField]
public ExpanderTemplateSettings TemplateSettings { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField] get; }
var expanderTemplateSettings = expander.templateSettings;
Public ReadOnly Property TemplateSettings As ExpanderTemplateSettings

屬性值

ExpanderTemplateSettings 的執行個體。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyFieldAttribute

範例

提示

如需詳細資訊、設計指引和程式碼範例,請參閱 Expander

WinUI 3 資源庫應用程式包含大部分 WinUI 3 控制件、特性和功能的互動式範例。 從 Microsoft Store 取得應用程式,或在 GitHub 上取得原始程式碼。

適用於