30 lines
978 B
Markdown
30 lines
978 B
Markdown
## WPF TextBox.Text can be out-of-sync with databinding
|
|
|
|
### Scope
|
|
Edge
|
|
|
|
### Version Introduced
|
|
4.5
|
|
|
|
### Source Analyzer Status
|
|
Planned
|
|
|
|
### Change Description
|
|
In some cases, the TextBox.Text property reflects a previous value of the databound property value if the property is modified during a databinding write operation.
|
|
|
|
- [x] Quirked
|
|
- [ ] Build-time break
|
|
|
|
### Recommended Action
|
|
This should have no negative impact. However, you can restore the previous behavior by setting the [FrameworkCompatibilityPreferences.KeepTextBoxDisplaySynchronizedWithTextProperty](https://msdn.microsoft.com/en-us/library/system.windows.frameworkcompatibilitypreferences.keeptextboxdisplaysynchronizedwithtextproperty(v=vs.110).aspx) property to false.
|
|
|
|
### Affected APIs
|
|
* `P:System.Windows.Controls.TextBox.Text`
|
|
|
|
### Category
|
|
Windows Presentation Foundation (WPF)
|
|
|
|
[More information](https://msdn.microsoft.com/en-us/library/hh367887(v=vs.110).aspx#wpf)
|
|
|
|
<!-- breaking change id: 52 -->
|