Fixes #4143. ReactiveExample throw System.NotSupportedException: 'Index expressions are only supported with constants.' (#4144)

This commit is contained in:
BDisp
2025-06-11 13:44:08 +01:00
committed by GitHub
parent d3f4c42785
commit 76b7e52e12

View File

@@ -100,7 +100,7 @@ public class LoginView : Window, IViewFor<LoginViewModel>
ViewModel
.WhenAnyValue (x => x.IsValid)
.Select (valid => valid ? SchemeManager.GetScheme ("Base") : SchemeManager.GetScheme ("Error"))
.BindTo (validation, x => x.GetScheme ())
.Subscribe (scheme => validation.SetScheme (scheme))
.DisposeWith (_disposable);
})
.AddControlAfter<Button> ((previous, login) =>