tags:

views:

188

answers:

1

I'm currently creating a WPF Exception Window, much in the style of the MessageBox (static show methods). In attempting to style it similarly, I have created a ExceptionWindowOptions enum which contains the value, RightAlign.

When the RightAlign flag is tagged in the MessageBox class, the window title is aligned to the right (next to the control box (minimize, max, close)), so i'm attempting to emulate this behaviour.

I have investigated as much as possible and I cannot find a WPF solution.

I am familiar with interop with native methods as I am using GetWindowLong and SetWindowLong for the RtlReading option, but I haven't managed to find anything to change the location of the window title.

Any help is appreciated.

+1  A: 

Hi there,

Take a look on FluidKit library from Pavan Podila. Particularly, you may be interested in GlassWindow. The main idea here is that you override window style from scratch. Sure, this requires you to customize style for different themes, but at least it's a solution, if you don't find anything else.

Anvaka