Код: Выделить всё
class ViewModel : IActivatableViewModel
{
public ViewModel(){
this.WhenActivated(disposables => {
_myProperty = observable.ToProperty(this, nameof(MyProperty)).DisposeWith(disposables).
});
}
private ObservableAsPropertyHelper _myProperty = null!;
public object MyProperty => _myProperty.Value;
}
Я не вижу легкого обхода, требующего большого количества Взлом, вручную повышение свойств и т. Д. Когда в Авалонии?
Подробнее здесь: https://stackoverflow.com/questions/651 ... n-avalonia