如何更改WPF窗口标题栏的颜色.
问题描述:
大家好
我想在wpf窗口中更改标题栏的颜色.
请帮助.
thanx
hi all
i want to change the color of title bar in wpf window.
plz help..
thanx
答
请检查以下内容-
更改WPF标题栏背景颜色 [更改标题栏的颜色 [ ^ ].
如何更改标题栏颜色 [
Please check these out -
Changing WPF title bar background color[^].
Changing color of TitleBar[^].
How To Change Title Bar Color[^].
嗨.我给你两个答案.
我认为有2种方法可以做到这一点.
通过模板化和样式化实现您自己的WPF窗口样式的第一要旨.
第二,依靠WinApi方法并在.NET环境中的P \ Invoke中重新获得渊博的知识.
因此,我建议您使用第一种方法,因为它具有灵活性.
我认为此链接可以为您提供帮助:
Wpf窗口模板
Hi. I came with two answers to you.
At my opinion there are 2 approaches to do it.
In core of first lies implementation of your own WPF Window style via Templating and Stylization.
Second one, relies on WinApi methods and rerquire profound knowledges in P\Invoke in .NET enviroment.
So i would recommend to you use first approach, in terms of it flexibility.
I think this link can help you:
Wpf window template