I'm tracking ListView selection changes in an MVVM design by binding to IsSelected. I also need to track the current item by enabling IsSynchronizedWithCurrentItem.
I find that when I have two ListView binding to the same collection I get the InvalidOperationException: "Collection was modified; enumeration operation may not execute." ...
C#: How would you only draw certain ListView Items while in Virtual Mode?
I am trying to create a filter-like feature to use in listview so that if the user selects an imageindex from 0-5, it will loop through the listview items and only make it so that the items in question with the correct image index will be displayed and the other ...
Exact duplicate of How would you only draw certain ListView Items while in Virtual Mode? from same name, different account.
@Jonathan: please enhance your question instead of entering a new copy.
I am trying to implement a filter mechanism into a listview object (in virtual mode). I have gotten advice to not return the items in ques...
I am making a Help-form for my application. A Help-form normally has a ListView on the left and a RichTextbox on the right. When you click on a Help topic in the ListView, the text in the RichTextbox is supposed to change accordingly. The text file is part of the application's resources.
Any help will be much appreciated.
Thanks.
...
There are lots of solutions on the internet attempting to fill this seemingly very-basic omission from WPF. I'm really confused as to what would be the "best" way. For example... I want there to be little up/down arrows in the column header to indicate sort direction. There are apparently like 3 different ways to do this, some using code...
I am using listview to display a list of items and a nested listview to show list of features to each item. Both parent and child listview need to able Insert,Edit and delete operation. It works fine for parent listview. But when I try to edit an child item, The edit button does not take it into Edit mode. Can you please suggest me what ...
http://windowsclient.net/learn/video.aspx?v=108085
In that video, when I changes data source by add more data the list view doesn't update? Please help me!
...
I have a listview. In my listview I have a dropdownbox which I want to fill in my codebehind page. Only the thing is, I don't know how to access this webcontrol. The following doesn't work:
DropDownList ddl = (DropDownList)lvUserOverview.Controls[0];
I know the index is 0 because the dropdownlist is the only control on the listview (a...
Hello guys,
this is my first question here.
I'm getting started with WPF and i am stuck. Here is the problem:
I have a ListView as following:
<UserControl.Resources>
<DataTemplate x:Key="FirstCell">
<StackPanel Orientation="Horizontal">
<CheckBox Margin="2"></CheckBox>
</StackPanel>
</DataTemplate>...
Is anyone aware of a decent CSV export tool for exporting from a ListView? I'm in a mad rush to get a project update out and feature creep means I don't have time to get this final urgent feature implemented myself.
...
Is it possible to programmatically scroll a WPF listview? I know winforms doesn't do it, right?
I am talking about say scrolling 50 units up or down, etc. Not scrolling an entire item height at once.
...
Hi,
I'm using the multicolumn treeview control which I found here http://www.codeproject.com/KB/WPF/wpf_treelistview_control.aspx
The first column in this control which consists of a simulated tree view control needs to be autosized when a node is expanded/collapsed.
Any help?
Sample XAML
<UserControl x:Class="ListViewAsTreeView.Xml...
How do I create categories in an arbitrary ListView like those in Preferences (PreferenceCategory)?
I've found android.R.layout.preference_category that renders that grey TextView but don't see it mentioned anywhere from java code.
...
I have a ListView bound to a Generic List collection.
I need to be able to limit the number of items bound to something like 5, and show a more button in the template.
I can handle the DataBinding event, and remove the last few items in the List<>, but something about that doesn't feel right. I also can't limit the list to 5 beforehan...
Similar to my other question:
I have a ListView bound to a Dictionary. Then I have a nested ListView for the dictionary's value's integers.
I need to limit the number of items bound to the nested list to something like 5, and show a more button in the template.
I can't find a way to get the more button to work, and to correctly limit...
I have an old VB6 application that uses an ImageList control from COMCTL32.OCX ("Microsoft Windows Common Controls 5.0 (SP2)") to provide icons for TreeViews and ListViews.
The app won't even launch on Windows 7.0 64 bit. The minute it tries to load the form that has the ImageList on it, it crashes (well, actually, the app winks out, ex...
How to show in the WPF Listview using the GridView an empty text (like in ASP.net), e.g. "please select a person" or "0 items founded"?
...
Like the subject says I have a listview, and I wanted to add the ctrl + a select all shortcut to it. My first problem is that I can't figure out how to programmatically select all items in a listview. It seems like it should be relatively easy, like ListView.SelectAll() or ListView.Items.SelectAll(), but that doesn't appear to be the c...
How implement selectable GridView embedded in WPF ComboBox.
...
Is it possible to implement smooth scroll in a WPF listview like how it works in Firefox?
When the Firefox browser contained all listview items and you hold down the middle mouse button (but not release), and drag it, it should smoothly scroll the listview items. When you release it should stop.
It looks like this is not possible in win...