Dynamic app bar: Panorama sliding animation is broken when navigating to a panorama item without appbar

Feb 8, 2013 at 12:02 PM
Edited Feb 8, 2013 at 12:17 PM
I have 3 pano items, only 1st one has app bar.
When swiping to the 2nd pano item, the usual smooth sliding animation is gone.
Here's the code:

<i:Interaction.Triggers>
            <appBarUtils:SelectedPanoItemChangedTrigger>
                <appBarUtils:SelectedPanoItemChangedTrigger.SelectionMappings>
                    <appBarUtils:SelectionMapping SourceIndex="0"
                                                  TargetIndex="0" />
                </appBarUtils:SelectedPanoItemChangedTrigger.SelectionMappings>
                <appBarUtils:SwitchAppBarAction>
                    <appBarUtils:AppBar Id="0">
                        <appBarUtils:AppBarButton  IconUri="/Assets/AppBar/new.png"
                                                   Text="report issue"
                                                   Command="{Binding IssueList.ReportIssueCommand}" />
                        <appBarUtils:AppBarButton Text="filter"
                                                  Command="{Binding IssueList.FilterIssuesCommand}"
                                                  IconUri="/Assets/AppBar/filter.png" />
                    </appBarUtils:AppBar>
                </appBarUtils:SwitchAppBarAction>
            </appBarUtils:SelectedPanoItemChangedTrigger>
        </i:Interaction.Triggers>


UPDATE: I see that this is not a problem because of the library itself.

If on Panorama.SelectionChanged you call this.ApplicationBar.IsVisible = false when Panorama.SelectedIndex is 1 for example, the animation is broken
I wonder if it the library can provide a support for this. If you look to the built-in Office app, the animation is not broken when navigation trough the pages
Coordinator
May 22, 2013 at 2:48 PM
Hi there,

I also noticed this issue sometimes. But I'm not sure why. If you know the cause or you have a fix, please do tell me, and I'll apply it to the code.

Thanks/Allen