result = HCMessageBox.Show(
new MessageBoxInfo() {
Message = "是否要保存?",
Caption = App.APP_NAME,
Button = MessageBoxButton.YesNoCancel,
IconKey = ResourceToken.WarningGeometry,
IconBrushKey = ResourceToken.AccentBrush,
DefaultResult = MessageBoxResult.Yes,
YesContent = "保存",
NoContent = "不保存",
CancelContent = "取消",
ConfirmContent = "???" // By the way, What is it? I did not see any effect.
});
If i click [X] close button, the result is Yes,It should return the Cancel.
Describe the bug
If i click [X] close button, the result is
Yes
,It should return theCancel
.Steps to reproduce the bug
Yes
, Expected isCancel
Expected behavior
No response
Screenshots
No response
NuGet package version
HandyControls (Custom version) 3.4.0
IDE
Visual Studio 2022
Framework type
.Net 6.0
Windows version
Windows 11 (22000)
Additional context
No response