Binding or Adding <telerikPrimitives:InfiniteListBoxItem

2 posts, 0 answers
  1. john
    john avatar
    12 posts
    Member since:
    Feb 2008

    Posted 19 Nov 2010 Link to this post

    I'm excited to be using these controls.  One question about the infinite list box:

    Is there any way (example?) to add items to the Infinite List Box other than the below code in the .cs?

    InfiniteDataSource<string> source = new InfiniteDataSource<string>();
                source.LogicalItems.Add(new VirtualizedDataItem<string>("Item1"));
                source.LogicalItems.Add(new VirtualizedDataItem<string>("Item2"));
                this.lstSports.ItemsSource = source;
                this.lstSports.CenterSelectedIndex(4);

    InfiniteDataSource<string> source = new InfiniteDataSource<string>();
                source.LogicalItems.Add(new VirtualizedDataItem<string>("NFL"));
                source.LogicalItems.Add(new VirtualizedDataItem<string>("MLB"));
                this.lstSports.ItemsSource = source;
                this.lstSports.CenterSelectedIndex(4);
    InfiniteDataSource<string> source = new InfiniteDataSource<string>();
                source.LogicalItems.Add(new VirtualizedDataItem<string>("NFL"));
                source.LogicalItems.Add(new VirtualizedDataItem<string>("MLB"));
                this.lstSports.ItemsSource = source;
                this.lstSports.CenterSelectedIndex(4);
    Seems like one would be able to use the  <telerikPrimitives:InfiniteListBoxItem right inside the XAML   or use {Binding on the <telerikPrimitives:InfiniteListBoxItem tag as well?

    InfiniteDataSource<string> source = new InfiniteDataSource<string>();
                source.LogicalItems.Add(new VirtualizedDataItem<string>("NFL"));
                source.LogicalItems.Add(new VirtualizedDataItem<string>("MLB"));
                this.lstSports.ItemsSource = source;
                this.lstSports.CenterSelectedIndex(4);

  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 19 Nov 2010 Link to this post

    Hello john,

    Thanks for writing and for your interest in RadControls for Windows Phone 7.

    Currently, the RadInfiniteListBox does not support adding items through XAML. However, I would like to inform you that we are going to migrate this control to our new RadLoopingList control which we are currently using in the date/time picker controls and which uses a better approach of implementing the infinite scrolling. We hope that this control will be available for the beta version of RadControls for Windows Phone 7 scheduled for the beginning of the next year.

    You can also check out our new CTP2 release (coming in a few days) that will contain some improvements in our Demos application, as well as a couple of new controls for you to use like RadListPicker and RadNumericUpDown.

    Do not hesitate to write back in case of further questions.

    Kind regards,
    Deyan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
Back to Top