Skip to content

Conversation

@BrensNina
Copy link

The documentation for DialogHost.Close(...) described the parameter argument as being "to provide to close handler", which is misleading and incomplete.

Internally, DialogHost.Close forwards the value directly to DialogSession.Close(parameter). In DialogSession.Close, the parameter is correctly documented as the dialog result value, which is returned by DialogHost.Show(...) and exposed through DialogClosingEventArgs.Parameter.

This change aligns the DialogHost.Close documentation with the existing DialogSession.Close documentation, making it clear that the parameter represents the dialog result and is not solely intended for close handlers.

The documentation for DialogHost.Close(...) described the `parameter` argument
as being "to provide to close handler", which is misleading and incomplete.

Internally, DialogHost.Close forwards the value directly to
DialogSession.Close(parameter). In DialogSession.Close, the parameter is
correctly documented as the dialog result value, which is returned by
DialogHost.Show(...) and exposed through DialogClosingEventArgs.Parameter.

This change aligns the DialogHost.Close documentation with the existing
DialogSession.Close documentation, making it clear that the parameter represents
the dialog result and is not solely intended for close handlers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant