Share via


BindingExtension Class

Definition

Provides a XAML markup extension that creates a Binding from a XAML attribute value.

public ref class BindingExtension sealed : Microsoft::Maui::Controls::Xaml::IMarkupExtension<Microsoft::Maui::Controls::BindingBase ^>
[Microsoft.Maui.Controls.ContentProperty("Path")]
[Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXamlTypeResolver), typeof(Microsoft.Maui.Controls.Xaml.IXamlDataTypeProvider) })]
public sealed class BindingExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension<Microsoft.Maui.Controls.BindingBase>
[Microsoft.Maui.Controls.ContentProperty("Path")]
[Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider]
public sealed class BindingExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension<Microsoft.Maui.Controls.BindingBase>
[<Microsoft.Maui.Controls.ContentProperty("Path")>]
[<Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IXamlTypeResolver), typeof(Microsoft.Maui.Controls.Xaml.IXamlDataTypeProvider) })>]
type BindingExtension = class
    interface IMarkupExtension<BindingBase>
    interface IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Path")>]
[<Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider>]
type BindingExtension = class
    interface IMarkupExtension<BindingBase>
    interface IMarkupExtension
Public NotInheritable Class BindingExtension
Implements IMarkupExtension(Of BindingBase)
Inheritance
BindingExtension
Attributes
Implements

Constructors

Name Description
BindingExtension()

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.

FallbackValue

Gets or sets the value to use when the binding cannot return a value.

Mode

Gets or sets the binding mode.

Path

Gets or sets the path to the binding source property.

Source

Gets or sets the source object for the binding.

StringFormat

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

TargetNullValue

Gets or sets the value to use when the target property value is null.

TypedBinding

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

UpdateSourceEventName

Gets or sets the name of the event that triggers the source update in TwoWay bindings.

Explicit Interface Implementations

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

Applies to