Forum Libraries, Components, and Plugins


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

CCScrollView and CCTableView

Hi there,

Are there any examples somewhere on how to use the CCScrollView or CCTableView from the extensions here ??

Is it possible to add a ScrollView or a TableView into a CCNode?


  • kjpou1kjpou1 LUMember, Xamarin Team Xamurai

    Hey Muhamed

    All the code in the Extensions are really just that, Extensions, and are not a priority to keep up to date with the core. They may work or not. We did not want to loose the code as they are really great examples of how things can be done. Only recently have I been working on making them work but again not a priority.

    There are examples for a TableView here which uses a ScrollView.

  • Hi @kjpou1

    Thanks for the explanation and link.
    I tried exactly the same thing as in the example tests, but unfortunately I cannot see any TableView when I add it to the scene. Is CCTableView working as it is in this state?

    I add this to the MainLayer:

    var tableView = new CCTableView (this, new CCSize (260, 60));
    tableView.Direction = CCScrollViewDirection.Horizontal;
    tableView.Position = new CCPoint(20, winSize.Height / 2 - 30);
    tableView.Delegate = this;
    AddChild (tableView);

    And then implement the functions TableCellSizeForIndex, TableCellAtIndex and NumberOfCellsInTableView as in the example test.

    Unortunately I can't see anything when running it.

Sign In or Register to comment.