itemcollection

Basic LINQ expression for an ItemCollection

I have an ItemCollection that I'd like to query using LINQ. I tried the following (contrived) example: var lItem = from item in lListBox.Items where String.Compare(item.ToString(), "abc") == true select item; Visual Studio keeps telling me Cannot find an implementation of the query pattern for source type 'System.Windows.C...

Porting from WPF to Silverlight - ItemsControl/ItemCollection

I'm porting an app (which someone else wrote) from WPF to Silverlight. I have a class which inherits from ItemsControl. In part of the code I access the ItemsControl.Items property (of type ItemCollection). However, some of the methods/properties which exist in WPF are missing in Silverlight: MoveCurrentToFirst() CurrentItem CurrentPos...