Esempio n. 1
0
        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\ProductDetailsPage.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                ProductDetailsPage_obj1_Bindings      bindings = new ProductDetailsPage_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                bindings.SetConverterLookupRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings);
            }
            break;

            case 3: // Views\ProductDetailsPage.xaml line 18
            {
                global::Windows.UI.Xaml.Controls.Border element3 = (global::Windows.UI.Xaml.Controls.Border)target;
                ProductDetailsPage_obj3_Bindings        bindings = new ProductDetailsPage_obj3_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element3.DataContext);
                element3.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element3, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element3, bindings);
            }
            break;
            }
            return(returnValue);
        }
Esempio n. 2
0
                public ProductDetailsPage_obj1_Bindings TryGetBindingObject()
                {
                    ProductDetailsPage_obj1_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
Esempio n. 3
0
                public void PropertyChanged_viewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    ProductDetailsPage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::SCommerce.Main.ViewModel.ProductDetailsPageViewModel obj = sender as global::SCommerce.Main.ViewModel.ProductDetailsPageViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_viewModel_Title(obj.Title, DATA_CHANGED);
                                bindings.Update_viewModel_SelectedImage(obj.SelectedImage, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Title":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_viewModel_Title(obj.Title, DATA_CHANGED);
                                }
                                break;
                            }

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

                            default:
                                break;
                            }
                        }
                    }
                }
Esempio n. 4
0
 public ProductDetailsPage_obj1_BindingsTracking(ProductDetailsPage_obj1_Bindings obj)
 {
     weakRefToBindingObj = new global::System.WeakReference <ProductDetailsPage_obj1_Bindings>(obj);
 }