Class Setter
Applies a value to a property in a Style.
Implements
System.ComponentModel.ISupportInitialize
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, IDependencyObject, ISupportInitialize
Constructors
| Improve this Doc View SourceSetter()
Initializes a new instance of the Setter class.
Declaration
public Setter()
Setter(DependencyProperty, Object)
Initializes a new instance of the Setter class with the specified property and value.
Declaration
public Setter(DependencyProperty property, object value)
Parameters
Type | Name | Description |
---|---|---|
DependencyProperty | property | The dependency property to apply the value to. |
System.Object | value | The value to apply to the property. |
Properties
| Improve this Doc View SourceProperty
Gets or sets the property to apply the Value to.
Declaration
[TypeConverter(typeof(DependencyPropertyConverter))]
public DependencyProperty Property { get; set; }
Property Value
Type | Description |
---|---|
DependencyProperty | A DependencyProperty to which the Value will be applied. The default is null. |
Value
Gets or sets the value to apply to the property that is specified by the Setter.
Declaration
[TypeConverter(typeof(SetterValueConverter))]
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The value to apply to the property that is specified by the Setter. |
Explicit Interface Implementations
| Improve this Doc View SourceISupportInitialize.BeginInit()
Declaration
void ISupportInitialize.BeginInit()
ISupportInitialize.EndInit()
Declaration
void ISupportInitialize.EndInit()
Implements
System.ComponentModel.ISupportInitialize