Example #1
0
        public MyEntry()
        {
            InitializeComponent();

            this.BindingContextChanged += (s, e) =>
            {
                _MyEntryViewModel = BindingContext as MyEntryViewModel;
            };
        }
Example #2
0
        public MainPage()
        {
            InitializeComponent();

            Account = new MyEntryViewModel()
            {
                Title     = "帳號",
                EntryHint = "請輸入電子郵件帳號",
                Input     = "",
                ShowTitle = false
            };

            Password = new MyEntryViewModel()
            {
                Title     = "密碼",
                EntryHint = "請輸入登入使用的密碼",
                Input     = "",
                ShowTitle = false
            };

            BindingContext = this;
        }