This question is locked. New answers and comments are not allowed.
I am trying to create a pretty simple UserControl with 2 LoopingList's that will be used as an FM Radio tuner. One is supposed to display numbers from 88-107 but the LoopingList control only displays 88-96 and then repeats itself.
I have a reproducible sample that I can send, here's a snippet of my code for setting up the LoopingListDataSource
I have a reproducible sample that I can send, here's a snippet of my code for setting up the LoopingListDataSource
_frequencyRangeValues = new List<
int
>();
for (int i = 88; i <= 107; i++)
_frequencyRangeValues.Add(i);
var frequencyRangeEnumerator = _frequencyRangeValues.GetEnumerator();
var frequencyRange = new Telerik.Windows.Controls.LoopingListDataSource(_frequencyRangeValues.Count);
frequencyRange.ItemNeeded += (sender, args) =>
{
args.Item = new Telerik.Windows.Controls.LoopingListDataItem(_frequencyRangeValues[args.Index].ToString());
};
frequencyRange.ItemUpdated += (sender, args) =>
{
args.Item.Text = _frequencyRangeValues[args.Index].ToString();
System.Diagnostics.Debug.WriteLine(args.Item.Text);
};
fmRadioFreqPicker.DataSource = frequencyRange;