using System; using System.Collections.Generic; using Bit.App.Abstractions; using Bit.App.Resources; using Xamarin.Forms; using XLabs.Ioc; namespace Bit.App.Pages { public class SettingsPage : ContentPage { private ListView _listView = new ListView(); public SettingsPage() { var authService = Resolver.Resolve(); var logoutButton = new Button { Text = AppResources.LogOut, Command = new Command(() => { authService.LogOut(); Application.Current.MainPage = new LoginNavigationPage(); }) }; var stackLayout = new StackLayout { }; stackLayout.Children.Add(logoutButton); Title = AppResources.Settings; Content = stackLayout; } } }