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

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

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

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

            case 2:   //  Ink.ViewModels.InkViewModel
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Ink.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Ink.ViewModels.Base.ViewModelBase
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Ink.Views.Base.PageBase
                userType           = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_PageBase;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 7:   //  Ink.Behaviors.InkBehavior
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("PenColor");
                userType.AddMemberName("PenSize");
                userType.AddMemberName("PenType");
                userType.AddMemberName("IsClear");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Windows.UI.Xaml.Media.SolidColorBrush
                xamlType = new global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  Int32
                xamlType = new global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 11:   //  Ink.Models.PenType
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("Ballpoint", global::Ink.Models.PenType.Ballpoint);
                userType.AddEnumValue("Highlighter", global::Ink.Models.PenType.Highlighter);
                userType.AddEnumValue("Calligraphy", global::Ink.Models.PenType.Calligraphy);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  System.Enum
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 13:   //  System.ValueType
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 14:   //  Boolean
                xamlType = new global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 15:   //  Ink.InkView
                userType           = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Ink.Views.Base.PageBase"));
                userType.Activator = Activate_15_InkView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Exemple #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Ink.Ink_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  Ink.ViewModels.Base.ViewModelLocator
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("InkViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 2:   //  Ink.ViewModels.InkViewModel
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Ink.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Ink.ViewModels.Base.ViewModelBase
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Ink.Views.Base.PageBase
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_PageBase;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 7:   //  Ink.Behaviors.InkBehavior
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.AddMemberName("PenColor");
                userType.AddMemberName("PenSize");
                userType.AddMemberName("PenType");
                userType.AddMemberName("IsClear");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Windows.UI.Xaml.Media.SolidColorBrush
                xamlType = new global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 10:   //  Int32
                xamlType = new global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 11:   //  Ink.Models.PenType
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("Ballpoint", global::Ink.Models.PenType.Ballpoint);
                userType.AddEnumValue("Highlighter", global::Ink.Models.PenType.Highlighter);
                userType.AddEnumValue("Calligraphy", global::Ink.Models.PenType.Calligraphy);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  System.Enum
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 13:   //  System.ValueType
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 14:   //  Boolean
                xamlType = new global::Ink.Ink_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 15:   //  Ink.InkView
                userType = new global::Ink.Ink_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Ink.Views.Base.PageBase"));
                userType.Activator = Activate_15_InkView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }