i tried to use the Custom WPFMessageBox (wpfmessagebox.codeplex.com/) because i need to Style the MsgBox. I copied all files to my Projekt and added a Style to the Window
<Window x:Class="MessageBoxUtils.WPFMessageBoxWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MessageBoxUtils"
Style="{StaticResource DialogWindowStyle}"
Title="{Binding Title}" ResizeMode="NoResize" SizeToContent="WidthAndHeight" FlowDirection="{Binding TitleFlowDirection}"
ShowInTaskbar="False" WindowStartupLocation="CenterScreen" KeyDown="Window_KeyDown" MinWidth="250">
<Grid>
<local:WPFMessageBoxControl />
</Grid>
After this the WPF Messagebox looks this: https://i.stack.imgur.com/0NU38.png
But normal Windows with that Style look this:
https://i.stack.imgur.com/z5Ku4.png
Why has the WPFMessageBox a double "Header"? And the styled one can not be dragged via window-chrome like the normal windows. What is different with WPFMessageBox so that the Style doesnt apply right?
thx for help
edit: here's the code from the other window which works fine
<Window x:Class="Mx.View.KonfigurationView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Style="{StaticResource DialogWindowStyle}"
Title="Konfiguration" Height="860" Width="1024">
<Grid>