Universal Apps Controls #1: AppBarButton

2015-10-13 16:27:36来源:作者:人点击

We'll be giving an example how they're used: <Page.BottomAppBar> <CommandBar> <AppBarButtonIcon= "Like" Label= "SymbolIcon" /> <!--Appbarbutton with bitmapicon.--> <AppBarButtonLabel= "BitmapIcon" > <AppBarButton.Icon> <BitmapIconUriSource= "ms-appx:///Assets/StoreLogo.png" /> </AppBarButton.Icon> </AppBarButton> <!--Appbarbutton with fonticon.--> <AppBarButtonLabel= "FontIcon" > <AppBarButton.Icon> <FontIconFontFamily= "Candara" Glyph= "Σ" /> </AppBarButton.Icon> </AppBarButton> <!--Appbarbutton with pathicon.--> <AppBarButtonLabel= "PathIcon" > <AppBarButton.Icon> <PathIconData= "F1M16,1220,2L20,161,16" HorizontalAlignment= "Center" /> </AppBarButton.Icon> </AppBarButton> </CommandBar> </Page.BottomAppBar> When you try the above code, it shall show you the appbarbuttons in bottom appbar:

AppBarButton is useful, if you're planning on giving user extra settings, social media links that look like anti-UX when put in the UI screen.

As its derived from Button class, AppBarButtons also have Click event. So you can add interaction to the buttons you added once it is clicked.

相关文章

    无相关信息

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台