0
votes

I have a WPF UserControl containing a Popup which contains a TextBox. There is a DependencyProperty associated with the TextBox. The Popup has StaysOpen = "False". When I enter text in the TextBox and click inside the Popup then the text is persisted, as expected. If I click outside the Popup after entering text, then it is not persisted. Any ideas how to persist the text in this case?

1
Please post some code on what you've tried till now. - ViVi

1 Answers

0
votes

A colleague of mine found a solution - by adding "UpdateSourceTrigger=PropertyChanged" to the binding.