WPF-AutoComplete-TextBox: Binding to the text property with UpdateSourceTrigger=PropertyChanged doesn't work
So one solution would be to change the xaml to
<TextBox x:Name="PART_Editor"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Style="{StaticResource ResourceKey=TransparentTextBoxStyle}"
Text="{Binding Path=Text, RelativeSource={RelativeSource Mode=TemplatedParent}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
This would have a very minor performance hit, however clearly no one is relying on this property currently. I would like if it could somehow automatically use the right one or be a user preference. I think we could do the user preference by adding another parameter on the AutoCompleteTextBox of “UpdateTextExplicitly” and then manually establish the binding in code behind rather than in xaml.
I figured open an issue for discussion.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (10 by maintainers)
Go on with option 2, so user can choice what is better… Agree?
On Nov 26, 2017 19:23, “Mitch Capper” notifications@github.com wrote: