Question

In WPF XAML, WindowStyle can be None, SingleBorderWindow, ThreeDBorderWindow, ToolWindow.

I tried the options myself and also looked into MSDN, yet I cannot tell any difference visually between ThreeDBorderWindow and SingleBorderWindow. The "ThreeDBorder" looks just as 2-D as SingelBorder. What are their difference?

Was it helpful?

Solution

You have to switch to Windows Classic theme to see the difference. If you are using a "modern" theme like Windows 7 there is no difference.

Below you have the SingleBorderWindow to the left and ThreeDBorderWindow to the right when using Windows Classic theme on my computer. (The innermost gray border is from a control in the window and is not part of the window border.)

SingleBorderWindow ThreeDBorderWindow

The "3D" border has an inside highlight that I guess gives it a raised or three dimensional look.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top