locked
Two Top app bar in windows 8 app RRS feed

  • Question

  • Hello,

    my app have two app bar which is common to all pages so i created a global page but how i can add two topapp bar ?

    when i adding two appbar it says only one allowed as page.topappbar

    plase help me

    <Page.TopAppBar>
            <AppBar x:Name="PageAppBar" Padding="10,0,10,0" Background="{StaticResource AppBarBackGroundTheme}" BorderBrush="#FF00C5FF">
                <Grid>
                    <StackPanel x:Name="leftCommandPanel"  Orientation="Horizontal" HorizontalAlignment="Left">
                        <Button x:Name="Image"  HorizontalAlignment="Left"  Style="{StaticResource ImageAppBarButtonStyle}" VerticalAlignment="Top" Background="White"  />
                     </StackPanel>
                    <StackPanel x:Name="rightCommandPanel" Orientation="Horizontal" HorizontalAlignment="Right">
                        <Button x:Name="button2" Style="{StaticResource AddAppBarButtonStyle}" VerticalAlignment="Top" />  
                    </StackPanel>
                </Grid>
            </AppBar>
        </Page.TopAppBar>


    Santana George

    Friday, December 21, 2012 2:50 AM

Answers

All replies