Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to set Modal Dialog initial focus element #481

Merged
merged 4 commits into from
Nov 13, 2024
Merged

Conversation

rabbitism
Copy link
Member

@rabbitism rabbitism commented Nov 12, 2024

User can set FocusHelper.DialogFocusHint on an InputElement. Modal Overlay Dialog and Modal Drawer will try to focus this element. if User doesn't set any, the first focusable (root border of dialog container) will be focused by default.

XAML sample:

<TextBox Text="Hello" u:FocusHelper.DialogFocusHint="True"></TextBox>

@rabbitism
Copy link
Member Author

@KevinL2015 please help to review.

@KevinL2015
Copy link

win10下测试了没问题

@rabbitism rabbitism merged commit a530a3e into main Nov 13, 2024
2 checks passed
@rabbitism rabbitism deleted the issue-479 branch November 15, 2024 16:57
@rabbitism rabbitism added this to the Nov Release milestone Nov 17, 2024
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.

Drawer控件对话框无法设置弹出后默认的焦点控件
2 participants