c# - Remove close button in an Extended WPF Toolkit style -


i using extended wpf toolkit message box here: http://wpftoolkit.codeplex.com/wikipage?title=messagebox&referringtitle=home i'm not sure how remove close button messagebox type - don't want user close messagebox @ all.

thanks help!

edit: if create style setter in code this:

system.windows.style style = new style(); style.setters.add(new setter(xceed.wpf.toolkit.messagebox.closebuttonvisibilityproperty,  visibility.hidden));  messagebox.style = style; 

i exception:

an exception of type 'system.invalidoperationexception' occurred in xceed.wpf.toolkit.dll not handled in user code

additional information: close button on messagebox visible.

according link there closebuttonvisibility property can or set visibility of close button, try setting 'false'


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -