AvaloniaObjectSetCurrentValue(AvaloniaProperty, Object) 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(
AvaloniaProperty property,
Object? value
)
Public Sub SetCurrentValue (
property As AvaloniaProperty,
value As Object
)
member SetCurrentValue :
property : AvaloniaProperty *
value : Object -> unit
Parameters
- property AvaloniaProperty
- The property.
- value Object
- The value.
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.