I changed the Icon in main windows where valor is type of system, like this:
if (valor == 4)
this.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Vendas;component/Imagens/icone-vs.ico", UriKind.RelativeOrAbsolute));
else if (valor == 6)
this.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Vendas;component/Imagens/icone-v.ico", UriKind.RelativeOrAbsolute));
else if (valor == 7)
this.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Vendas;component/Imagens/icone-s.ico", UriKind.RelativeOrAbsolute));
But when I install this path
C:\DC_System\Vendas
the Icon just task bar not show. The interesting is that if i change the name of executable, the icon show. How can I resolve this?
What I have tried:
if (valor == 4)
this.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Vendas;component/Imagens/icone-vs.ico", UriKind.RelativeOrAbsolute));
else if (valor == 6)
this.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Vendas;component/Imagens/icone-v.ico", UriKind.RelativeOrAbsolute));
else if (valor == 7)
this.Icon = BitmapFrame.Create(new Uri("pack://application:,,,/Vendas;component/Imagens/icone-s.ico", UriKind.RelativeOrAbsolute));