public MapViewPage_obj1_Bindings TryGetBindingObject()
                {
                    MapViewPage_obj1_Bindings bindingObject = null;

                    if (weakRefToBindingObj != null)
                    {
                        weakRefToBindingObj.TryGetTarget(out bindingObject);
                        if (bindingObject == null)
                        {
                            weakRefToBindingObj = null;
                            ReleaseAllListeners();
                        }
                    }
                    return(bindingObject);
                }
                public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MapViewPage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::VerkstedFinder.App.ViewModels.MapViewViewModel obj = sender as global::VerkstedFinder.App.ViewModels.MapViewViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_ViewModel_ZoomLevel(obj.ZoomLevel, DATA_CHANGED);
                                bindings.Update_ViewModel_Center(obj.Center, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "ZoomLevel":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_ViewModel_ZoomLevel(obj.ZoomLevel, DATA_CHANGED);
                                }
                                break;
                            }

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

                            default:
                                break;
                            }
                        }
                    }
                }
 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\MapViewPage.xaml line 1
     {
         global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
         MapViewPage_obj1_Bindings             bindings = new MapViewPage_obj1_Bindings();
         returnValue = bindings;
         bindings.SetDataRoot(this);
         this.Bindings     = bindings;
         element1.Loading += bindings.Loading;
         global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings);
     }
     break;
     }
     return(returnValue);
 }
 public MapViewPage_obj1_BindingsTracking(MapViewPage_obj1_Bindings obj)
 {
     weakRefToBindingObj = new global::System.WeakReference <MapViewPage_obj1_Bindings>(obj);
 }