Avoid invalid binding notice when showing a MessageBox with the default title

This commit is contained in:
Antony Male 2014-07-24 09:31:29 +01:00
parent 240a543de8
commit d51ef4a0a4
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ namespace Stylet
/// <param name="options">Additional options</param>
/// <param name="buttonLabels">You may override the text for individual buttons on a case-by-case basis</param>
/// <returns>Which button the user clicked</returns>
public static MessageBoxResult ShowMessageBox(this IWindowManager windowManager, string text, string title = null,
public static MessageBoxResult ShowMessageBox(this IWindowManager windowManager, string text, string title = "",
MessageBoxButton buttons = MessageBoxButton.OK, MessageBoxImage icon = MessageBoxImage.None,
MessageBoxResult defaultButton = MessageBoxResult.None, MessageBoxResult cancelButton = MessageBoxResult.None,
MessageBoxOptions options = MessageBoxOptions.None,