Merge pull request #40 from ghost1372/patch-10
Fix MessageBox for null Caption
This commit is contained in:
1 file changed
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Linq;
|
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
@@ -298,7 +297,7 @@ namespace HandyControl.Controls
|
|||||||
Owner = ownerWindow,
|
Owner = ownerWindow,
|
||||||
WindowStartupLocation = ownerIsNull ? WindowStartupLocation.CenterScreen : WindowStartupLocation.CenterOwner,
|
WindowStartupLocation = ownerIsNull ? WindowStartupLocation.CenterScreen : WindowStartupLocation.CenterOwner,
|
||||||
ShowTitle = true,
|
ShowTitle = true,
|
||||||
Title = caption,
|
Title = caption ?? string.Empty,
|
||||||
Topmost = ownerIsNull,
|
Topmost = ownerIsNull,
|
||||||
_messageBoxResult = defaultResult
|
_messageBoxResult = defaultResult
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user