Fix MessageBox for null Caption
This commit is contained in:
1 parent
ab6e2efe21
commit
67219bd62e
1 file changed
+2
-2
@@ -298,7 +298,7 @@ namespace HandyControl.Controls
|
||||
Owner = ownerWindow,
|
||||
WindowStartupLocation = ownerIsNull ? WindowStartupLocation.CenterScreen : WindowStartupLocation.CenterOwner,
|
||||
ShowTitle = true,
|
||||
Title = caption,
|
||||
Title = caption ?? System.Reflection.Assembly.GetExecutingAssembly().GetName().Name,
|
||||
Topmost = ownerIsNull,
|
||||
_messageBoxResult = defaultResult
|
||||
};
|
||||
@@ -388,4 +388,4 @@ namespace HandyControl.Controls
|
||||
|| value == MessageBoxResult.Yes;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user