Beispiel #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: // Pages\MySong.xaml line 1
            {
                global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
                MySong_obj1_Bindings bindings = new MySong_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element1, bindings);
            }
            break;

            case 10: // Pages\MySong.xaml line 18
            {
                global::Windows.UI.Xaml.Controls.StackPanel element10 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                MySong_obj10_Bindings bindings = new MySong_obj10_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element10.DataContext);
                element10.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element10, bindings);
                global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element10, bindings);
            }
            break;
            }
            return(returnValue);
        }
Beispiel #2
0
 public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
 {
     global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null;
     switch (connectionId)
     {
     case 10: // Views\MySong.xaml line 23
     {
         global::Windows.UI.Xaml.Controls.Grid element10 = (global::Windows.UI.Xaml.Controls.Grid)target;
         MySong_obj10_Bindings bindings = new MySong_obj10_Bindings();
         returnValue = bindings;
         bindings.SetDataRoot(element10.DataContext);
         element10.DataContextChanged += bindings.DataContextChangedHandler;
         global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element10, bindings);
         global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element10, bindings);
     }
     break;
     }
     return(returnValue);
 }