Step 3 of 3: Running the Application

In the previous steps you created a new Windows Phone project and added C1LayoutTransformers and several controls to the application. In this step you'll run the application.

Complete the following steps:

1.   From the Debug menu, select Start Debugging to view you application in the Windows Phone emulator. It will appear similar to the following:

 

 

2.   Stop debugging the application and return to the XAML view of the page.

3.   Edit the <phone:PhoneApplicationPage> tag to set the SupportedOrientations property to PortraitOrLandscape. It will appear similar to the following:

      XAML Markup

By default when the phone is rotated, the application's interface does not rotate. By setting the SupportedOrientations property to PortraitOrLandscape the application will now rotate when the phone is rotated.

4.   From the Debug menu, select Start Debugging to view how your application will appear at run time. Notice that the C1LayoutTransformer control still appears vertical.

5.   In the menu, click the Rotate Left or Rotate Right button to rotate the emulator to landscape mode. Notice that the application now rotates.

Congratulations! You've completed the LayoutTransformer for Windows Phone quick start and created a ComponentOne LayoutTransformer for Windows Phone application, customized the appearance and behavior of the controls, and viewed some of the run-time capabilities of your application.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.