Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Editable Combobox IsFocused problem

I am developing a Watermarked ComboBox by modifying the ComboBox ControlTemplate. Everything is fine when the ComboBox is not in an editable mode, but when I change the edit mode to True, the IsFocused property is never set to True. This is because in edit mode, the ComboBox is using a TextBox. This is an exact copy of this StackOverflow question: . There are no responses to that question.

Please drop a line if you know how to solve this, or please point me to links that provide a Watermark ComboBox implementation. Thanks, Rey.

like image 947
Manohar Avatar asked Dec 15 '09 23:12

Manohar


1 Answers

You could try to use the IsKeyboardFocused or IsKeyboardFocusWithin instead

like image 155
Thomas Levesque Avatar answered Sep 28 '22 13:09

Thomas Levesque