Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

System.Windows.ItemCollection does not contain a definition for ElementAt

$
0
0

I have a silverlight project setup using silverlight 5 and .net framework 4.5

on my xaml.cs file there is code block 

var displayMemberPath = comboBox.DisplayMemberPath;
            for (var i = 0; i < comboBox.Items.Count; i++)
            {
                var item = comboBox.Items.ElementAt(i) //ElementAt is not found

'System.Windows.Controls.ItemCollection' does not contain a definition for 'ElementAt' and no extension method 'ElementAt' accepting a first argument of type 'System.Windows.Controls.ItemCollection' could be found (are you missing a using directive or an assembly reference?)



Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>