Exemplo n.º 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(string typeName)
        {
            global::VKapp.VKapp_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::VKapp.VKapp_XamlTypeInfo.XamlUserType userType;

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

            case "Windows.UI.Xaml.FrameworkElement":
                xamlType = new global::VKapp.VKapp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.FrameworkElement));
                break;

            case "Boolean":
                xamlType = new global::VKapp.VKapp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.Boolean));
                break;

            case "Windows.UI.Xaml.DependencyObject":
                xamlType = new global::VKapp.VKapp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::Windows.UI.Xaml.DependencyObject));
                break;

            case "String":
                xamlType = new global::VKapp.VKapp_XamlTypeInfo.XamlSystemBaseType(typeName, typeof(global::System.String));
                break;

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

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

            case "VKapp.ViewModel.ViewModelLocator":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VKapp.ViewModel.ViewModelLocator), GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_ViewModelLocator;
                userType.AddMemberName("Main");
                userType.AddMemberName("FriendList");
                userType.AddMemberName("PlayList");
                userType.AddMemberName("Player");
                xamlType = userType;
                break;

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

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

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

            case "VKapp.ViewModel.FriendListViewModel":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VKapp.ViewModel.FriendListViewModel), GetXamlTypeByName("GalaSoft.MvvmLight.ViewModelBase"));
                xamlType = userType;
                break;

            case "VKapp.ViewModel.PlayListViewModel":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VKapp.ViewModel.PlayListViewModel), GetXamlTypeByName("GalaSoft.MvvmLight.ViewModelBase"));
                xamlType = userType;
                break;

            case "VKapp.ViewModel.PlayerViewModel":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VKapp.ViewModel.PlayerViewModel), GetXamlTypeByName("GalaSoft.MvvmLight.ViewModelBase"));
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.Interaction":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.Interaction), GetXamlTypeByName("Object"));
                userType.AddMemberName("Triggers");
                userType.AddMemberName("Behaviors");
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.TriggerCollection":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.TriggerCollection), GetXamlTypeByName("Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.TriggerBase>"));
                userType.CollectionAdd = VectorAdd_8_TriggerCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.TriggerBase>":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.AttachableCollection<global::Windows.UI.Interactivity.TriggerBase>), GetXamlTypeByName("Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.TriggerBase>"));
                AddToMapOfTypeToStandardName(typeof(global::Windows.UI.Interactivity.AttachableCollection<global::Windows.UI.Interactivity.TriggerBase>),
                                                   "Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.TriggerBase>");
                userType.CollectionAdd = VectorAdd_9_AttachableCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.TriggerBase>":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.DependencyObjectCollection<global::Windows.UI.Interactivity.TriggerBase>), GetXamlTypeByName("Windows.UI.Xaml.FrameworkElement"));
                AddToMapOfTypeToStandardName(typeof(global::Windows.UI.Interactivity.DependencyObjectCollection<global::Windows.UI.Interactivity.TriggerBase>),
                                                   "Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.TriggerBase>");
                userType.Activator = Activate_10_DependencyObjectCollection;
                userType.CollectionAdd = VectorAdd_10_DependencyObjectCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.TriggerBase":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.TriggerBase), GetXamlTypeByName("Windows.UI.Interactivity.InteractivityBase"));
                userType.SetContentPropertyName("Windows.UI.Interactivity.TriggerBase.Actions");
                userType.AddMemberName("Actions");
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.InteractivityBase":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.InteractivityBase), GetXamlTypeByName("Windows.UI.Xaml.FrameworkElement"));
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.TriggerActionCollection":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.TriggerActionCollection), GetXamlTypeByName("Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.TriggerAction>"));
                userType.CollectionAdd = VectorAdd_13_TriggerActionCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.TriggerAction>":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.AttachableCollection<global::Windows.UI.Interactivity.TriggerAction>), GetXamlTypeByName("Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.TriggerAction>"));
                AddToMapOfTypeToStandardName(typeof(global::Windows.UI.Interactivity.AttachableCollection<global::Windows.UI.Interactivity.TriggerAction>),
                                                   "Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.TriggerAction>");
                userType.CollectionAdd = VectorAdd_14_AttachableCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.TriggerAction>":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.DependencyObjectCollection<global::Windows.UI.Interactivity.TriggerAction>), GetXamlTypeByName("Windows.UI.Xaml.FrameworkElement"));
                AddToMapOfTypeToStandardName(typeof(global::Windows.UI.Interactivity.DependencyObjectCollection<global::Windows.UI.Interactivity.TriggerAction>),
                                                   "Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.TriggerAction>");
                userType.Activator = Activate_15_DependencyObjectCollection;
                userType.CollectionAdd = VectorAdd_15_DependencyObjectCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.TriggerAction":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.TriggerAction), GetXamlTypeByName("Windows.UI.Interactivity.InteractivityBase"));
                userType.AddMemberName("IsEnabled");
                AddToMapOfTypeToStandardName(typeof(global::System.Boolean),
                                                   "Boolean");
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.BehaviorCollection":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.BehaviorCollection), GetXamlTypeByName("Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.Behavior>"));
                userType.CollectionAdd = VectorAdd_17_BehaviorCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.Behavior>":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.AttachableCollection<global::Windows.UI.Interactivity.Behavior>), GetXamlTypeByName("Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.Behavior>"));
                AddToMapOfTypeToStandardName(typeof(global::Windows.UI.Interactivity.AttachableCollection<global::Windows.UI.Interactivity.Behavior>),
                                                   "Windows.UI.Interactivity.AttachableCollection<Windows.UI.Interactivity.Behavior>");
                userType.CollectionAdd = VectorAdd_18_AttachableCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.Behavior>":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.DependencyObjectCollection<global::Windows.UI.Interactivity.Behavior>), GetXamlTypeByName("Windows.UI.Xaml.FrameworkElement"));
                AddToMapOfTypeToStandardName(typeof(global::Windows.UI.Interactivity.DependencyObjectCollection<global::Windows.UI.Interactivity.Behavior>),
                                                   "Windows.UI.Interactivity.DependencyObjectCollection<Windows.UI.Interactivity.Behavior>");
                userType.Activator = Activate_19_DependencyObjectCollection;
                userType.CollectionAdd = VectorAdd_19_DependencyObjectCollection;
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.Behavior":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.Behavior), GetXamlTypeByName("Windows.UI.Interactivity.InteractivityBase"));
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.EventTrigger":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.EventTrigger), GetXamlTypeByName("Windows.UI.Interactivity.EventTriggerBase<Object>"));
                userType.Activator = Activate_21_EventTrigger;
                userType.SetContentPropertyName("Windows.UI.Interactivity.EventTrigger.Actions");
                userType.AddMemberName("EventName");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.EventTriggerBase<Object>":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.EventTriggerBase<global::System.Object>), GetXamlTypeByName("Windows.UI.Interactivity.EventTriggerBase"));
                AddToMapOfTypeToStandardName(typeof(global::Windows.UI.Interactivity.EventTriggerBase<global::System.Object>),
                                                   "Windows.UI.Interactivity.EventTriggerBase<Object>");
                userType.SetContentPropertyName("Windows.UI.Interactivity.EventTriggerBase<Object>.Actions");
                userType.AddMemberName("Source");
                AddToMapOfTypeToStandardName(typeof(global::System.Object),
                                                   "Object");
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.EventTriggerBase":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.EventTriggerBase), GetXamlTypeByName("Windows.UI.Interactivity.TriggerBase"));
                userType.SetContentPropertyName("Windows.UI.Interactivity.EventTriggerBase.Actions");
                userType.AddMemberName("SourceObject");
                AddToMapOfTypeToStandardName(typeof(global::System.Object),
                                                   "Object");
                userType.AddMemberName("SourceName");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.InvokeCommandAction":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.InvokeCommandAction), GetXamlTypeByName("Windows.UI.Interactivity.TriggerAction<Windows.UI.Xaml.FrameworkElement>"));
                userType.Activator = Activate_24_InvokeCommandAction;
                userType.AddMemberName("Command");
                userType.AddMemberName("CommandName");
                AddToMapOfTypeToStandardName(typeof(global::System.String),
                                                   "String");
                userType.AddMemberName("CommandParameter");
                AddToMapOfTypeToStandardName(typeof(global::System.Object),
                                                   "Object");
                xamlType = userType;
                break;

            case "Windows.UI.Interactivity.TriggerAction<Windows.UI.Xaml.FrameworkElement>":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::Windows.UI.Interactivity.TriggerAction<global::Windows.UI.Xaml.FrameworkElement>), GetXamlTypeByName("Windows.UI.Interactivity.TriggerAction"));
                AddToMapOfTypeToStandardName(typeof(global::Windows.UI.Interactivity.TriggerAction<global::Windows.UI.Xaml.FrameworkElement>),
                                                   "Windows.UI.Interactivity.TriggerAction<Windows.UI.Xaml.FrameworkElement>");
                xamlType = userType;
                break;

            case "System.Windows.Input.ICommand":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::System.Windows.Input.ICommand), null);
                xamlType = userType;
                break;

            case "VKapp.MainPage":
                userType = new global::VKapp.VKapp_XamlTypeInfo.XamlUserType(this, typeName, typeof(global::VKapp.MainPage), GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_27_MainPage;
                xamlType = userType;
                break;

            }
            return xamlType;
        }