Wednesday, August 29, 2012

Textbox focus by switch Silverlight Mask

Textbox focus by switch Silverlight Mask

I have a problem with my Silverlight-Application in relation of set Focus on Control(Button). I try to combine Shortcuts with Focus. Here is a process example with my error:

  1. I get into my Silverlight-Mask and press the Shortcut
  2. Now, my Shortcut-Function is calling the .Focus() Method of the Button
  3. My desired button has the focus

When I left this Page and jump again and repeat the process, I can trigger my shortcut but the Button has no focus.. The process runs only in the first process.

I can not understand that.

Best regards, Patrik

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog