public HomeView()
        {
            InitializeComponent();

            var service   = new MicrosoftAuthService();
            var viewModel = new HomeViewModel(service);

            viewModel.Initialize();

            BindingContext = viewModel;
        }
Beispiel #2
0
        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();
            });
        }