Example #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  BigWhiteBall.ViewModels.ViewModelLocator
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  BigWhiteBall.ViewModels.Constants
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_2_Constants;
                userType.AddMemberName("MainViewModelName");
                userType.AddMemberName("MainViewModelXamlPathIndexer");
                userType.AddMemberName("LookingForSpheroViewModelName");
                userType.AddMemberName("DriveSpheroViewModelName");
                userType.AddMemberName("LookingForSpheroViewModelXamlPathIndexer");
                userType.AddMemberName("DriveSpheroViewModelXamlPathIndexer");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  String
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 4:   //  BigWhiteBall.Utility.BooleanToVisibilityConverter
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_4_BooleanToVisibilityConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  BigWhiteBall.Utility.AspectRatioTrigger
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.StateTriggerBase"));
                userType.Activator = Activate_5_AspectRatioTrigger;
                userType.AddMemberName("AspectRatio");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Windows.UI.Xaml.StateTriggerBase
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  BigWhiteBall.Utility.AspectRatio
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("None", global::BigWhiteBall.Utility.AspectRatio.None);
                userType.AddEnumValue("Portrait", global::BigWhiteBall.Utility.AspectRatio.Portrait);
                userType.AddEnumValue("Landscape", global::BigWhiteBall.Utility.AspectRatio.Landscape);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  System.Enum
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 9:   //  System.ValueType
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 10:   //  BigWhiteBall.RadialValueSelector
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_10_RadialValueSelector;
                userType.AddMemberName("MinAngle");
                userType.AddMemberName("MaxAngle");
                userType.AddMemberName("Minimum");
                userType.AddMemberName("Maximum");
                userType.AddMemberName("Increment");
                userType.AddMemberName("Value");
                userType.AddMemberName("ThumbContent");
                userType.AddMemberName("EnumValueName");
                userType.AddMemberName("EnumTypeName");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 11:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 12:   //  Double
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 13:   //  BigWhiteBall.DriveSpheroControl
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_13_DriveSpheroControl;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  BigWhiteBall.LookingForSpheroControl
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_14_LookingForSpheroControl;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 15:   //  BigWhiteBall.MainUIControl
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_15_MainUIControl;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }
Example #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  BigWhiteBall.ViewModels.ViewModelLocator
                userType           = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  BigWhiteBall.ViewModels.Constants
                userType           = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_2_Constants;
                userType.AddMemberName("MainViewModelName");
                userType.AddMemberName("MainViewModelXamlPathIndexer");
                userType.AddMemberName("LookingForSpheroViewModelName");
                userType.AddMemberName("DriveSpheroViewModelName");
                userType.AddMemberName("LookingForSpheroViewModelXamlPathIndexer");
                userType.AddMemberName("DriveSpheroViewModelXamlPathIndexer");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  String
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 4:   //  BigWhiteBall.Utility.BooleanToVisibilityConverter
                userType           = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_4_BooleanToVisibilityConverter;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  BigWhiteBall.Utility.AspectRatioTrigger
                userType           = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.StateTriggerBase"));
                userType.Activator = Activate_5_AspectRatioTrigger;
                userType.AddMemberName("AspectRatio");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Windows.UI.Xaml.StateTriggerBase
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  BigWhiteBall.Utility.AspectRatio
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("None", global::BigWhiteBall.Utility.AspectRatio.None);
                userType.AddEnumValue("Portrait", global::BigWhiteBall.Utility.AspectRatio.Portrait);
                userType.AddEnumValue("Landscape", global::BigWhiteBall.Utility.AspectRatio.Landscape);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  System.Enum
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 9:   //  System.ValueType
                userType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 10:   //  BigWhiteBall.RadialValueSelector
                userType           = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_10_RadialValueSelector;
                userType.AddMemberName("MinAngle");
                userType.AddMemberName("MaxAngle");
                userType.AddMemberName("Minimum");
                userType.AddMemberName("Maximum");
                userType.AddMemberName("Increment");
                userType.AddMemberName("Value");
                userType.AddMemberName("ThumbContent");
                userType.AddMemberName("EnumValueName");
                userType.AddMemberName("EnumTypeName");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 11:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 12:   //  Double
                xamlType = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 13:   //  BigWhiteBall.DriveSpheroControl
                userType           = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_13_DriveSpheroControl;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  BigWhiteBall.LookingForSpheroControl
                userType           = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_14_LookingForSpheroControl;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 15:   //  BigWhiteBall.MainUIControl
                userType           = new global::BigWhiteBall.BigWhiteBall_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_15_MainUIControl;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }