Extended Library for WPF and Silverlight | ComponentOne
CoverFlow (Silverlight Only) / CoverFlow for Silverlight Task-Based Help / Working with Item Reflections / Removing the Reflection Effect
In This Topic
    Removing the Reflection Effect
    In This Topic

    You can remove the items’ reflections by creating a copy of the ItemContainerStyle template and then replacing the Reflector control with a ContentPresenter control. This topic assumes you have added a C1CoverFlow control with at least one item to your project.

    Complete the following steps:

    1. Right-click the C1CoverFlow control and select Edit Additional Templates | Edit Generated Item Container (ItemContainerStyle) | Edit a Copy.

    The Create Style Resource dialog box opens.

    1. In the Name(Key) field, enter “Remove Reflection”.
    2. Click OK to create the template and close the Create Style Resource dialog box. Observe that the Objects and Timeline panel shows a Template with a Reflector control as its child item.
    3. Open the Assets panel and, its search box, enter “ContentPresenter”.
    4. Double-click the ContentPresenter icon to replace the Reflector control with the ContentPresenter control. Observe that the reflection has been removed.
    5. With the ContentPresenter control selected, navigate to the Properties panel and expand the Transform node.
    6. Click the Projection property’s Advanced options button and select Custom Expression.
    7. In the Custom expression text box, enter “{TemplateBinding ContentProjection}”. This ensures that the items in the C1CoverFlow control will project the same way that they did when the control was using the default Reflector control.

     This Topic Illustrates the Following:

    The following image demonstrates what the items of a C1CoverFlow control look like without a reflection.