コード例 #1
0
 public LoginViewFormInCS()
 {
     BindingContext = new LoginViewModel();
     Entry myEntry = new Entry ();
     Button myButton = new Button ();
     myButton.SetBinding (Button.CommandProperty, new Binding ("LoginCommand", 0));
     Content = new StackLayout {
         Children = {
             new StackLayout()
             {
                 Children=
                 {
                     myEntry,
                     myButton
                 }
             }
         }
     };
 }
コード例 #2
0
 public LoginViewPage()
 {
     InitializeComponent ();
     BindingContext = new LoginViewModel();
 }