Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Setter Class
Definition
- Namespace:
- Microsoft.Maui.Controls
- Assembly:
- Microsoft.Maui.Controls.dll
- Source:
- Setter.cs
- Source:
- Setter.cs
- Source:
- Setter.cs
- Source:
- Setter.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
