Explorar el Código

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

BDisp hace 3 meses
padre
commit
76b7e52e12
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Examples/ReactiveExample/LoginView.cs

+ 1 - 1
Examples/ReactiveExample/LoginView.cs

@@ -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) =>