コード例 #1
0
 private void Update_ViewModel_Selected(global::Microsoft.UI.Xaml.Controls.NavigationViewItem obj, int phase)
 {
     if ((phase & ((1 << 0) | NOT_PHASED | DATA_CHANGED)) != 0)
     {
         // Views\ShellPage.xaml line 19
         if (!isobj3SelectedItemDisabled)
         {
             XamlBindingSetters.Set_Microsoft_UI_Xaml_Controls_NavigationView_SelectedItem(this.obj3, obj, null);
         }
     }
 }
コード例 #2
0
ファイル: ShellPage.g.cs プロジェクト: Dundyne/colapi
                public void DependencyPropertyChanged_ViewModel_Selected_Content(global::Windows.UI.Xaml.DependencyObject sender, global::Windows.UI.Xaml.DependencyProperty prop)
                {
                    ShellPage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        global::Microsoft.UI.Xaml.Controls.NavigationViewItem obj = sender as global::Microsoft.UI.Xaml.Controls.NavigationViewItem;
                        if (obj != null)
                        {
                            bindings.Update_ViewModel_Selected_Content(obj.Content, DATA_CHANGED);
                        }
                    }
                }
コード例 #3
0
ファイル: ShellPage.g.cs プロジェクト: Dundyne/colapi
 public void UpdateChildListeners_ViewModel_Selected(global::Microsoft.UI.Xaml.Controls.NavigationViewItem obj)
 {
     if (obj != cache_ViewModel_Selected)
     {
         if (cache_ViewModel_Selected != null)
         {
             cache_ViewModel_Selected.UnregisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.ContentControl.ContentProperty, tokenDPC_ViewModel_Selected_Content);
             cache_ViewModel_Selected = null;
         }
         if (obj != null)
         {
             cache_ViewModel_Selected            = obj;
             tokenDPC_ViewModel_Selected_Content = obj.RegisterPropertyChangedCallback(global::Windows.UI.Xaml.Controls.ContentControl.ContentProperty, DependencyPropertyChanged_ViewModel_Selected_Content);
         }
     }
 }
コード例 #4
0
 private void Update_Selected(global::Microsoft.UI.Xaml.Controls.NavigationViewItem obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_Selected(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_Selected_Content(obj.Content, phase);
         }
     }
     if ((phase & ((1 << 0) | NOT_PHASED | DATA_CHANGED)) != 0)
     {
         // Views\ShellPage.xaml line 15
         XamlBindingSetters.Set_Microsoft_UI_Xaml_Controls_NavigationView_SelectedItem(this.obj2, obj, null);
     }
 }
コード例 #5
0
            // IComponentConnector

            public void Connect(int connectionId, global::System.Object target)
            {
                switch (connectionId)
                {
                case 2:     // Views\ShellPage.xaml line 17
                    this.obj2 = (global::Microsoft.Xaml.Interactions.Core.InvokeCommandAction)target;
                    break;

                case 3:     // Views\ShellPage.xaml line 22
                    this.obj3 = (global::Microsoft.UI.Xaml.Controls.NavigationView)target;
                    break;

                case 6:     // Views\ShellPage.xaml line 37
                    this.obj6 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 7:     // Views\ShellPage.xaml line 38
                    this.obj7 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 8:     // Views\ShellPage.xaml line 39
                    this.obj8 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 9:     // Views\ShellPage.xaml line 40
                    this.obj9 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 10:     // Views\ShellPage.xaml line 41
                    this.obj10 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 11:     // Views\ShellPage.xaml line 42
                    this.obj11 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 12:     // Views\ShellPage.xaml line 43
                    this.obj12 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 13:     // Views\ShellPage.xaml line 44
                    this.obj13 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 14:     // Views\ShellPage.xaml line 45
                    this.obj14 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 15:     // Views\ShellPage.xaml line 46
                    this.obj15 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 16:     // Views\ShellPage.xaml line 47
                    this.obj16 = (global::Microsoft.UI.Xaml.Controls.NavigationViewItem)target;
                    break;

                case 17:     // Views\ShellPage.xaml line 51
                    this.obj17 = (global::FlightAppEliasGryp.Behaviors.NavigationViewHeaderBehavior)target;
                    break;

                case 18:     // Views\ShellPage.xaml line 65
                    this.obj18 = (global::Microsoft.Xaml.Interactions.Core.InvokeCommandAction)target;
                    break;

                default:
                    break;
                }
            }