Exemple #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;
                Editor_obj1_Bindings bindings = new Editor_obj1_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(this);
                this.Bindings     = bindings;
                element1.Loading += bindings.Loading;
            }
            break;

            case 37:
            {
                global::Windows.UI.Xaml.Controls.StackPanel element37 = (global::Windows.UI.Xaml.Controls.StackPanel)target;
                Editor_obj37_Bindings bindings = new Editor_obj37_Bindings();
                returnValue = bindings;
                bindings.SetDataRoot(element37.DataContext);
                element37.DataContextChanged += bindings.DataContextChangedHandler;
                global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element37, bindings);
            }
            break;
            }
            return(returnValue);
        }
Exemple #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 1: // Editor.xaml line 1
     {
         global::Windows.UI.Xaml.Controls.Page element1 = (global::Windows.UI.Xaml.Controls.Page)target;
         Editor_obj1_Bindings bindings = new Editor_obj1_Bindings();
         returnValue = bindings;
         bindings.SetDataRoot(this);
         this.Bindings     = bindings;
         element1.Loading += bindings.Loading;
     }
     break;
     }
     return(returnValue);
 }