How can I overlay system-tray icon ? WPF

 ̄綄美尐妖づ 提交于 2019-12-02 20:17:45

问题


I've got a window like

<Window
  x:Class="Hardcodet.NetDrives.UI.SystemTray.Sample"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:tb="http://www.hardcodet.net/taskbar">
  <Window.TaskbarItemInfo>
      <TaskbarItemInfo>
          <TaskbarItemInfo.Overlay>
              <DrawingImage>
                  ...
              </DrawingImage>
          </TaskbarItemInfo.Overlay>
      </TaskbarItemInfo>
  </Window.TaskbarItemInfo>
  <tb:TaskbarIcon x:Name="myNotifyIcon" Icon="pic.png"/>
</Window>

How is it possible to add some DrawingImage on tray icon? I hope there is smth like TaskBarItemInfo,but for tray icon (not for taskbar icon).

来源:https://stackoverflow.com/questions/27011627/how-can-i-overlay-system-tray-icon-wpf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!