如何在系统托盘中显示文本

时间:2014-04-09 20:20:49

标签: windows-phone-8 system-tray

首先,这是可能的,以及如何。我已经看过一些Microsoft应用程序,例如Bing Weather App,其中显示SystemTray而没有进度指示器移动。我希望实现相同的功能,并且能够在需要时切换进度指示器是打开还是关闭。我该如何实现这种功能?

2 个答案:

答案 0 :(得分:0)

以下是:

ProgressIndicator progress = new ProgressIndicator
{
    IsVisible = true,
    IsIndeterminate = true,
    Text = "Downloading details..."
};
SystemTray.SetProgressIndicator(this, progress);

答案 1 :(得分:0)

这里有很好的解释

http://www.c-sharpcorner.com/UploadFile/shubham0987/how-to-use-progress-indicator-in-windows-phone/

此外,如果您不想要进度条,您可以替换那里" SetProgressIndicator"与此功能

private void SetProgressIndicator(bool value)
{
    SystemTray.ProgressIndicator.IsIndeterminate = false;
    SystemTray.ProgressIndicator.IsVisible = value
}
相关问题