Show / Hide Table of Contents

Class Setter

Applies a value to a property in a Style.

Inheritance
System.Object
DependencyObject
SetterBase
Setter
Implements
System.ComponentModel.ISupportInitialize
Inherited Members
SetterBase.IsSealed
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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 Source

Setter()

Initializes a new instance of the Setter class.

Declaration
public Setter()
| Improve this Doc View Source

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 Source

Property

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.

| Improve this Doc View Source

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 Source

ISupportInitialize.BeginInit()

Declaration
void ISupportInitialize.BeginInit()
| Improve this Doc View Source

ISupportInitialize.EndInit()

Declaration
void ISupportInitialize.EndInit()

Implements

System.ComponentModel.ISupportInitialize

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source