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

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

            switch (typeIndex)
            {
            case 0:   //  AdaptiveTriggers.CustomStateTriggers.PlatformStateTrigger
                userType           = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.StateTriggerBase"));
                userType.Activator = Activate_0_PlatformStateTrigger;
                userType.AddMemberName("DeviceFamily");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.StateTriggerBase
                xamlType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  AdaptiveTriggers.CustomStateTriggers.DeviceFamily
                userType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("Unknown", global::AdaptiveTriggers.CustomStateTriggers.DeviceFamily.Unknown);
                userType.AddEnumValue("Desktop", global::AdaptiveTriggers.CustomStateTriggers.DeviceFamily.Desktop);
                userType.AddEnumValue("Mobile", global::AdaptiveTriggers.CustomStateTriggers.DeviceFamily.Mobile);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  System.Enum
                userType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 4:   //  System.ValueType
                userType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 5:   //  Object
                xamlType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  AdaptiveTriggers.MainView
                userType           = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_MainView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

            switch (typeIndex)
            {

            case 0:   //  AdaptiveTriggers.CustomStateTriggers.PlatformStateTrigger
                userType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.StateTriggerBase"));
                userType.Activator = Activate_0_PlatformStateTrigger;
                userType.AddMemberName("DeviceFamily");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.StateTriggerBase
                xamlType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  AdaptiveTriggers.CustomStateTriggers.DeviceFamily
                userType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("Unknown", global::AdaptiveTriggers.CustomStateTriggers.DeviceFamily.Unknown);
                userType.AddEnumValue("Desktop", global::AdaptiveTriggers.CustomStateTriggers.DeviceFamily.Desktop);
                userType.AddEnumValue("Mobile", global::AdaptiveTriggers.CustomStateTriggers.DeviceFamily.Mobile);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  System.Enum
                userType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 4:   //  System.ValueType
                userType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 5:   //  Object
                xamlType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  AdaptiveTriggers.MainView
                userType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_MainView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 8:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::AdaptiveTriggers.AdaptiveTriggers_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return xamlType;
        }