Latest News

  • Super Tower Defense 2 Game
    Sep 03, 2010

    New to the games section is Super Tower Defense 2. Featuring more maps, new units and bigger explosions.

  • Super Cards Online Multiplayer Game
    Aug 13, 2010

    Released today in the games section is the new Super Cards multiplayer card game. The aim of the game is to get rid of all your playing cards before your opposition.

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

Ken Collins
Ken Collins
Keeping focus on the Dialog even when user presses Tab Posted: May 17, 2010
 

Hi Dan.


I'm calling ShowAsModal(). Once the dialog is open, there's no way for the user to click any UI elements outside the dialog, which is good. I just noticed that if the user presses the Tab key, he can loop through the browser address bar and browser buttons (expected and okay), AND all the other UI Elements in my window, i.e., even the elements that should be 'behind' the dialog, thereby circumventing the modal behavior.


Have I forgotten to set something?

     ...Ken

 
 
dan
dan
RE: Keeping focus on the Dialog even when user presses Tab Posted: May 30, 2010
 

Hi Ken,


Thanks for pointing this out.  The default behaviour when for modal dialogs is to render a transparent element over the background which as you've seen doen't stop the user tabbing between controls.


The solution for this is to use the DisableBackground and EnableBackground events and in your code set the IsEnabled state on the controls that should be disabled whilst the dialog is visible.  When there are many child controls it may be a good idea to place them all in a ContentControl wrapper and just toggle the IsEnabled state of that.


Thanks!