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

Hook up TokenizingTextBox AutoSuggestBoxStyle #657

Conversation

miksalmon
Copy link
Contributor

Fixes #656

The AutoSuggestBoxStyle dependency property is not hooked up to the AutoSuggestBox's style in TokenizingTextBoxItemTextStyle. Is uses the static resource SystemAutoSuggestBoxStyle.

This fix sets the AutoSuggestBox's style in TokenizingTextBoxItemTextStyle to the AutoSuggestBoxStyle of the TokenizingTextBox and sets the AutoSuggestBoxStyle's default value to that of SystemAutoSuggestBoxStyle.

PR Type

What kind of change does this PR introduce?

Bugfix

What is the current behavior?

TokenizingTextBox's AutoSuggestBoxStyle is not applied

What is the new behavior?

TokenizingTextBox's AutoSuggestBoxStyle is applied

PR Checklist

  • [X ] Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • [X ] Based off latest main branch of toolkit
  • [ X] Tested code with current supported SDKs
  • [ X] Contains NO breaking changes

@miksalmon miksalmon changed the title use TokenizingTextBox AutoSuggestBoxStyle in TokenizingTextBoxItemTex… Hook up TokenizingTextBox AutoSuggestBoxStyle Mar 13, 2025
@miksalmon
Copy link
Contributor Author

@dotnet-policy-service agree company="Microsoft"

@michael-hawker michael-hawker added this to the 8.2 milestone Mar 13, 2025
Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely some future investigation we can see if we can simplify the reliance on the custom style, but the PR is good as-is.

@niels9001 validated that the custom style was still needed to some degree, so we won't touch it here and use the existing setup.

The merged dictionary means this is properly grabbing the right style, so all is good.

@michael-hawker michael-hawker force-pushed the miksalmon/TokenizingTextBox-AutoSuggestBoxStyle branch from e42cff4 to c97c0f8 Compare March 31, 2025 22:18
@michael-hawker michael-hawker enabled auto-merge (rebase) March 31, 2025 22:18
@michael-hawker michael-hawker merged commit 6d537b4 into CommunityToolkit:main Apr 2, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

TokenizingTextBox AutoSuggestBoxStyle does not work
3 participants