简体   繁体   English

MahApps.metro如何在标题栏左上角添加图标

[英]MahApps.metro how to add icon to title bar left corner

I seem to be having issue's getting a icon for my application to show up in the left corner of the window title bar. 我似乎在将应用程序图标显示在窗口标题栏的左上角时遇到问题。 I already have one set for the program's .exe But to no avail everything I have tried is not setting a seperate icon specifically for the title bar. 我已经为该程序的.exe设置了一组,但无济于事,我尝试过的所有操作都没有为标题栏专门设置单独的图标。 if you could help with some insight it would be much appreciated. 如果您可以提供一些见解,将不胜感激。

If you add your icon to the root project solution folder then you can use this icon by setting the Icon property for the window. 如果将图标添加到根项目解决方案文件夹,则可以通过设置窗口的Icon属性来使用此图标。

Icon="mahapps.metro.logo2.ico"

在此处输入图片说明

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM