예제 #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:
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                Notificacion_obj1_Bindings            bindings = new Notificacion_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
            }
            break;

            case 6:
            {
                global::Windows.UI.Xaml.Controls.StackPanel element6 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                Notificacion_obj6_Bindings bindings = new Notificacion_obj6_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::TreatSelf.Models.Item)element6.DataContext);
                element6.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element6, bindings);
            }
            break;

            case 10:
            {
                global::Windows.UI.Xaml.Controls.Border element10 = (global::Windows.UI.Xaml.Controls.Border)target;
                Notificacion_obj10_Bindings             bindings  = new Notificacion_obj10_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot((global::TreatSelf.Models.MiNotificacion)element10.DataContext);
                element10.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element10, bindings);
            }
            break;
            }
            return(returnValue);
        }
 public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
 {
     global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
     switch(connectionId)
     {
     case 1:
         {
             global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
             Notificacion_obj1_Bindings bindings = new Notificacion_obj1_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot(this);
             this.Bindings = bindings;
             element1.Loading += bindings.Loading;
         }
         break;
     case 6:
         {
             global::Windows.UI.Xaml.Controls.StackPanel element6 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
             Notificacion_obj6_Bindings bindings = new Notificacion_obj6_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::TreatSelf.Models.Item) element6.DataContext);
             element6.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element6, bindings);
         }
         break;
     case 10:
         {
             global::Windows.UI.Xaml.Controls.Border element10 = (global::Windows.UI.Xaml.Controls.Border)target;
             Notificacion_obj10_Bindings bindings = new Notificacion_obj10_Bindings();
             returnValue = bindings;
             bindings.SetDataRoot((global::TreatSelf.Models.MiNotificacion) element10.DataContext);
             element10.DataContextChanged += bindings.DataContextChangedHandler;
             global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element10, bindings);
         }
         break;
     }
     return returnValue;
 }