mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes #4143. ReactiveExample throw System.NotSupportedException: 'Index expressions are only supported with constants.' (#4144)
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user