public HomeView() { InitializeComponent(); var service = new MicrosoftAuthService(); var viewModel = new HomeViewModel(service); viewModel.Initialize(); BindingContext = viewModel; }
public AboutViewModel() { Title = "About"; SignInCommand = new Command(async() => { var auth = new MicrosoftAuthService(); await auth.SignInAsync(); }); SignOutCommand = new Command(async() => { var auth = new MicrosoftAuthService(); await auth.SignOutAsync(); }); }