Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to ask a simple question (I think it is simple, but I did not find it immediately ).
when a WPF application minimized to task bar , I want to show my own Icon for application on system task bar, how can I do that?

which property , how should I work on for this?

thanks in advance!
Posted
Updated 6-Mar-22 14:46pm

In your WPF window's Icon property you can set icon. This will be shown at taskbar while running you application.

You can also set icon at application level means after installation the icon of your application's exe or shortcut.

Go to Application Property Page in Application Tab under Resources group box you can set your desired icon.
 
Share this answer
 
v3
Comments
Alimjan Yasin 18-Aug-11 6:40am    
but it did not show on task bar when minimized?
Suresh Suthar 18-Aug-11 6:42am    
I just modified the solution. Please read first paragraph.
Alimjan Yasin 19-Aug-11 0:44am    
set windows icon property that worked. thanks for your kind help !
I think what you are looking for is this:

http://possemeeg.wordpress.com/2007/09/06/minimize-to-tray-icon-in-wpf/[^]

Just shout if you dont understand anything!
 
Share this answer
 
Comments
Alimjan Yasin 19-Aug-11 0:36am    
I am not looking for tray icon, I want to replace the icon when app is minimized to system taskbar.
you just shut your mouth if you don't understand what I am talking about.
ShowInTaskbar="True"

<Window x:Class="ReactivatePhoneNumber_WindowsApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:ReactivatePhoneNumber_WindowsApp"
        mc:Ignorable="d"  
         ShowInTaskbar="True" Icon="/image/new_logo_doo_icon.ico" >
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900