Example #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType       userType;

            switch (typeName)
            {
            case "Object":
                xamlType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Object));
                break;

            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "BillReminder.ViewModel.ViewModelLocator":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.ViewModel.ViewModelLocator), GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("Main");
                xamlType = userType;
                break;

            case "BillReminder.ViewModel.MainViewModel":
                userType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.ViewModel.MainViewModel), GetXamlTypeByName("GalaSoft.MvvmLight.ViewModelBase"));
                xamlType = userType;
                break;

            case "GalaSoft.MvvmLight.ViewModelBase":
                userType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::GalaSoft.MvvmLight.ViewModelBase), GetXamlTypeByName("GalaSoft.MvvmLight.ObservableObject"));
                xamlType = userType;
                break;

            case "GalaSoft.MvvmLight.ObservableObject":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::GalaSoft.MvvmLight.ObservableObject), GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_ObservableObject;
                xamlType           = userType;
                break;

            case "BillReminder.MainPage":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }
Example #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType       userType;

            switch (typeName)
            {
            case "Object":
                xamlType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Object));
                break;

            case "Windows.UI.Xaml.Controls.Page":
                xamlType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.Page));
                break;

            case "Windows.UI.Xaml.Controls.UserControl":
                xamlType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Controls.UserControl));
                break;

            case "Windows.UI.Xaml.Visibility":
                xamlType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.Visibility));
                break;

            case "BillReminder.ViewModel.ViewModelLocator":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.ViewModel.ViewModelLocator), GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("Main");
                userType.AddMemberName("Bill");
                xamlType = userType;
                break;

            case "BillReminder.ViewModel.MainViewModel":
                userType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.ViewModel.MainViewModel), GetXamlTypeByName("GalaSoft.MvvmLight.ViewModelBase"));
                xamlType = userType;
                break;

            case "GalaSoft.MvvmLight.ViewModelBase":
                userType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::GalaSoft.MvvmLight.ViewModelBase), GetXamlTypeByName("GalaSoft.MvvmLight.ObservableObject"));
                xamlType = userType;
                break;

            case "GalaSoft.MvvmLight.ObservableObject":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::GalaSoft.MvvmLight.ObservableObject), GetXamlTypeByName("Object"));
                userType.Activator = Activate_3_ObservableObject;
                xamlType           = userType;
                break;

            case "BillReminder.ViewModel.BillViewModel":
                userType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.ViewModel.BillViewModel), GetXamlTypeByName("GalaSoft.MvvmLight.ViewModelBase"));
                xamlType = userType;
                break;

            case "BillReminder.Converters.DateTimeToStringConverter":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.Converters.DateTimeToStringConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_5_DateTimeToStringConverter;
                xamlType           = userType;
                break;

            case "BillReminder.Converters.DecimalToStringConverter":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.Converters.DecimalToStringConverter), GetXamlTypeByName("Object"));
                userType.Activator = Activate_6_DecimalToStringConverter;
                xamlType           = userType;
                break;

            case "BillReminder.Views.BillView":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.Views.BillView), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_BillView;
                xamlType           = userType;
                break;

            case "BillReminder.Converters.VisibilityConverter":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.Converters.VisibilityConverter), GetXamlTypeByName("BillReminder.Converters.BoolToValueConverter<Windows.UI.Xaml.Visibility>"));
                userType.Activator = Activate_8_VisibilityConverter;
                xamlType           = userType;
                break;

            case "BillReminder.Converters.BoolToValueConverter<Windows.UI.Xaml.Visibility>":
                userType = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.Converters.BoolToValueConverter <global::Windows.UI.Xaml.Visibility>), GetXamlTypeByName("Object"));
                AddToMapOfTypeToStandardName(typeof(global::BillReminder.Converters.BoolToValueConverter <global::Windows.UI.Xaml.Visibility>),
                                             "BillReminder.Converters.BoolToValueConverter<Windows.UI.Xaml.Visibility>");
                userType.Activator = Activate_9_BoolToValueConverter;
                userType.AddMemberName("TrueValue");
                userType.AddMemberName("FalseValue");
                xamlType = userType;
                break;

            case "BillReminder.MainPage":
                userType           = new global::BillReminder.BillReminder_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::BillReminder.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_MainPage;
                xamlType           = userType;
                break;
            }
            return(xamlType);
        }