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

AutoCompleteTextBox 控件的文本内容无法双向绑定 #1492

Open
XyliaUp opened this issue Nov 21, 2023 · 0 comments
Open

AutoCompleteTextBox 控件的文本内容无法双向绑定 #1492

XyliaUp opened this issue Nov 21, 2023 · 0 comments

Comments

@XyliaUp
Copy link

XyliaUp commented Nov 21, 2023

Describe the bug

模板内部的 PART_SearchTextBox 文本框没有绑定 Text={TemplateBinding Text}
而是通过TextChanged 事件来通知控件文本发生改变

因此设置控件的 Text属性是无效的

Steps to reproduce the bug

    <hc:AutoCompleteTextBox ItemsSource="{Binding Items}" Text="{Binding SearchText}" />

Expected behavior

No response

Screenshots

No response

NuGet package version

None

IDE

No response

Framework type

No response

Windows version

No response

Additional context

No response

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

No branches or pull requests

1 participant