Application Bar Integration
Posted: Thu Oct 11, 2012 3:36 pm
I want to add a "Back" button to my report viewer page to go back in the navigation stack. I'd like to add it to the application bar, and I saw on the video here: http://www.youtube.com/watch?v=Ai1mA6fc0G4 at time 1:20 that you can add the following code to your page constructor to integrate the viewer buttons to the application bar:
However, when I use this code in my code behind as shown, I get the following error:
Frame is not found!
Source - Stimulsoft.Report.Viewer.RT
Stack Trace - at Stimulsoft.Report.Viewer.RT.StiViewerControl.StiViewerControl_InitAppBars_Loaded(Object sender, RoutedEventArgs e) in d:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Viewer.RT\Viewer\StiViewerControl.cs:line 693
I think this is due to the fact that I'm using the Okra Framework for Navigation (http://okra.codeplex.com/). The NavigationManager sets the Window.Current.Content to the target page, I believe and therefore is not using frames. Is there a way around this?
Code: Select all
StiOptions.Viewer.IntegrateToTheBottomAppBar = true;
StiOptions.Viewer.IntegrateToTheTopAppBar = true;
Frame is not found!
Source - Stimulsoft.Report.Viewer.RT
Stack Trace - at Stimulsoft.Report.Viewer.RT.StiViewerControl.StiViewerControl_InitAppBars_Loaded(Object sender, RoutedEventArgs e) in d:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Viewer.RT\Viewer\StiViewerControl.cs:line 693
I think this is due to the fact that I'm using the Okra Framework for Navigation (http://okra.codeplex.com/). The NavigationManager sets the Window.Current.Content to the target page, I believe and therefore is not using frames. Is there a way around this?