docs-desktop icon indicating copy to clipboard operation
docs-desktop copied to clipboard

Window.Close documentation missing return value for CloseDialog

Open RedX2501 opened this issue 1 year ago • 3 comments

Type of issue

Missing information

Description

https://learn.microsoft.com/en-us/dotnet/desktop/wpf/windows/how-to-close-window-dialog-box?view=netdesktop-8.0#cancel-close-and-hide

This page states that Close will return false when the window is shown using ShowDialog. This information is missing from this page.

Page URL

https://learn.microsoft.com/en-us/dotnet/desktop/wpf/windows/how-to-close-window-dialog-box?view=netdesktop-8.0

Content source URL

https://github.com/dotnet/docs-desktop/blob/main/dotnet-desktop-guide/net/wpf/windows/how-to-close-window-dialog-box.md

Document Version Independent Id

84dce3df-b013-726d-b5ec-cffd901051ae

Article author

@adegeo

RedX2501 avatar Dec 09 '23 07:12 RedX2501

Hi @RedX2501 thank you for opening this issue. However, I don't see what you're referencing. Can you add some more information about what is missing and where specifically it's missing?

adegeo avatar Dec 18 '23 15:12 adegeo

I see, i thought the linked pointed to the close API. So i mean that this page https://learn.microsoft.com/en-us/dotnet/api/system.windows.window.close?view=windowsdesktop-8.0 about the close method on the window class Is missing the information that ShowDialog will return false (and not null) when a dialog is closed via Close.

RedX2501 avatar Dec 18 '23 22:12 RedX2501

OK thank you for that clarification! I see what you're talking about. I'll look at getting an update in there. Thanks again!

adegeo avatar Dec 19 '23 17:12 adegeo