This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I need to set the focus to a IntegerTextBox in a user control's constructor and get an appropriate visual feedback. What I excpected is that I am able to jump from one integer text box to an other with tab. This works but I need to press tab 2x to get to the next text box instead of just 1x. Furthermore I get no visual feedback when I set the focus in code, though the IntegerTextBox got focus. Dominik |
|
|
Hi Dominik, I haven't been able to reproduce the double tab issue: single tab works for me. Could you provide a simple sample project that demonstrates the problem? Thanks! I've reproduced the lack of visual feedback when setting the focus in code and will investigate. Thanks for letting us know about this. |
|
|
A fix for the lack of visual feedback when setting the focus in code will be included in the 28 May nightly build, available after about 1430 GMT. |
|
|
Hi Ivan, Thanks for your help. The double tab issues seems to come from my style definition. If I don't have a seperate style then it works as expected. What I try to achieve is that the style of the IntegerTextBox matches the one of a standard text box. So I decided to create a new style: <Style TargetType="{x:Type ms:IntegerTextBox}"> I don't know if I need to define a ControlTemplate to get the desired visual appearance but I was not able to do it without. Perhaps I am missing something. Dominik
|
|
|
Hi Dominik, Sorry for the very late reply. I've tried applying your style in one of our test applications, and I am still able to tab between IntegerTextBoxes with a single press of the tab key. Would you be able to provide a (simple) full working project that exhibits the issue? You can attach a zip file via the Options tab, or mail it directly to ivan @ the obvious domain name (please remove all binaries first). Thanks! |
|
|
Hi Ivan, I am now able to tab between IntegerTextBoxes with a single press of tab, too. It seems that the nightly build solved the issue. Thanks for your help Dominik
|
|