[英]Add Icons to Application Bar Based on Page
如何基於功能在Windows Phone的應用程序欄中添加和刪除圖標。 我的想法是...
private void browser_Navigating(object sender, NavigatingEventArgs e)
{
if (e.Uri.AbsolutePath.Contains("m.google.com/app/plus/post") {
// add and remove icons here
}
}
只需刪除舊的並添加新的?
ApplicationBar.Buttons.Clear();
ApplicationBar.Buttons.Add(new ApplicationBarIconButton(iconUri) {Text = "some button"});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.