Search found 38 matches

by joshmond
09 Jun 2018, 05:14
Forum: General Discussion
Replies: 37
Views: 6391

Re: MonoGame: switching between views

Hey, just an update. I have changed added a LoginView.xaml.cs to my project and that current extends UserControl, I still get the same error message as before but what's interesting is if I extend from Noesis.UserControl, the class comes up with an error "Partial view must not extend a differen...
by joshmond
08 Jun 2018, 22:34
Forum: General Discussion
Replies: 37
Views: 6391

Re: MonoGame: switching between views

If I change my Datacontext to point to a ViewModel instead of a View, my window loads up but I can't seem to load up a view despite my base class extending UserControl. Below I have attached both of my views and view models as well as my base view model (NotifyProperty.cs)





-Joshmond
by joshmond
08 Jun 2018, 14:47
Forum: General Discussion
Replies: 37
Views: 6391

Re: MonoGame: switching between views

The LoginView is a xaml file that is located inside my views folder of the project. How I have thing set up currently is the CreateNoesisGUI method creates the mainwindow.xaml and that file knows about my LoginView.xaml which is a UserControl. I don't think I understand when you mention a data templ...
by joshmond
08 Jun 2018, 02:40
Forum: General Discussion
Replies: 37
Views: 6391

Re: MonoGame: switching between views

Hey, just an update I have managed to structure my project in the way that I want and everything is working fine however, when it comes to switching views via the data-context I keep getting a noesis exception: "NoesisException: Menus\MainWindow.xaml(19): Can't set 'project.UI.Menus.Views.Login...
by joshmond
07 Jun 2018, 17:24
Forum: General Discussion
Replies: 37
Views: 6391

Re: MonoGame: switching between views

That's what I thought initially, it would be a lot better to keep my views/viewmodels separate from my game logic. I'm just wondering how to do that. Would I need to change that's method's path to point to a folder insaide my WPF project or could I remove that method completely if not, would the Noe...
by joshmond
07 Jun 2018, 11:15
Forum: General Discussion
Replies: 37
Views: 6391

Re: MonoGame: switching between views

Thanks for that, I'll definitely give it a try. By the way I'm using the MonoGame wrapper for NoesisGUI and that automatically points to the "Data" folder inside the SharpSDK and I was wondering if it's possible to create a WPF project inside my current game project and use that to store m...
by joshmond
06 Jun 2018, 22:08
Forum: General Discussion
Replies: 37
Views: 6391

MonoGame: switching between views

Hey guys, I was wondering if anyone could perhaps point me in the right direction with this, I want to use NoesisGUI for my project but I'm unsure on how to switch between the XAML views. I have an idea but I'm not sure if you can use the following XAML attrbutes with NoesisGUI: "x:Class="...
by joshmond
05 Jun 2018, 23:19
Forum: General Discussion
Replies: 1
Views: 796

Problem with MonoGame and NoesisGUI

Hello guys, I'm developing an game using MonoGame and I chose to use Noesis for the UI however, I am having a little problem getting the login sample to work. I am using the MVVM architectural pattern and the sample login menu. The window loads but I cannot get any validation text to display when I ...