예제 #1
0
 public void RegisterTwoWayListener_4(global::Windows.UI.Xaml.Controls.CheckBox sourceObject)
 {
     sourceObject.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsCheckedProperty, (sender, prop) =>
     {
         var bindingObj = this.TryGetBindingObject();
         if (bindingObj != null)
         {
             bindingObj.UpdateTwoWay_4_IsChecked();
         }
     });
 }
예제 #2
0
파일: MainPage.g.cs 프로젝트: VsabGit/Repo1
 public void UpdateChildListeners_chkNavigation(global::Windows.UI.Xaml.Controls.CheckBox obj)
 {
     if (obj != cache_chkNavigation)
     {
         if (cache_chkNavigation != null)
         {
             cache_chkNavigation.UnregisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsCheckedProperty, tokenDPC_chkNavigation_IsChecked);
             cache_chkNavigation = null;
         }
         if (obj != null)
         {
             cache_chkNavigation = obj;
             tokenDPC_chkNavigation_IsChecked = obj.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsCheckedProperty, DependencyPropertyChanged_chkNavigation_IsChecked);
         }
     }
 }