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

            case 2: // Scenario1_DiscoverServer.xaml line 24
            {
                global::Windows.UI.Xaml.Controls.Grid  element2 = (global::Windows.UI.Xaml.Controls.Grid)target;
                Scenario1_DiscoverServer_obj2_Bindings bindings = new Scenario1_DiscoverServer_obj2_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element2.DataContext);
                element2.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element2, bindings);
            }
            break;
            }
            return(returnValue);
        }
                public Scenario1_DiscoverServer_obj2_Bindings TryGetBindingObject()
                {
                    Scenario1_DiscoverServer_obj2_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
                public void UpdateChildListeners_(global::SDKTemplate.BluetoothLEDeviceDisplay obj)
                {
                    Scenario1_DiscoverServer_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)
                {
                    Scenario1_DiscoverServer_obj2_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::SDKTemplate.BluetoothLEDeviceDisplay obj = sender as global::SDKTemplate.BluetoothLEDeviceDisplay;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_GlyphBitmapImage(obj.GlyphBitmapImage, DATA_CHANGED);
                                bindings.Update_IsPaired(obj.IsPaired, DATA_CHANGED);
                                bindings.Update_IsConnected(obj.IsConnected, DATA_CHANGED);
                                bindings.Update_Name(obj.Name, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "GlyphBitmapImage":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_GlyphBitmapImage(obj.GlyphBitmapImage, DATA_CHANGED);
                                }
                                break;
                            }

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

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

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

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