WPF Focus

A

Andy

Hi,

I have a combobox, and the template for each item in the combo
contains two text boxes. If the textbox is readonly, I'd like
clicking on the textbox to select the item and close to dropdown.
Otherwise, the default behavior is fine.

Thanks
Andy
 
A

Andy

Hi,

I have a combobox, and the template for each item in the combo
contains two text boxes. If the textbox is readonly, I'd like
clicking on the textbox to select the item and close to dropdown.
Otherwise, the default behavior is fine.

Thanks
Andy

Still no one has an answer?
 
B

Bruno Wouters

You could try to set the IsHitTestVisible property of the readonly textboxes
to false.
 
A

Andy

You could try to set the IsHitTestVisible property of the readonly textboxes
to false.

Sorry for getting back to you so late.. got side tracked. Just wanted
to let you know, this worked great, exactly what I wanted.

Thanks!
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top