broadband
broadband

Reputation: 3498

Why only top border is visible when ToolWindow is used?

I created new .NET WPF desktop application using Visual Studio 2019. The default mainwindow looks like this:

enter image description here

What I want is to hide the icon, which I accomplished by setting next property to Window

WindowStyle="ToolWindow"

It works, but now only Window's top black border is visible. No left, right or bottom are visible as in upper example (with Icon).

enter image description here

How can I add all window borders (visually the same as first example) and keep WindowStyle 'ToolWindow'? I tried adding BorderBrush and BorderThichness, but it's not the same. The result is here:

enter image description here

Upvotes: 0

Views: 667

Answers (0)

Related Questions