public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
        {
            global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
            switch (connectionId)
            {
            case 1: // Views\ShellPage.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                ShellPage_obj1_Bindings bindings = new ShellPage_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
            }
            break;

            case 2: // Views\ShellPage.xaml line 18
            {
                global::Windows.UI.Xaml.Controls.Grid element2 = (global::Windows.UI.Xaml.Controls.Grid)target;
                ShellPage_obj2_Bindings bindings = new ShellPage_obj2_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element2.DataContext);
                element2.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element2, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element2, bindings);
            }
            break;
            }
            return(returnValue);
        }
                public ShellPage_obj2_Bindings TryGetBindingObject()
                {
                    ShellPage_obj2_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
                public void UpdateChildListeners_(global::FluentFileExplorer.ViewModels.ShellNavigationItem obj)
                {
                    ShellPage_obj2_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        if (bindings.dataRoot != null)
                        {
                            ((global::System.ComponentModel.INotifyPropertyChanged)bindings.dataRoot).PropertyChanged -= PropertyChanged_;
                        }
                        if (obj != null)
                        {
                            bindings.dataRoot = obj;
                            ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_;
                        }
                    }
                }
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    ShellPage_obj2_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::FluentFileExplorer.ViewModels.ShellNavigationItem obj = sender as global::FluentFileExplorer.ViewModels.ShellNavigationItem;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_SelectedForeground(obj.SelectedForeground, DATA_CHANGED);
                                bindings.Update_SelectedVis(obj.SelectedVis, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "SelectedForeground":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_SelectedForeground(obj.SelectedForeground, DATA_CHANGED);
                                }
                                break;
                            }

                            case "SelectedVis":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_SelectedVis(obj.SelectedVis, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }
 public ShellPage_obj2_BindingsTracking(ShellPage_obj2_Bindings obj)
 {
     weakRefToBindingObj = new global::System.WeakReference <ShellPage_obj2_Bindings>(obj);
 }