Share via


Setter Class

Definition

Sets a property value within a Style or TriggerBase.

public ref class Setter sealed : Microsoft::Maui::Controls::Xaml::IValueProvider
[Microsoft.Maui.Controls.ContentProperty("Value")]
[Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IValueConverterProvider), typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider) })]
public sealed class Setter : Microsoft.Maui.Controls.Xaml.IValueProvider
[Microsoft.Maui.Controls.ContentProperty("Value")]
public sealed class Setter : Microsoft.Maui.Controls.Xaml.IValueProvider
[<Microsoft.Maui.Controls.ContentProperty("Value")>]
[<Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IValueConverterProvider), typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider) })>]
type Setter = class
    interface IValueProvider
[<Microsoft.Maui.Controls.ContentProperty("Value")>]
type Setter = class
    interface IValueProvider
Public NotInheritable Class Setter
Implements IValueProvider
Inheritance
Setter
Attributes
Implements

Remarks

Setters are used with triggers and styles.

Constructors

Name Description
Setter()

Properties

Name Description
Property

Gets or sets the BindableProperty to set.

TargetName

Gets or sets the name of the element to which the setter applies.

Value

Gets or sets the value to apply to the property.

Explicit Interface Implementations

Name Description
IValueProvider.ProvideValue(IServiceProvider)

Applies to