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
Post a Comment