Share via


Expander.TemplateSettings Property

Definition

Gets an object that provides calculated values that can be referenced as TemplatedParent sources when defining templates for an Expander.

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

Property Value

An instance of ExpanderTemplateSettings.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyFieldAttribute

Examples

Tip

For more info, design guidance, and code examples, see Expander.

The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub.

Applies to