User avatar
sfernandez
Site Admin
Posts: 3188
Joined: 22 Dec 2011, 19:20

Re: Unity3D and MVVM binding

05 Apr 2013, 02:38

In another post chain there's a conversation about binding. The main bit about binding is the ability to bind to any property of a xaml element and have the ViewModel/code behind provide the notification when the underlying property/variable changes..
We will provide a function that will allow your code behind to notify of property changes.
It would look in your example something like this:
private bool _isVisible;
public bool IsVisible
{
    get { return _isVisible; }
    set
    {
        if (_isVisible != value)
        {
            _isVisible = value;
            Noesis.Reflection.PropertyChanged("IsVisible");
        }
    }
}
About collections, if you use our Noesis.Collection, any modification (add, insert, remove, clear,...) will be notified to NoesisGUI, and interface will be updated accordingly.
 
User avatar
jsantos
Site Admin
Posts: 4186
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity3D and MVVM binding

05 Apr 2013, 12:56

Hi ronan,

1. Yes, that is an option we could incorporate to unity. Thanks for your suggestion.
2. The idea would be selling both in our page and in the unity store. We are still analyzing the implications of selling through the store. And in fact, we are preparing a promotional video of NoesisGUI for Unity and we would like some support on their side.
2 questions about unity too
1) I see the unity option only includes forum support, any chance you could sell an upgrade to email support too? (maybe a monthly fee for that support?)
2) Will you sell it on the asset store? pretty pretty please with sugar on top? Even if it means you're selling both in & out of the asset store and the asset store version is more expensive? this makes it SO MUCH easier for me to manage licences and product as someone who owns 100s of assets on unity.
 
edgarhsanchez
Topic Author
Posts: 34
Joined: 21 May 2012, 18:19

Re: Unity3D and MVVM binding

05 Apr 2013, 20:25

Glad to see binding being done with support for a RaisePropertyChanged feature. Will there also be an ObservableCollection?
 
User avatar
sfernandez
Site Admin
Posts: 3188
Joined: 22 Dec 2011, 19:20

Re: Unity3D and MVVM binding

08 Apr 2013, 16:07

We don't have a ObservableCollection class, but you can use our Noesis.Collection, and any modification (add, insert, remove, clear,...) will be notified to NoesisGUI, and interface will be updated accordingly.
 
edgarhsanchez
Topic Author
Posts: 34
Joined: 21 May 2012, 18:19

Re: Unity3D and MVVM binding

09 Apr 2013, 03:42

So I'd like to pre-order. How do I do that?
 
User avatar
jsantos
Site Admin
Posts: 4186
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity3D and MVVM binding

10 Apr 2013, 15:05

Hi edgar,

Sorry, we are not accepting payments yet because the infrastructure is not ready. As soon as it is ready we will make an announcement.

Thanks for your interest.
 
edgarhsanchez
Topic Author
Posts: 34
Joined: 21 May 2012, 18:19

Re: Unity3D and MVVM binding

24 Jun 2013, 02:50

Having some problems implementing my own application using the DelegateCommand in the CommandExample.

Maybe someone could point out the mistake I'm making. The project will run in Unity and I can see where my MainControlViewModel is correctly instantiated but the command won't fire when I click the properties button. When I run the CommandExample project I don't get this error but I'm seeing where the problem is.

I've tried to attach the project files here but the file limit size is way too small even after zip. Is there another way?
 
User avatar
sfernandez
Site Admin
Posts: 3188
Joined: 22 Dec 2011, 19:20

Re: Unity3D and MVVM binding

24 Jun 2013, 11:14

Can you send me your project files via mail to [email protected]?, or maybe you can send me an invitation to share some folder at Dropbox, Google Drive or Microsoft SkyDrive.
 
edgarhsanchez
Topic Author
Posts: 34
Joined: 21 May 2012, 18:19

Re: Unity3D and MVVM binding

24 Jun 2013, 16:03

thanks... I've sent you my entire project "Content" files and Unity3D project scene.
 
edgarhsanchez
Topic Author
Posts: 34
Joined: 21 May 2012, 18:19

Re: Unity3D and MVVM binding

25 Jun 2013, 16:48

You solved my problem I think.

With fixes to DataContext I needed to make in code and your changes to the Visibility stuff things should work after that.

big thanks.

Who is online

Users browsing this forum: Bing [Bot] and 2 guests