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

Using States outside a control

In this section, you will discover how states work outside of a control. Each screen in the SketchFlow for Windows Phone template includes a default state for Portrait and another for Landscape. In this section you will see how those states work, as well as apply a new state that will show the keyboard only when the cursor is active in the SearchTextBox.

  1. In Expression Blend Select the Projects panel to bring it forward and then double-click on the PeopleSearch.xaml file. The screen appears.
  2. Select the States panel to see that two states already exist as a default, Portrait and Landscape.
    States panel
  3. Select the Landscape state to see that the artboard rotates to the Landscape view and any objects set to stretch are automatically scaled to fit the new space. Note: You can apply the Stretch property by selecting that Property in the Properties panel.
    Select the Landscape state
  4. If you wanted to change the look and feel of your application ion Portrait vs Landscape you could make those arrangements in the appropriate state and the changes will automatically applied in the player when the rotation is changed.
  5. Select Base as you will be adding your own custom state at this point.