I set IsTabStop to false on a text box and I know that this makes the control unable to receive focus, but according to the Silverlight Forums, it should still be able to receive mouse events. I have the MouseLeftButtonUp event wired and a breakpoint in my tbxTotal_MouseLeftButtonUp method, and it never gets hit during debugging. The thread in the SL Forums is pretty old now, so maybe this was changed in an update somewhere. I want a text box that can't be tabbed to, but is still editable. Should it really be this hard?
相关问题
- how to Enumerate local fonts in silverlight 4
- Free Silverlight mapping with Bing maps and OpenSt
- Custom number picker?
- Error using ResourceDictionary in Silverlight
- Can we create a Silverlight Socket Server ONLY usi
相关文章
- New Windows Application - What language?
- relative url in wcf service binding
- Embedded images not showing when in a UserControl
- Silverlight 4: How can I convert bmp byte array to
- Silverlight DataTemplate Memory Leak
- Silverlight - Paramterised resource values for Int
- RIA Authentication from a Web Services project
- Use TripleDESCryptoServiceProvider class in Silver
@seekerOfKnowledge: Disabling
IsTabStop
on theLostFocus
is a good approach, but your re-focus hack is unnecessary. It fails to have any visible effect the first time around because the change ofIsTabStop
has not yet taken effect. This approach can be also be taken with any other control.I didn't realize this, but it seems to be the case, Additionally, I can't seem to get MouseLeftButtonUp to fire. MouseLeftButtonDown does fire though and using that you can do this hack.
Then in code you can handle the event like this.
It might be worth while to wrap it in a CustomControl