How can I overlay system-tray icon ? WPF

2020-05-09 19:24发布

问题:

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).