(X) Hide this Join a live webcast on October 14th, 10:00 am PDT: 'MEF: Overview of the Managed Extensibility Framework in Silverlight 4' by Gill Cleeren
Learn More | Sign Up | More Webinars by SilverlightShow

Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 2 results for ListView.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Silverlight Show  on  Oct 30, 2009 (more than a year ago)
    In this post Avi Pilosof discusses list filtering with Silverlight, MVVM, and PagedCollectionView.

    You have a ListView and a TextBox in the view; they are bound to an ObservableCollection and a string in the ViewModel. You want them to behave such that entering text into that box causes the ListView to filter its items.



  • 0 comments  /  posted by  Silverlight Show  on  Feb 17, 2009 (more than a year ago)
    Tags: ListView , WPF

    David Anson noticed while working on a WPF project that the widths of the ListView columns were not automatically adjusted to fit the new content. Read what the decision of the problem is.

    I was working on a WPF project the other day and wanted an easy way to display data in a simple tabular format: a few columns (with headers) that would automatically size to fit their contents. The obvious choice was the ListView control and its GridView View which do exactly this. As you might expect, using this control was straightforward and it worked just like I wanted. Well, almost... There was one small catch: my ListView was hooked up to a data source that changed dynamically (via a Binding on its ItemsSource property) and I noticed that when the data source was updated, the widths of the columns were not automatically adjusted to fit the new content.