// IComponentConnector public void Connect(int connectionId, global::System.Object target) { switch (connectionId) { case 2: // MainWindow.xaml line 54 this.obj2 = target.As <Microsoft.UI.Xaml.Controls.Grid>(); break; case 3: // MainWindow.xaml line 66 this.obj3 = target.As <Microsoft.UI.Xaml.Controls.TextBox>(); this.bindingsTracking.RegisterTwoWayListener_3(this.obj3); break; case 4: // MainWindow.xaml line 71 this.obj4 = target.As <Microsoft.UI.Xaml.Controls.DatePicker>(); this.bindingsTracking.RegisterTwoWayListener_4(this.obj4); break; case 5: // MainWindow.xaml line 77 this.obj5 = target.As <Microsoft.UI.Xaml.Controls.ComboBox>(); this.bindingsTracking.RegisterTwoWayListener_5(this.obj5); break; case 6: // MainWindow.xaml line 87 this.obj6 = target.As <Microsoft.UI.Xaml.Controls.CheckBox>(); this.bindingsTracking.RegisterTwoWayListener_6(this.obj6); break; case 7: // MainWindow.xaml line 93 this.obj7 = target.As <Microsoft.UI.Xaml.Controls.Button>(); this.obj7Click = (global::System.Object p0, global::Microsoft.UI.Xaml.RoutedEventArgs p1) => { this.dataRoot.viewModel.SelectedEmployee.Save(); }; (target.As <Microsoft.UI.Xaml.Controls.Button>()).Click += obj7Click; break; case 8: // MainWindow.xaml line 45 this.obj8 = target.As <Microsoft.UI.Xaml.Controls.Button>(); this.obj8Click = (global::System.Object p0, global::Microsoft.UI.Xaml.RoutedEventArgs p1) => { this.dataRoot.viewModel.Load(); }; (target.As <Microsoft.UI.Xaml.Controls.Button>()).Click += obj8Click; break; case 9: // MainWindow.xaml line 47 this.obj9 = target.As <Microsoft.UI.Xaml.Controls.ListView>(); this.bindingsTracking.RegisterTwoWayListener_9(this.obj9); break; default: break; } }
public void RegisterTwoWayListener_4(global::Microsoft.UI.Xaml.Controls.DatePicker sourceObject) { sourceObject.RegisterPropertyChangedCallback(global::Microsoft.UI.Xaml.Controls.DatePicker.SelectedDateProperty, (sender, prop) => { var bindingObj = this.TryGetBindingObject(); if (bindingObj != null) { bindingObj.UpdateTwoWay_4_SelectedDate(); } }); }
public static void Set_Microsoft_UI_Xaml_Controls_DatePicker_SelectedDate(global::Microsoft.UI.Xaml.Controls.DatePicker obj, global::System.Nullable <global::System.DateTimeOffset> value, string targetNullValue) { if (value == null && targetNullValue != null) { value = (global::System.DateTimeOffset)global::Microsoft.UI.Xaml.Markup.XamlBindingHelper.ConvertValue(typeof(global::System.DateTimeOffset), targetNullValue); } obj.SelectedDate = value; }