Skip to content

Clarify DialogHost.Close parameter documentation#3990

Merged
Keboo merged 1 commit intoMaterialDesignInXAML:masterfrom
BrensNina:patch-1
Jan 3, 2026
Merged

Clarify DialogHost.Close parameter documentation#3990
Keboo merged 1 commit intoMaterialDesignInXAML:masterfrom
BrensNina:patch-1

Conversation

@BrensNina
Copy link
Contributor

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.
@Keboo Keboo enabled auto-merge (squash) January 3, 2026 18:39
@Keboo Keboo added this to the 5.3.1 milestone Jan 3, 2026
@Keboo Keboo merged commit 255ea71 into MaterialDesignInXAML:master Jan 3, 2026
2 checks passed
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.

2 participants