SetDataContext in 1.2 for Unity
Posted: 12 Mar 2015, 21:20
Hi,
I'm trying to get 1.2 for Unity to work with binding to my viewmodel, but nothing seem to work anymore.
Previously, I would use this:
Now:
- "GetRoot" doesn't work anymore (replaced by GetContent? MonoDevelop doesn't recognize GetContent but Unity compiler does...)
- "SetDataContext" is recognized by MonoDevelop, but Unity compiler doesn't accept this.
Help!?
I'm trying to get 1.2 for Unity to work with binding to my viewmodel, but nothing seem to work anymore.
Previously, I would use this:
Code: Select all
ModelView _modelView = new ModelView(_manager);
NoesisGUIPanel noesisGUI = GetComponent<NoesisGUIPanel>();
Noesis.Grid grid = noesisGUI.GetRoot<Noesis.Grid>();
grid.SetDataContext (_modelView);- "GetRoot" doesn't work anymore (replaced by GetContent? MonoDevelop doesn't recognize GetContent but Unity compiler does...)
- "SetDataContext" is recognized by MonoDevelop, but Unity compiler doesn't accept this.
Help!?