AvaloniaObjectSetCurrentValueT(StyledPropertyT, T) Method
Sets the value of a dependency property without changing its value source.
Namespace: AvaloniaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public void SetCurrentValue<T>(
StyledProperty<T> property,
T value
)
Public Sub SetCurrentValue(Of T) (
property As StyledProperty(Of T),
value As T
)
member SetCurrentValue :
property : StyledProperty<'T> *
value : 'T -> unit
- property StyledPropertyT
- The property.
- value T
- The value.
- T
- The type of the property.
This method is used by a component that programmatically sets the value of one of its
own properties without disabling an application's declared use of the property. The
method changes the effective value of the property, but existing data bindings and
styles will continue to work.
The new value will have the property's current
BindingPriority, even if
that priority is
Unset or
Inherited.