Preventing a Back Cover from Displaying

When clicked, a C1CoverFlow cover will flip over and reveal its back cover, providing additional content regarding the album such as its track list. In some instances, you may not want to provide additional information regarding an album. You can prevent the back cover from showing upon a user click by setting the AllowOpen property to False. This topic assumes that you have created an AJAX-enabled ASP.NET project that contains a ScriptManager control (see Creating an AJAX-Enabled ASP.NET Project) and a C1CoverFlow control.

Complete the following steps:

1.   Click the Source tab to switch to Source view.

2.   Create a C1Cover object by adding the following markup between the <cc1:C1CoverFlow> and </cc1:C1CoverFlow> tags, replacing [YourImagePath] with the path to your custom image:

<Covers>

    <cc1:C1Cover ImageUrl="[YourImagePath]">

    </cc1:C1Cover>

</C1Cover>

3.   Add AllowOpen="False" to the <cc1:C1Cover> tag so that the markup resembles the following:

 

<cc1:C1Cover ImageUrl="[YourImagePath]" AllowOpen="False" >

4.   Open the project in Mobile Safari and click the album cover. Observe that the back cover doesn't open.


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