Skip to content

Commit 7ec3124

Browse files
vnbaaijCopilot
andauthored
[Docs] Update docs for MessageBox result return values (#4403)
* Update doc for MessageBox result return values * Update examples/Demo/Shared/Pages/MessageBox/MessageBoxPage.razor Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 5499bc2 commit 7ec3124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Demo/Shared/Pages/MessageBox/MessageBoxPage.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
<p>
3636
When both the <code>PrimaryButton</code> and <code>SecondaryButton</code> properties are set, the <code>MessageBox</code> will be
3737
displayed as a modal. This means that the user has to click one of the buttons to close the dialog. It cannot be closed by clicking
38-
outside of the dialog. Clicking <code>PrimaryButton</code> will return <code>true</code> and clicking <code>SecondaryButton</code> will
39-
return <code>false</code> as the dialog result. See the Console log for these return values.
38+
outside of the dialog. The <code>DialogResult.Cancelled</code> property will reflect which button was pressed. Clicking <code>PrimaryButton</code> will return <code>false</code> for Cancelled and clicking <code>SecondaryButton</code> will
39+
return <code>true</code>.
4040
</p>
4141
<p>
4242
Internally, the <code>ShowMessageBox</code> methods call the <code>ShowDialog</code> methods. If is possible to directly call these methods and thereby have

0 commit comments

Comments
 (0)