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

Question: How to Use Button in AutoSuggestBox item? #9250

Open
deckerth opened this issue Jan 14, 2024 Discussed in #7440 · 1 comment
Open

Question: How to Use Button in AutoSuggestBox item? #9250

deckerth opened this issue Jan 14, 2024 Discussed in #7440 · 1 comment
Labels

Comments

@deckerth
Copy link

Discussed in #7440

Originally posted by ghost1372 October 9, 2021
I want the AutoSuggestBox items to have a button, i used a AppBarButton Everything works fine except that it does not look good at all

<AppBarButton HorizontalAlignment="Right"
                          VerticalAlignment="Center"
                          HorizontalContentAlignment="Stretch"
                          VerticalContentAlignment="Stretch"
                          Click="DeleteHistory_Click"
                          Icon="Delete" />

1

So I used Button instead of AppBarButton now The appearance is correct and excellent
2

But a new problem arises and when I click on the button, autosuggestbox Closes and also button click is not working but this problem does not exist in the AppBarButton
So how can I click on the button without selecting the AutoSuggestBox item?

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 14, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@bpulliam bpulliam added question team-Controls Issue for the Controls team area-AutoSuggestBox and removed needs-triage Issue needs to be triaged by the area owners labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants