WPF borderless window with shadow VS2012 style

后端 未结 5 1954
失恋的感觉
失恋的感觉 2021-01-30 07:51

I\'m trying to create an application that looks like Visual Studio 2012. I have used WindowChrome to remove the window borders, and changed the border color in my xaml.

5条回答
  •  长发绾君心
    2021-01-30 08:01

    I'm trying to obtain the same effect, my app is using .NET 4 and thus I cannot directly use WindowChrome (so, I'm using the Microsoft Windows Shell library to get the same).

    In this thread it is correctly noted that using spy++ it can be seen that Visual Studio has four windows called VisualStudioGlowWindow to implement the glowing effect. It has been already described in many places how the AllowsTransparency property to true can reduce the performances.

    So, I tried to go the VS way and the result is not bad (at least, for me); no need to use blur or similar effect on the main window, I just had to fight a bit with some window states (focus/visible/hidden).

    I've put all the needed stuff on github - hope this can help.

提交回复
热议问题