2012-06-26 54 views
0

道歉如果我錯了,我正在使用C#開發使用Windows8預覽版的metro應用程序。我們都知道我們可以創建底部的應用程序欄。 http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh781232.aspx地鐵應用程序中的自定義底部應用程序欄

通過使用下面的代碼,我們可以得到上傳應用程序欄

<Button x:Name="BTNUpload" AutomationProperties.Name="upload" Style="{StaticResource UploadAppBarButtonStyle}"/> 

我的問題是如何創建自定義的應用程序吧?請幫我 在此先感謝

回答

0

,就像他們在MSDN說:只需在XAML中自定義並添加該代碼即可。

<Page.BottomAppBar> 
<AppBar x:Name="bottomAppBar" Padding="10,0,10,0"> 
    <Grid> 
     <StackPanel Orientation="Horizontal" HorizontalAlignment="Left"> 
      <Button Style="{StaticResource EditAppBarButtonStyle}" Click="Button_Click"/> 
      <Button Style="{StaticResource RemoveAppBarButtonStyle}" Click="Button_Click"/> 
      <Button Style="{StaticResource AddAppBarButtonStyle}" Click="Button_Click"/> 
     </StackPanel> 
     <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> 
      <Button Style="{StaticResource RefreshAppBarButtonStyle}" Click="Button_Click"/> 
      <Button Style="{StaticResource HelpAppBarButtonStyle}" Click="Button_Click"/> 
     </StackPanel> 
    </Grid> 
</AppBar> 

+0

感謝Mualig,能否請你解釋如何自定義,把我們自己的形象爲應用程序按鈕 –

相關問題