コード例 #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  SDKTemplate.Common.LayoutAwarePage
                userType           = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_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::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 3:   //  BluetoothGattHeartRate.Scenario3
                userType           = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SDKTemplate.Common.LayoutAwarePage"));
                userType.Activator = Activate_3_Scenario3;
                xamlType           = userType;
                break;

            case 4:   //  BluetoothGattHeartRate.Scenario2
                userType           = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SDKTemplate.Common.LayoutAwarePage"));
                userType.Activator = Activate_4_Scenario2;
                xamlType           = userType;
                break;

            case 5:   //  BluetoothGattHeartRate.ChartControl
                userType           = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Canvas"));
                userType.Activator = Activate_5_ChartControl;
                userType.AddMemberName("DataPointCount");
                xamlType = userType;
                break;

            case 6:   //  Windows.UI.Xaml.Controls.Canvas
                xamlType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Windows.UI.Xaml.Controls.Panel
                xamlType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Int32
                xamlType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  BluetoothGattHeartRate.Scenario1
                userType           = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SDKTemplate.Common.LayoutAwarePage"));
                userType.Activator = Activate_9_Scenario1;
                xamlType           = userType;
                break;

            case 10:   //  SDKTemplate.MainPage
                userType           = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SDKTemplate.Common.LayoutAwarePage"));
                userType.Activator = Activate_10_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }
コード例 #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  SDKTemplate.Common.LayoutAwarePage
                userType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_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::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 3:   //  BluetoothGattHeartRate.Scenario3
                userType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SDKTemplate.Common.LayoutAwarePage"));
                userType.Activator = Activate_3_Scenario3;
                xamlType = userType;
                break;

            case 4:   //  BluetoothGattHeartRate.Scenario2
                userType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SDKTemplate.Common.LayoutAwarePage"));
                userType.Activator = Activate_4_Scenario2;
                xamlType = userType;
                break;

            case 5:   //  BluetoothGattHeartRate.ChartControl
                userType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Canvas"));
                userType.Activator = Activate_5_ChartControl;
                userType.AddMemberName("DataPointCount");
                xamlType = userType;
                break;

            case 6:   //  Windows.UI.Xaml.Controls.Canvas
                xamlType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Windows.UI.Xaml.Controls.Panel
                xamlType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Int32
                xamlType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  BluetoothGattHeartRate.Scenario1
                userType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SDKTemplate.Common.LayoutAwarePage"));
                userType.Activator = Activate_9_Scenario1;
                xamlType = userType;
                break;

            case 10:   //  SDKTemplate.MainPage
                userType = new global::BluetoothGattHeartRate.BluetoothGattHeartRate_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("SDKTemplate.Common.LayoutAwarePage"));
                userType.Activator = Activate_10_MainPage;
                xamlType = userType;
                break;
            }
            return xamlType;
        }