Пример #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType userType;

            switch (typeName)
            {
            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "Object":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Object));
                break;

            case "String":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.String));
                break;

            case "Windows.UI.Xaml.Media.SolidColorBrush":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Media.SolidColorBrush));
                break;

            case "Single":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Single));
                break;

            case "ARDrone2.Sample.Common.LayoutAwarePage":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.Common.LayoutAwarePage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_LayoutAwarePage;
                userType.AddMemberName("DefaultViewModel");
                AddToMapOfTypeToStandardName(typeof(global::Windows.Foundation.Collections.IObservableMap<global::System.String, global::System.Object>),
                                                   "Windows.Foundation.Collections.IObservableMap<String, Object>");
                xamlType = userType;
                break;

            case "Windows.Foundation.Collections.IObservableMap<String, Object>":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.Foundation.Collections.IObservableMap<global::System.String, global::System.Object>), null);
                AddToMapOfTypeToStandardName(typeof(global::Windows.Foundation.Collections.IObservableMap<global::System.String, global::System.Object>),
                                                   "Windows.Foundation.Collections.IObservableMap<String, Object>");
                userType.DictionaryAdd = MapAdd_1_IObservableMap;
                xamlType = userType;
                break;

            case "ARDrone2.Sample.Common.BooleanToVisibilityConverter":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.Common.BooleanToVisibilityConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_2_BooleanToVisibilityConverter;
                xamlType = userType;
                break;

            case "ARDrone2.Sample.ConfigurationPage":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.ConfigurationPage), GetXamlTypeByName("ARDrone2.Sample.Common.LayoutAwarePage"));
                userType.Activator = Activate_3_ConfigurationPage;
                xamlType = userType;
                break;

            case "ARDrone2Client.Windows.ViewModel.StringToFloatConverter":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2Client.Windows.ViewModel.StringToFloatConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_4_StringToFloatConverter;
                xamlType = userType;
                break;

            case "ARDrone2Client.Windows.Input.JoystickControl":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2Client.Windows.Input.JoystickControl), GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_5_JoystickControl;
                userType.AddMemberName("BorderElipseColor");
                userType.AddMemberName("StickColor");
                userType.AddMemberName("X");
                AddToMapOfTypeToStandardName(typeof(global::System.Single),
                                                   "Single");
                userType.AddMemberName("Y");
                AddToMapOfTypeToStandardName(typeof(global::System.Single),
                                                   "Single");
                xamlType = userType;
                break;

            case "ARDrone2.Sample.FlyPage":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.FlyPage), GetXamlTypeByName("ARDrone2.Sample.Common.LayoutAwarePage"));
                userType.Activator = Activate_6_FlyPage;
                xamlType = userType;
                break;

            case "ARDrone2.Sample.MainPage":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_MainPage;
                xamlType = userType;
                break;

            }
            return xamlType;
        }
Пример #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType       userType;

            switch (typeName)
            {
            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "Object":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Object));
                break;

            case "String":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.String));
                break;

            case "Windows.UI.Xaml.Media.SolidColorBrush":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Media.SolidColorBrush));
                break;

            case "Single":
                xamlType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Single));
                break;

            case "ARDrone2.Sample.Common.LayoutAwarePage":
                userType           = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.Common.LayoutAwarePage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_LayoutAwarePage;
                userType.AddMemberName("DefaultViewModel");
                AddToMapOfTypeToStandardName(typeof(global::Windows.Foundation.Collections.IObservableMap <global::System.String, global::System.Object>),
                                             "Windows.Foundation.Collections.IObservableMap<String, Object>");
                xamlType = userType;
                break;

            case "Windows.Foundation.Collections.IObservableMap<String, Object>":
                userType = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.Foundation.Collections.IObservableMap <global::System.String, global::System.Object>), null);
                AddToMapOfTypeToStandardName(typeof(global::Windows.Foundation.Collections.IObservableMap <global::System.String, global::System.Object>),
                                             "Windows.Foundation.Collections.IObservableMap<String, Object>");
                userType.DictionaryAdd = MapAdd_1_IObservableMap;
                xamlType = userType;
                break;

            case "ARDrone2.Sample.Common.BooleanToVisibilityConverter":
                userType           = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.Common.BooleanToVisibilityConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_2_BooleanToVisibilityConverter;
                xamlType           = userType;
                break;

            case "ARDrone2.Sample.ConfigurationPage":
                userType           = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.ConfigurationPage), GetXamlTypeByName("ARDrone2.Sample.Common.LayoutAwarePage"));
                userType.Activator = Activate_3_ConfigurationPage;
                xamlType           = userType;
                break;

            case "ARDrone2Client.Windows.ViewModel.StringToFloatConverter":
                userType           = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2Client.Windows.ViewModel.StringToFloatConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_4_StringToFloatConverter;
                xamlType           = userType;
                break;

            case "ARDrone2Client.Windows.Input.JoystickControl":
                userType           = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2Client.Windows.Input.JoystickControl), GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_5_JoystickControl;
                userType.AddMemberName("BorderElipseColor");
                userType.AddMemberName("StickColor");
                userType.AddMemberName("X");
                AddToMapOfTypeToStandardName(typeof(global::System.Single),
                                             "Single");
                userType.AddMemberName("Y");
                AddToMapOfTypeToStandardName(typeof(global::System.Single),
                                             "Single");
                xamlType = userType;
                break;

            case "ARDrone2.Sample.FlyPage":
                userType           = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.FlyPage), GetXamlTypeByName("ARDrone2.Sample.Common.LayoutAwarePage"));
                userType.Activator = Activate_6_FlyPage;
                xamlType           = userType;
                break;

            case "ARDrone2.Sample.MainPage":
                userType           = new global::AR.Drone2.Sample.W8.ARDrone2_Sample_W8_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::ARDrone2.Sample.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }