Beispiel #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  SharingScratch.Common.LayoutAwarePage
                userType           = new global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_LayoutAwarePage;
                xamlType           = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  SharingScratch.MainPage
                userType           = new global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SharingScratch.Common.LayoutAwarePage"));
                userType.Activator = Activate_3_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  SharingScratch.Common.LayoutAwarePage
                userType = new global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_LayoutAwarePage;
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  SharingScratch.MainPage
                userType = new global::SharingScratch.PullRequestScratch_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SharingScratch.Common.LayoutAwarePage"));
                userType.Activator = Activate_3_MainPage;
                xamlType = userType;
                break;
            }
            return xamlType;
        }