ListView FAQ

Please feel free to post additional questions in the comments section. I’ll get to them as I can and then link the help here.

That’s all I got for now. Ask me some questions if you want more stuff.

If you’re looking for something more generic, check out my WPF Designers Guide to the ListView, which covers the broader topics in the ListView.

3 Comments

  1. Ashwin:

    my listview has a context menu (defined in XAML file using and also a double click event (opens up a new window on double clicking a row)

    Problem 1:
    When focus is on a row and the column edge is double clicked for the column to expand, the column expands but it also opens the window for the row which is selected. I dont want this to happen

    problem 2:
    Right clicking on the header should not open up the context menu (even if some item in the list view is selected)

  2. Matthias:

    Ashwin,

    It sounds like the context menu is connected directly to your listView in the XAML. It sounds like you want it connected to your ListView Item. Try creating the ContextMenu as a resource and then hooking it up to your ItemContainerStyle. I’ll put up a post about this in the next couple days.

  3. kevin Mocha - WPF ListView FAQ:

    [...]  Friday, 22 February 2008 WPF ListView FAQ by Kevin Mocha http://www.designerwpf.com/2007/12/11/listview-faq/ [...]

Leave a comment