courses I tutorials

Explore different tutorials to get hands on with Silverlight and Expression Blend across a wide array of topics in a short time.

school.tutorials

Hiding the keyboard until needed

In this section, you turn your KeyboardMockup into a ToogleButton. You will them take advantage of the focused and unfocused states in order to have the keyboard only show up when necessary.

  1. Select the TextBox and then Ctrl+click on the KeyboardMockup.
  2. Press Ctrl+G to group them into one grid.
  3. Change the name of the grid to KeyboardGrid.
  4. Right-click on the KeyBoardGrid and select Make Into Control. When the Make Into Control dialog box appears click in the Search TextBox at the top of the Dialog box and type Toggle to show only controls with Toggle in their name.
  5. Select the ToggleButton and type the name KeyboardToggleStyle in the Name textbox. Press OK.
    Make Into Control dialog
  6. Select the ContentPresenter in the Objects and Timeline panel and press Delete.
  7. If it looks as though your KeyboardMockup is distorted, select it in the Objects and Timeline panel and choose Stretch for your VerticalAlignment.