This is a migrated thread and some comments may be shown as answers.

Binding or Adding <telerikPrimitives:InfiniteListBoxItem

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
john
Top achievements
Rank 1
john asked on 19 Nov 2010, 08:38 AM
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);

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 19 Nov 2010, 09:22 AM
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.
Tags
General Discussions
Asked by
john
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or