【发布时间】:2018-03-27 21:13:33
【问题描述】:
您好,我正在开发一个 wpf 应用程序,然后我需要在任务栏中放置一个通知球,如下图所示
我正在使用以下代码
<tb:TaskbarIcon x:Name="IconeDeNotificacao"
IconSource="../Images/icon-one.ico"
ToolTipText="ArquivarNfe"
TrayLeftMouseUp="ShowWindow_Click">
<!-- Set a simple context menu -->
<!-- the data context of the context menu is the NotifyIcon itself (see more about this in DataBinding samples) -->
<tb:TaskbarIcon.ContextMenu>
<ContextMenu>
<MenuItem Header="Abrir Sistema"
Command="{commands:ShowSampleWindowCommand}"
CommandParameter="TelaPrincipal">
<MenuItem.Icon>
<fa:ImageAwesome Icon="PlayCircle" Width="10"></fa:ImageAwesome>
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="Esconder Sistema"
Command="{commands:HideSampleWindowCommand}"
CommandParameter="TelaPrincipal">
<MenuItem.Icon>
<fa:ImageAwesome Icon="Pause" Width="10"></fa:ImageAwesome>
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="Configurações"
Command="{commands:ConfiguracoesWindowCommand}"
CommandParameter="TelaPrincipal">
<MenuItem.Icon>
<fa:ImageAwesome Icon="Cog" Width="10"></fa:ImageAwesome>
</MenuItem.Icon>
</MenuItem>
<Separator />
</ContextMenu>
</tb:TaskbarIcon.ContextMenu>
</tb:TaskbarIcon>
但我在the documentation 上没有找到任何关于此的信息
问题是:有没有办法做到这一点? 如果是,我可以使用此代码或另一个库吗? 也许我将其称为通知球,因为从技术上讲我不知道它的名字
【问题讨论】: