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

Fixing SplitButtonAutomationPeer's Invoke implementation #6918

Merged
merged 2 commits into from
Apr 1, 2022

Conversation

llongley
Copy link
Member

SplitButtonAutomationPeer's Invoke implementation currently just directly calls the Click event handler, which misses the fact that we also have the option of assigning a command to execute. Instead of that, I've made it so we just forward the Invoke implementation to the primary button's automation peer, which will ensure that we do everything a button should do in this case.

I also edited the test case using the SplitButton with a command to use Invoke() to test that case as well.

…tomation peer instead of directly calling the Click event.
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Mar 31, 2022
@llongley llongley requested a review from RBrid March 31, 2022 23:05
@llongley
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@llongley llongley merged commit 97b333a into main Apr 1, 2022
@llongley llongley deleted the user/llongley/FixSplitButtonInvoke branch April 1, 2022 02:29
@ojhad ojhad added team-Controls Issue for the Controls team area-SplitButton and removed needs-triage Issue needs to be triaged by the area owners labels Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-SplitButton team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants