HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

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

Open XyliaUp opened this issue 8 months ago • 0 comments

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

XyliaUp avatar Nov 21 '23 06:11 XyliaUp