Exemplo n.º 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Draw.Draw_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Draw.DrawControl
                userType           = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_0_DrawControl;
                userType.AddMemberName("CurrentPageCount");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Int32
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  Draw.DrawList
                userType           = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_DrawList;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  Draw.MainPage
                userType           = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Draw.ShowDrawingsControl
                userType           = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_6_ShowDrawingsControl;
                userType.AddMemberName("DataSource");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Object
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
Exemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Draw.Draw_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  Draw.DrawControl
                userType = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_0_DrawControl;
                userType.AddMemberName("CurrentPageCount");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Int32
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  Draw.DrawList
                userType = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_DrawList;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  Draw.MainPage
                userType = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Draw.ShowDrawingsControl
                userType = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_6_ShowDrawingsControl;
                userType.AddMemberName("DataSource");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Object
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return xamlType;
        }
Exemplo n.º 3
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Draw.Draw_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Draw.View.Adorner
                userType           = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_0_Adorner;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Draw.ViewModel.DrawViewModel
                userType           = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_2_DrawViewModel;
                userType.AddMemberName("Name");
                userType.AddMemberName("Sprites");
                userType.AddMemberName("OriginalSource");
                userType.AddMemberName("CursorType");
                userType.AddMemberName("ModusType");
                userType.AddMemberName("Modus");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 4:   //  String
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  System.Collections.Specialized.INotifyCollectionChanged
                userType = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, null);
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 6:   //  Windows.UI.Xaml.FrameworkElement
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Int32
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Draw.Model.Modus
                userType = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("TopLeft", global::Draw.Model.Modus.TopLeft);
                userType.AddEnumValue("TopCenter", global::Draw.Model.Modus.TopCenter);
                userType.AddEnumValue("TopRight", global::Draw.Model.Modus.TopRight);
                userType.AddEnumValue("CenterLeft", global::Draw.Model.Modus.CenterLeft);
                userType.AddEnumValue("CenterRight", global::Draw.Model.Modus.CenterRight);
                userType.AddEnumValue("BottomLeft", global::Draw.Model.Modus.BottomLeft);
                userType.AddEnumValue("BottomCenter", global::Draw.Model.Modus.BottomCenter);
                userType.AddEnumValue("BottomRight", global::Draw.Model.Modus.BottomRight);
                userType.AddEnumValue("TurnCenter", global::Draw.Model.Modus.TurnCenter);
                userType.AddEnumValue("TurnHandle", global::Draw.Model.Modus.TurnHandle);
                userType.AddEnumValue("Move", global::Draw.Model.Modus.Move);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  System.Enum
                userType = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 10:   //  System.ValueType
                userType = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 11:   //  Draw.View.DrawView
                userType           = new global::Draw.Draw_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_DrawView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Draw.Draw_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }