如何在 WPF Aero Glass 标题栏中显示图像?
我有标准的 WPF 窗口,我已将窗口顶部的 Aero Glass 扩展了大约 50 像素。我想保持标准最小。最大限度。和关闭按钮、标题文本和窗口图标。
我想在标题栏中间的标题栏中显示一些小图像(即图标)。我怎么能这样做呢?如果我将图像放置在标题栏附近,WPF 将不会显示图像,我认为标题栏是非客户区域。
I have standard WPF Window that I have extended the Aero Glass on the top of the window around 50 pixels. I would like to keep the standard Min. Max. and Close buttons, Title Text and Window Icon.
I would like to display a few small images (i.e. icons) in the title bar, around the middle of the title bar. How could I do this? WPF will not display the images if I place them near the title bar, I assume as the title bar is non-client area.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 code.msdn.com 上的 WPF Chrome 项目。
它在标题栏上绘制图像。
Take a look at the WPF Chrome project on code.msdn.com.
It draws an image on the title bar.