|at fragment can I use command or handle of host ? [message #725770]
||Thu, 15 September 2011 14:03
| Cristiano Gaviao
Registered: July 2009
In my application test I've created one application and 2 fragment projects.
In the Application I've added one PerspectiveStack, a WindowTrim with one toolbar.
Both fragments are contributing a perspective to PerspectiveStack and a HandledToolItem to the Toolbar. It seems that this contribution is working properly.
Now I want that the contributed button calls a command to change the current Perspective. So, I've added one Command and Handler (that should call a method to do this change ) to the Host.
Well, but when I went to the fragments I couldn't see the command and handler created from Host. So I think I can't use it...
should I create a Handle and Command in each fragment ?
another question, how could I create a kind of parameterized command where I could pass the perspective that I want to be shown?
thanks for any tip
Powered by FUDForum
. Page generated in 0.01609 seconds