Actions for ApplicationBar loaded from Resource

Mar 28, 2012 at 8:21 AM
Edited Mar 28, 2012 at 8:21 AM


I'm loading ApplicationBar in my View from resource like this:

<shell:ApplicationBar x:Key="commentsAppBar">
     <caliburn:AppBarButton IconUri="/Resources/Images/ico.png" Text="send" Message="Send" />

ApplicationBar = Resources["commentsAppBar"] as ApplicationBar;

I'm doing this each time when pivot slides panes.

Unfortunatelly after loading from resource actions never fire. I also can't use "Can+ActionName" methods to enable/disable ApplicationBar buttons.

Is there any way to overcome this issue?


Thanks in advance,