Class Setter
Applies a value to a property in a Style.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public sealed class Setter : SetterBase
Constructors
| Improve this Doc View SourceSetter()
Initializes a new instance of the Setter class with no initial Property or Value.
Declaration
public Setter()
Setter(DependencyProperty, Object)
Initializes a new instance of the Setter class with initial Property and Value information.
Declaration
public Setter(DependencyProperty property, object value)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The dependency property identifier for the property that is being styled. |
System.Object | value | The value to assign to the value when the Setter applies. |
Properties
| Improve this Doc View SourceProperty
Gets or sets the property to apply the Value to. The default is null.
Declaration
public DependencyProperty Property { get; set; }
Property Value
Type | Description |
---|---|
DependencyProperty |
Value
Gets or sets the value to apply to the property that is specified by the Setter.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |