Sets an Avalonia property value using SetCurrentValue to preserve bindings.
public AvaloniaElement SetProperty(string propertyName, object? value)
The property name.
The value to set.
Uses SetCurrentValue for Avalonia properties to preserve any data bindings. For CLR properties, uses reflection which may break bindings.