Share via


TemplateBindingExtension Class

Definition

Provides a XAML markup extension that creates a binding to the templated parent.

public ref class TemplateBindingExtension sealed : Microsoft::Maui::Controls::Xaml::IMarkupExtension<Microsoft::Maui::Controls::BindingBase ^>
[Microsoft.Maui.Controls.ContentProperty("Path")]
[Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider]
public sealed class TemplateBindingExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension<Microsoft.Maui.Controls.BindingBase>
[<Microsoft.Maui.Controls.ContentProperty("Path")>]
[<Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider>]
type TemplateBindingExtension = class
    interface IMarkupExtension<BindingBase>
    interface IMarkupExtension
Public NotInheritable Class TemplateBindingExtension
Implements IMarkupExtension(Of BindingBase)
Inheritance
TemplateBindingExtension
Attributes
Implements

Constructors

Name Description
TemplateBindingExtension()

Initializes a new instance of the TemplateBindingExtension class.

Properties

Name Description
Converter

Gets or sets the converter to use when converting between source and target values.

ConverterParameter

Gets or sets a parameter to pass to the converter.

Mode

Gets or sets the binding mode.

Path

Gets or sets the path to the binding source property on the templated parent.

StringFormat

Gets or sets a format string to use when converting the bound value to a string.

TypedBinding

For internal use only. This API can be changed or removed without notice at any time.

Explicit Interface Implementations

Name Description
IMarkupExtension.ProvideValue(IServiceProvider)
IMarkupExtension<BindingBase>.ProvideValue(IServiceProvider)

Applies to