我有一个代码,其中我在“应用程序”图标上放置了图片:
Title="Test WPF" Height="600" Width="800" WindowStartupLocation="CenterScreen" Closing="WindowClosing" Icon="ICON.PNG"
我知道图标的大小约为12 x 12或24 x 24。
是否可以按大小自定义应用程序图标?例如40 x 24?
答案 0 :(得分:0)
您可以使用WindowChrome类来自定义窗口的非客户区域。在此页面中,有一节专门提到应用程序图标和标题。
WindowChrome类不会显示应用程序图标和标题;它们必须作为自定义内容添加到边框。
这是an example上的操作方法。