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

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

            switch (typeIndex)
            {
            case 0:   //  PointTest.MainPage
                userType           = new global::PointTest.PointTest_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.AddMemberName("posX");
                userType.AddMemberName("posY");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::PointTest.PointTest_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            case 3:   //  Double
                xamlType = new global::PointTest.PointTest_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
예제 #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::PointTest.PointTest_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::PointTest.PointTest_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Microsoft.Kinect.Xaml.Controls.KinectUserViewer
                userType           = new global::PointTest.PointTest_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.ContentControl"));
                userType.Activator = Activate_0_KinectUserViewer;
                userType.AddMemberName("KinectSensor");
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.ContentControl
                xamlType = new global::PointTest.PointTest_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  WindowsPreview.Kinect.KinectSensor
                userType = new global::PointTest.PointTest_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 3:   //  Object
                xamlType = new global::PointTest.PointTest_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 4:   //  PointTest.MainPage
                userType           = new global::PointTest.PointTest_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_MainPage;
                userType.AddMemberName("posX");
                userType.AddMemberName("posY");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::PointTest.PointTest_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::PointTest.PointTest_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Double
                xamlType = new global::PointTest.PointTest_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }