Skip to content

Commit 76b7e52

Browse files
authored
Fixes #4143. ReactiveExample throw System.NotSupportedException: 'Index expressions are only supported with constants.' (#4144)
1 parent d3f4c42 commit 76b7e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/ReactiveExample/LoginView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public LoginView (LoginViewModel viewModel)
100100
ViewModel
101101
.WhenAnyValue (x => x.IsValid)
102102
.Select (valid => valid ? SchemeManager.GetScheme ("Base") : SchemeManager.GetScheme ("Error"))
103-
.BindTo (validation, x => x.GetScheme ())
103+
.Subscribe (scheme => validation.SetScheme (scheme))
104104
.DisposeWith (_disposable);
105105
})
106106
.AddControlAfter<Button> ((previous, login) =>

0 commit comments

Comments
 (0)