Example #1
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 2:     // MainPage.xaml line 14
                    this.obj2 = (global::Windows.UI.Xaml.Controls.AppBarButton)target;
                    ((global::Windows.UI.Xaml.Controls.AppBarButton)target).Click += (global::System.Object sender, global::Windows.UI.Xaml.RoutedEventArgs e) =>
                    {
                        this.dataRoot.Exit_ItemClick(sender, e);
                    };
                    break;

                case 4:     // MainPage.xaml line 32
                    this.obj4 = (global::Windows.UI.Xaml.Controls.CalendarDatePicker)target;
                    this.bindingsTracking.RegisterTwoWayListener_4(this.obj4);
                    break;

                case 5:     // MainPage.xaml line 33
                    this.obj5 = (global::Windows.UI.Xaml.Controls.ListView)target;
                    ((global::Windows.UI.Xaml.Controls.ListView)target).ItemClick += (global::System.Object sender, global::Windows.UI.Xaml.Controls.ItemClickEventArgs e) =>
                    {
                        this.dataRoot.ListView_ItemClick(sender, e);
                    };
                    break;

                default:
                    break;
                }
            }
Example #2
0
 public static void Set_Windows_UI_Xaml_Controls_CalendarDatePicker_Date(global::Windows.UI.Xaml.Controls.CalendarDatePicker obj, global::System.Nullable <global::System.DateTimeOffset> value, string targetNullValue)
 {
     if (value == null && targetNullValue != null)
     {
         value = (global::System.Nullable <global::System.DateTimeOffset>)global::Windows.UI.Xaml.Markup.XamlBindingHelper.ConvertValue(typeof(global::System.Nullable <global::System.DateTimeOffset>), targetNullValue);
     }
     obj.Date = value;
 }
Example #3
0
 public void RegisterTwoWayListener_10(global::Windows.UI.Xaml.Controls.CalendarDatePicker sourceObject)
 {
     sourceObject.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.CalendarDatePicker.DateProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_10_Date();
         }
     });
 }
Example #4
0
        public CalendarDatePickerRenderer(
            CalendarDatePicker datePicker)
            : base(datePicker)
        {
            this._datePicker = new XamlCalendarDatePicker()
            {
                DateFormat     = global::Windows.Globalization.DateTimeFormatting.DateTimeFormatter.LongDate.Template,
                FirstDayOfWeek = global::Windows.Globalization.DayOfWeek.Monday,
                IsTabStop      = true,
                FontWeight     = FontWeights.SemiLight,
            };
            this._datePicker.Tapped      += DatePicker_Tapped;
            this._datePicker.DateChanged += DatePicker_DateChanged;

            this.SetNativeElement(this._datePicker);
        }
Example #5
0
        private void DatePicker_DateChanged(
            XamlCalendarDatePicker sender,
            global::Windows.UI.Xaml.Controls.CalendarDatePickerDateChangedEventArgs args)
        {
            if (args.NewDate == null)
            {
                // HACK: Re-select the unselected date, since the control does not have a setting
                // to disable unselecting a date.
                this._datePicker.Date           = args.OldDate;
                this._datePicker.IsCalendarOpen = false;
            }
            else
            {
                ((ICalendarDatePickerDelegate)this.Element).NotifySelectedDateChanged(args.NewDate);
            }

            this._datePicker.Focus(global::Windows.UI.Xaml.FocusState.Pointer);
        }
Example #6
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 2:     // History.xaml line 15
                    this.obj2 = (global::Windows.UI.Xaml.Controls.AppBarButton)target;
                    ((global::Windows.UI.Xaml.Controls.AppBarButton)target).Click += (global::System.Object sender, global::Windows.UI.Xaml.RoutedEventArgs e) =>
                    {
                        this.dataRoot.Back_ItemClick(sender, e);
                    };
                    break;

                case 3:     // History.xaml line 16
                    this.obj3 = (global::Windows.UI.Xaml.Controls.AppBarButton)target;
                    ((global::Windows.UI.Xaml.Controls.AppBarButton)target).Click += (global::System.Object sender, global::Windows.UI.Xaml.RoutedEventArgs e) =>
                    {
                        this.dataRoot.Exit_ItemClick(sender, e);
                    };
                    break;

                case 7:     // History.xaml line 59
                    this.obj7 = (global::WinRTXamlToolkit.Controls.DataVisualization.Charting.LineSeries)target;
                    this.bindingsTracking.RegisterTwoWayListener_7(this.obj7);
                    break;

                case 9:     // History.xaml line 33
                    this.obj9 = (global::Windows.UI.Xaml.Controls.CalendarDatePicker)target;
                    this.bindingsTracking.RegisterTwoWayListener_9(this.obj9);
                    break;

                case 10:     // History.xaml line 34
                    this.obj10 = (global::Windows.UI.Xaml.Controls.CalendarDatePicker)target;
                    this.bindingsTracking.RegisterTwoWayListener_10(this.obj10);
                    break;

                default:
                    break;
                }
            }
Example #7
0
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
            {
                this.Btn_OK = (global::Windows.UI.Xaml.Controls.Button)(target);
                    #line 13 "..\..\..\Schedule_Page.xaml"
                ((global::Windows.UI.Xaml.Controls.Button) this.Btn_OK).Tapped += this.Btn_OK_Tapped;
                    #line default
            }
            break;

            case 2:
            {
                global::Windows.UI.Xaml.Controls.TimePicker element2 = (global::Windows.UI.Xaml.Controls.TimePicker)(target);
                    #line 17 "..\..\..\Schedule_Page.xaml"
                ((global::Windows.UI.Xaml.Controls.TimePicker)element2).TimeChanged += this.TimePicker_TimeChanged;
                    #line default
            }
            break;

            case 3:
            {
                global::Windows.UI.Xaml.Controls.CalendarDatePicker element3 = (global::Windows.UI.Xaml.Controls.CalendarDatePicker)(target);
                    #line 19 "..\..\..\Schedule_Page.xaml"
                ((global::Windows.UI.Xaml.Controls.CalendarDatePicker)element3).DateChanged += this.CalendarDatePicker_DateChanged;
                    #line default
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }
Example #8
0
 public CalendarDatePickerAutomationPeer(global::Windows.UI.Xaml.Controls.CalendarDatePicker owner) : base(owner)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.Automation.Peers.CalendarDatePickerAutomationPeer", "CalendarDatePickerAutomationPeer.CalendarDatePickerAutomationPeer(CalendarDatePicker owner)");
 }
Example #9
0
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 2: // views\dk.xaml line 11
            {
                this.dkdk = (global::Windows.UI.Xaml.Controls.Frame)(target);
            }
            break;

            case 3: // views\dk.xaml line 17
            {
                this.t_email = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 4: // views\dk.xaml line 18
            {
                this.email = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 5: // views\dk.xaml line 19
            {
                this.t_password = (global::Windows.UI.Xaml.Controls.PasswordBox)(target);
            }
            break;

            case 6: // views\dk.xaml line 20
            {
                this.password = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 7: // views\dk.xaml line 35
            {
                this.t_phone = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 8: // views\dk.xaml line 36
            {
                this.phone = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 9: // views\dk.xaml line 37
            {
                this.t_address = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 10: // views\dk.xaml line 38
            {
                this.address = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 11: // views\dk.xaml line 39
            {
                this.t_introduction = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 12: // views\dk.xaml line 40
            {
                this.introduction = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 13: // views\dk.xaml line 55
            {
                global::Windows.UI.Xaml.Controls.CalendarDatePicker element13 = (global::Windows.UI.Xaml.Controls.CalendarDatePicker)(target);
                ((global::Windows.UI.Xaml.Controls.CalendarDatePicker)element13).DateChanged += this.change_time;
            }
            break;

            case 14: // views\dk.xaml line 56
            {
                this.birthday = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 15: // views\dk.xaml line 57
            {
                this.UrlImage = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 16: // views\dk.xaml line 58
            {
                this.avatar = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 17: // views\dk.xaml line 59
            {
                this.ava_pic = (global::Windows.UI.Xaml.Controls.Image)(target);
            }
            break;

            case 18: // views\dk.xaml line 63
            {
                global::Windows.UI.Xaml.Controls.Button element18 = (global::Windows.UI.Xaml.Controls.Button)(target);
                ((global::Windows.UI.Xaml.Controls.Button)element18).Click += this.capture_bth;
            }
            break;

            case 19: // views\dk.xaml line 64
            {
                global::Windows.UI.Xaml.Controls.Button element19 = (global::Windows.UI.Xaml.Controls.Button)(target);
                ((global::Windows.UI.Xaml.Controls.Button)element19).Click += this.regi_bth;
            }
            break;

            case 20: // views\dk.xaml line 51
            {
                global::Windows.UI.Xaml.Controls.RadioButton element20 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
                ((global::Windows.UI.Xaml.Controls.RadioButton)element20).Checked += this.radio_checked;
            }
            break;

            case 21: // views\dk.xaml line 52
            {
                global::Windows.UI.Xaml.Controls.RadioButton element21 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
                ((global::Windows.UI.Xaml.Controls.RadioButton)element21).Checked += this.radio_checked;
            }
            break;

            case 22: // views\dk.xaml line 53
            {
                global::Windows.UI.Xaml.Controls.RadioButton element22 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
                ((global::Windows.UI.Xaml.Controls.RadioButton)element22).Checked += this.radio_checked;
            }
            break;

            case 23: // views\dk.xaml line 30
            {
                this.t_firstname = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 24: // views\dk.xaml line 31
            {
                this.firstName = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            case 25: // views\dk.xaml line 32
            {
                this.t_lastname = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 26: // views\dk.xaml line 33
            {
                this.lastName = (global::Windows.UI.Xaml.Controls.TextBlock)(target);
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }
Example #10
0
        public void Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 2: // Views\RegisterForm.xaml line 150
            {
                global::Windows.UI.Xaml.Controls.Button element2 = (global::Windows.UI.Xaml.Controls.Button)(target);
                ((global::Windows.UI.Xaml.Controls.Button)element2).Click += this.RegisterHandle;
            }
            break;

            case 3: // Views\RegisterForm.xaml line 151
            {
                global::Windows.UI.Xaml.Controls.HyperlinkButton element3 = (global::Windows.UI.Xaml.Controls.HyperlinkButton)(target);
                ((global::Windows.UI.Xaml.Controls.HyperlinkButton)element3).Click += this.ReturnLoginForm;
            }
            break;

            case 4: // Views\RegisterForm.xaml line 145
            {
                this.MyAvatar = (global::Windows.UI.Xaml.Controls.Image)(target);
            }
            break;

            case 5: // Views\RegisterForm.xaml line 147
            {
                global::Windows.UI.Xaml.Controls.Button element5 = (global::Windows.UI.Xaml.Controls.Button)(target);
                ((global::Windows.UI.Xaml.Controls.Button)element5).Click += this.Capture_Photo;
            }
            break;

            case 6: // Views\RegisterForm.xaml line 133
            {
                this.ImageUrl = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 7: // Views\RegisterForm.xaml line 119
            {
                this.password = (global::Windows.UI.Xaml.Controls.PasswordBox)(target);
            }
            break;

            case 8: // Views\RegisterForm.xaml line 107
            {
                this.email = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 9: // Views\RegisterForm.xaml line 95
            {
                global::Windows.UI.Xaml.Controls.CalendarDatePicker element9 = (global::Windows.UI.Xaml.Controls.CalendarDatePicker)(target);
                ((global::Windows.UI.Xaml.Controls.CalendarDatePicker)element9).DateChanged += this.Change_Birthday;
            }
            break;

            case 10: // Views\RegisterForm.xaml line 80
            {
                global::Windows.UI.Xaml.Controls.RadioButton element10 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
                ((global::Windows.UI.Xaml.Controls.RadioButton)element10).Checked += this.Select_Gender;
            }
            break;

            case 11: // Views\RegisterForm.xaml line 81
            {
                global::Windows.UI.Xaml.Controls.RadioButton element11 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
                ((global::Windows.UI.Xaml.Controls.RadioButton)element11).Checked += this.Select_Gender;
            }
            break;

            case 12: // Views\RegisterForm.xaml line 82
            {
                global::Windows.UI.Xaml.Controls.RadioButton element12 = (global::Windows.UI.Xaml.Controls.RadioButton)(target);
                ((global::Windows.UI.Xaml.Controls.RadioButton)element12).Checked += this.Select_Gender;
            }
            break;

            case 13: // Views\RegisterForm.xaml line 67
            {
                this.phone = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 14: // Views\RegisterForm.xaml line 55
            {
                this.address = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 15: // Views\RegisterForm.xaml line 43
            {
                this.firstName = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            case 16: // Views\RegisterForm.xaml line 31
            {
                this.lastName = (global::Windows.UI.Xaml.Controls.TextBox)(target);
            }
            break;

            default:
                break;
            }
            this._contentLoaded = true;
        }