Adding Anchors to C1ViewScroller

In this topic, you will learn how to add an anchor in Design view, in Source view, and in code.

In Design View

Complete the following steps:

1.   Click the smart tag () to open the C1ViewScroller Tasks menu.

2.   Click the C1ViewScroller Designer link.

The C1ViewScroller Designer Form opens.

3.   Click the Add Child Item button  to add an anchor (C1ScrollerItem) to the C1ViewScroller control.

4.   Select the newly created item and change TopOffset property whatever value you wish.

5.   Click OK to close the C1ViewScroller Designer Form.

In Source View

To add an anchor to the C1ViewScroller control, place the following markup between the <C1ViewScroller> and </C1ViewScroller> tags:

<Items>

  <C1ViewScroller:C1ScrollerItem runat="server" ScrollToId="" Text="A" />
</Items>

In Code

Complete the following steps:

1.   Add the following code to the Page_Load event:

      Visual Studio

      C#

 

2.   Save the project and open it in a Studio for iPhone-compatible browser to execute the program.


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