예제 #1
0
        public LoginView()
        {
            InitializeComponent();

            viewModel = new LoginViewModel(this);

            ToolbarItems.Add(new ToolbarItem
                {
                    StyleId="Settings",
                    Icon = "ic_action_settings.png",
                    Text = "Settings",
                    Order = ToolbarItemOrder.Primary,
                    Command = viewModel.GoToAboutCommand
                });

            ToolbarItems.Add(new ToolbarItem
                {
                    Icon = "ic_action_navigation_arrow_forward.png",
                    Text = "Already Logged In",
                    Order = ToolbarItemOrder.Primary,
                    Command = viewModel.RefreshLoginCommand
                });
        }
예제 #2
0
 public LoginPage(LoginViewModel viewModel)
 {
     ViewModel = viewModel;
 }