lepoco / lepoco/wpfui

Dialog: `IsDefault` and `IsCancel`

Open
#394 0 comments 0 reactions 1 assignee View on GitHub

@pomianowski is already working on this.

Since Sep 19, 2022.

enhancement
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

It seems it isn't currently possible to assign default and cancel buttons to Dialog.

If I were to create those buttons manually, I could use IsDefault="True" or IsCancel="True". One of the effects would be that you can confirm or dismiss the dialog with the return and esc keys.

Describe the solution you'd like
There should be a pair of properties ButtonLeftIsDefault/ButtonLeftIsCancel, or maybe a property ButtonLeftRole that you can set to either Default or Cancel. (Same for ButtonRight….)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.