开发者

WPF Firefox 4 Top Bar?

开发者 https://www.devze.com 2023-01-15 22:28 出处:网络
How would one create t开发者_JAVA技巧he top bar such as in Firefox 4\'s Orange bar? I don\'t want to do my own window class as I still want to be hardware accelerated rather than sofware rendered.

How would one create t开发者_JAVA技巧he top bar such as in Firefox 4's Orange bar?

I don't want to do my own window class as I still want to be hardware accelerated rather than sofware rendered.

Is there a way to do this?


You'll need to do your own Window drawing, with custom chrome, in order to achieve this type of effect. Here is some sample code showing the technique.

I don't want to do my own window class as I still want to be hardware accelerated rather than sofware rendered.

With WPF, provided you're on a proper rendering tier, the window will still stay hardware accelerated, as WPF uses hardware acceleration for its rendering anyways.

0

精彩评论

暂无评论...
验证码 换一张
取 消