In the first two steps of this quick start, you created a Silverlight project, added a C1Reflector control to it, and then added content to the C1Reflector control. At this point, you have a functional project; if you run it, you'll see a two-dimensional, solid reflection. But you're not done yet: there are still properties you can set to make the project look even better. In this step, you'll use Expression Blend to add blur and opacity effects to the reflection and then place the control on a three-dimensional plane.
Complete the following steps:
- In Solution Explorer, right click MainPage.xaml to open its context menu and then select Open in Expression Blend. The project opens in Expression Blend.
- Under the Objects and Timeline tab, select C1Reflector to open its properties in the Properties panel.
- Add the opacity and blur effects to the reflection by completing the following steps:
- Click the ReflectionEffects ellipsis button to open the Effect Collection Editor: ReflectionEffects dialog box.
- Click Add another item. The Select Object dialog box opens.
- Select ReflectionOpacityEffect from the list and then click OK to add the effect to the control and return to the Effect Collection Editor: ReflectionEffects dialog box.
- In the Properties grid, set the following properties:
- Click Add another item. The Select Object dialog box opens.
- Select BlurEffect from the list and then click OK to add the effect to the control and return to the Effect Collection Editor: ReflectionEffects dialog box.
- In the Properties grid, set the Radius property to "2". This low number will provide a soft blur around the edges of the control.
- Press OK to close the Effect Collection Editor: ReflectionEffects dialog box.
- To alter the C1Reflector control's plane, locate the ContentProjection property and, under the Rotation tab, complete the following:
- In the X text box, enter "25".
- In the Y text box, enter "45".
- In the Z text box, enter "1".
In this step, you set properties that altered the appearance of the C1Reflector control and its contents. In the next step, you will run the project.