public ReactiveUiLogin() { ViewModel = new EightBot.ReactiveExtensionExamples.ViewModels.Login(); Title = "RxUI - Login"; Content = new StackLayout { Padding = new Thickness(40d), Children = { (emailEntry = new Entry { Placeholder = "Email" }), (passwordEntry = new Entry { Placeholder = "Password", IsPassword = true }), (login = new Button { Text = "Login" }), (loading = new ActivityIndicator { HorizontalOptions = LayoutOptions.Center }), } }; emailEntry.SetDynamicResource(VisualElement.StyleProperty, Values.Styles.ReactiveEntry); passwordEntry.SetDynamicResource(VisualElement.StyleProperty, Values.Styles.ReactiveEntry); login.SetDynamicResource(VisualElement.StyleProperty, Values.Styles.ReactiveButton); loading.SetDynamicResource(VisualElement.StyleProperty, Values.Styles.ReactiveActivityIndicator); }
public ReactiveUiLogin() { ViewModel = new EightBot.ReactiveExtensionExamples.ViewModels.Login(); Title = "RxUI - Login"; Content = new StackLayout { Padding = new Thickness(40d), Children = { (emailEntry = new Entry { Placeholder = "Email" }), (passwordEntry = new Entry { Placeholder = "Password", IsPassword = true }), (login = new Button { Text = "Login" }), (loading = new ActivityIndicator { Color = Color.Blue, HorizontalOptions = LayoutOptions.Center }), } }; }