How can I overlay system-tray icon ? WPF

1.6k views Asked by At

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

0

There are 0 answers