예제 #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::KidsPainter.KidsPainter_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType userType;

            switch (typeName)
            {
            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "KidsPainter.Common.LayoutAwarePage":
                userType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::KidsPainter.Common.LayoutAwarePage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_LayoutAwarePage;
                xamlType = userType;
                break;

            case "KidsPainter.InputPassword":
                userType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::KidsPainter.InputPassword), GetXamlTypeByName("KidsPainter.Common.LayoutAwarePage"));
                userType.Activator = Activate_1_InputPassword;
                xamlType = userType;
                break;

            case "KidsPainter.SetPassword":
                userType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::KidsPainter.SetPassword), GetXamlTypeByName("KidsPainter.Common.LayoutAwarePage"));
                userType.Activator = Activate_2_SetPassword;
                xamlType = userType;
                break;

            case "KidsPainter.BasicPage1":
                userType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::KidsPainter.BasicPage1), GetXamlTypeByName("KidsPainter.Common.LayoutAwarePage"));
                userType.Activator = Activate_3_BasicPage1;
                xamlType = userType;
                break;

            case "KidsPainter.Main":
                userType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::KidsPainter.Main), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_Main;
                xamlType = userType;
                break;

            case "Painter.MainPage":
                userType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Painter.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_MainPage;
                xamlType = userType;
                break;

            case "KidsPainter.MyUserControl":
                userType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::KidsPainter.MyUserControl), GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                xamlType = userType;
                break;

            }
            return xamlType;
        }
예제 #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::KidsPainter.KidsPainter_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType userType;

            switch (typeName)
            {
            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "Painter.MainPage":
                userType = new global::KidsPainter.KidsPainter_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Painter.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                xamlType = userType;
                break;

            }
            return xamlType;
        }