Changing the Camera's Vertical Position

You can change the vertical position of the camera by setting the EyeHeight property (for more information, see the Eye Height topic). In this topic, you'll set the EyeHeight property to 1 so that the camera will view the C1CoverFlow items from the bottom.

In Design View

Complete the following steps:

1.   Select the C1CoverFlow control.

2.   In the Properties window, set the EyeHeight property to "1".

In XAML

Add EyeHeight="1" to the <my:C1CoverFlow> tag so that the markup resembles the following:

 

<my:C1CoverFlow Margin="0,0,87,233" EyeHeight="1">

In Code

Complete the following steps:

1.   In XAML view, add "x:Name="C1CoverFlow1" to the <my:C1CoverFlow> tag so that the control will have a unique identifier for you to call in code.

2.   Add the following code beneath the InitializeComponent method:

      Visual Basic

      C#

3.   Run the program.

 This Topic Illustrates the Following:

Run the application and note that the C1CoverFlow control will appear with its EyeHeight property set to 1.


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