I am using the WPF toolkit and the WPF toolkit extended and notice that when I display a message box via:
MessageBox.Show("...");
I get the following…

I would like to make my main application window use this styling as well. Is there a way to do it?
EDIT: I’ve tried WindowStyle=”ToolWindow” and it doesn’t work.
Edit: In response to the answer below, please see picture below:

Also, I would like it to have a maximize and minimize button but with the same style as the button for close.
Thank you!
I want to add a disclaimer here that I threw this together pretty quickly out of curiosity, more than anything. I haven’t tested this much, other than dropping a few controls on there and running it. It works, but is shouldn’t be considered fully complete. I also think there are probably better ways to do this, but I figured this would at least give you a good starting place.
Add a new
ResourceDictionaryto your project, and add the following XAML:For illustrative purposes, let’s say we named the ResourceDictionary, BaseResource.xaml.
Next add a new Class to the same directory where you added the resource, and name the file BaseResource.xaml.cs, substituting the actual name of your XAML file.
Go back to BaseResource.xaml and change the
x:Class="CustomWindow.BaseResource"property to the full type name of the ResourceDictionary. If changed correctly, Visual Studio should complain that there is a duplicate definition in BaseResource.xaml.cs. Fix that by adding thepartialkeyword modifier to the class in the .cs file.Finally, add the following code to the code file:
Next add the ResourceDictionary to global Application resources. Again, substituting BaseResource.xaml with the name of your file, if it is different.
Add the style to the target Window.
A few things…
The designer messes with the style when there is no content. It is probably because of where I placed the TemplateBinding for Height and Width, but it looks fine at runtime, so I didn’t mess with it further. I also didn’t implement the resize grip for the corners, but it is easy enough to add to the template.
Finally, I didn’t draw icons for the Minimize and Maximize buttons. I suck at creating Paths in Blend.
Hope it helps.