i have this code, but when i run, i throw an exception. I try to read document but i'm not Know, where am i Wrong?
public bool IsCanvasMouseOn
{
get => this._isCanvasMouseOn;
set => this.RaiseAndSetIfChanged(ref _isCanvasMouseOn, value);
}
public Visibility DynamicInputVisibility => this._dynamicInputVisibility.Value;
this.WhenAnyValue(x => x.IsCanvasMouseOn)
.Select(visibility => visibility ? Visibility.Visible : Visibility.Collapsed)
.StartWith(Visibility.Collapsed)
.DistinctUntilChanged()
.ToProperty(this, x=>DynamicInputVisibility,out _dynamicInputVisibility);
System.ArgumentException: 'Property expression must be of the form 'x => x.SomeProperty''