Styling window border with theme

Answered (Verified) This post has 1 verified answer | 3 Replies | 2 Followers Thread's RSS feed.

Markus
Points 1,450
Replied On: Mon, May 22 2017 2:46 AM Reply

Hello,

I am using the dark metro theme, and I want to have the theme also applied on the System.Windows.Window border. How can I use the theme to apply it also on the window itself.

Currently, the default Win 7 theme is used for the window, as shown in the attached picture.


  • Post Points: 20

Verified Answer

Svetla Boykova
Points 2,030
Infragistics Employee
Answered (Verified) Replied On: Mon, May 22 2017 8:12 AM Reply
Verified by Markus

Hello Markus,

The Metro Dark theme doesn’t provide style for the WPF Window. You may find useful information for styling the window in the following post:

https://code.msdn.microsoft.com/windowsdesktop/WPF-styling-a-Window-in-fcf4e4ce

Let me know if you have any questions.

Svetla Boykova
Senior Software Developer
Infragistics

  • Post Points: 20

All Replies

Svetla Boykova
Points 2,030
Infragistics Employee
Answered (Verified) Replied On: Mon, May 22 2017 8:12 AM Reply
Verified by Markus

Hello Markus,

The Metro Dark theme doesn’t provide style for the WPF Window. You may find useful information for styling the window in the following post:

https://code.msdn.microsoft.com/windowsdesktop/WPF-styling-a-Window-in-fcf4e4ce

Let me know if you have any questions.

Svetla Boykova
Senior Software Developer
Infragistics

  • Post Points: 20
Markus
Points 1,450
Replied On: Mon, May 22 2017 10:59 AM Reply

Thanks. But do you have a complete example? The attached link only contains, some parts.

  • Post Points: 20
Svetla Boykova
Points 2,030
Infragistics Employee
Replied On: Tue, May 23 2017 12:50 AM Reply

Hell Markus,

Click on the button named “C# …” in the Download section of the page and a runnable C# solution is downloaded with the complete example.

Svetla Boykova
Senior Software Developer
Infragistics

  • Post Points: 5
Page 1 of 1 (4 items) | RSS