It seems Microsoft has oversimplified the databinding aspects of WPF and Silverlight. I have read some data into a couple of “ObservableCollection” types but I do not have the need to bind it to any objects defined in my XAML code. Instead, now that I have read the data, I want to examine it and put it into my own structure.
Searching online, I have not seen any way to easily step through the ObservableCollection types line by line in my code. But there must be a way to do it. So, how do I do it?
It is by using the method “ElementAt”
like this, for example. Suppose each one of your obervable collections have a Facility and key:
This will give you the Facility and the Key of the first element.