I am using the Extended WPF Toolkit message box here: http://wpftoolkit.codeplex.com/wikipage?title=MessageBox&referringTitle=Home but I'm not sure how to remove the close button from the MessageBox type - I don't want the user to close the MessageBox at all.
Thanks for the help!
EDIT: If i create a style setter in code like this:
System.Windows.Style style = new Style();
style.Setters.Add(new Setter(Xceed.Wpf.Toolkit.MessageBox.CloseButtonVisibilityProperty,
Visibility.Hidden));
messageBox.Style = style;
I get an exception:
An exception of type 'System.InvalidOperationException' occurred in Xceed.Wpf.Toolkit.dll but was not handled in user code
Additional information: Close button on MessageBox is always Visible.
According to your link there is a CloseButtonVisibility property which can get or set the visibility of the close button, Try setting it to 'false'