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

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

            switch (typeIndex)
            {
            case 0:   //  ArduinoBluetooth.Connection.BluetoothConnectionManager
                userType           = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("ArduinoBluetooth.PropertyChangedBase"));
                userType.Activator = Activate_0_BluetoothConnectionManager;
                userType.AddMemberName("BluetoothCancelCommand");
                userType.AddMemberName("BluetoothDisconnectCommand");
                userType.AddMemberName("State");
                xamlType = userType;
                break;

            case 1:   //  ArduinoBluetooth.PropertyChangedBase
                userType           = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_1_PropertyChangedBase;
                xamlType           = userType;
                break;

            case 2:   //  Object
                xamlType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  ArduinoBluetooth.RelayCommand
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 4:   //  ArduinoBluetooth.Connection.BluetoothConnectionState
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("Disconnected", global::ArduinoBluetooth.Connection.BluetoothConnectionState.Disconnected);
                userType.AddEnumValue("Connected", global::ArduinoBluetooth.Connection.BluetoothConnectionState.Connected);
                userType.AddEnumValue("Enumerating", global::ArduinoBluetooth.Connection.BluetoothConnectionState.Enumerating);
                userType.AddEnumValue("Connecting", global::ArduinoBluetooth.Connection.BluetoothConnectionState.Connecting);
                xamlType = userType;
                break;

            case 5:   //  System.Enum
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 6:   //  System.ValueType
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 7:   //  ArduinoBluetooth.Converter.BluetoothStateConverter
                userType           = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_BluetoothStateConverter;
                xamlType           = userType;
                break;

            case 8:   //  LightsDemo.MainPage
                userType           = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::LightsDemo.LightsDemo_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  ArduinoBluetooth.Connection.BluetoothConnectionManager
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("ArduinoBluetooth.PropertyChangedBase"));
                userType.Activator = Activate_0_BluetoothConnectionManager;
                userType.AddMemberName("BluetoothCancelCommand");
                userType.AddMemberName("BluetoothDisconnectCommand");
                userType.AddMemberName("State");
                xamlType = userType;
                break;

            case 1:   //  ArduinoBluetooth.PropertyChangedBase
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_1_PropertyChangedBase;
                xamlType = userType;
                break;

            case 2:   //  Object
                xamlType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  ArduinoBluetooth.RelayCommand
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 4:   //  ArduinoBluetooth.Connection.BluetoothConnectionState
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("Disconnected", global::ArduinoBluetooth.Connection.BluetoothConnectionState.Disconnected);
                userType.AddEnumValue("Connected", global::ArduinoBluetooth.Connection.BluetoothConnectionState.Connected);
                userType.AddEnumValue("Enumerating", global::ArduinoBluetooth.Connection.BluetoothConnectionState.Enumerating);
                userType.AddEnumValue("Connecting", global::ArduinoBluetooth.Connection.BluetoothConnectionState.Connecting);
                xamlType = userType;
                break;

            case 5:   //  System.Enum
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 6:   //  System.ValueType
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 7:   //  ArduinoBluetooth.Converter.BluetoothStateConverter
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_7_BluetoothStateConverter;
                xamlType = userType;
                break;

            case 8:   //  LightsDemo.MainPage
                userType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::LightsDemo.LightsDemo_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return xamlType;
        }