I have been using pmacnaughton modifications in my application (which is a WPF pane inside an Excel document customization). My users are reporting that the whole screen flickers in Excel 2010 when I update a large collection. In Excel 2013, I can see the selected cell flickers whilst the selected items are updated.
My Items/SelectedItems are bound to a ListBox (with a Checkbox). When I populate my Items collection (BindableCollection), I set IsNotifying to false, then I perform an AddRange before setting IsNotifying to true and calling Refresh. After setting my Items, I populate the SelectedItems (BindableCollection) using a similar method. It is this second action which causes the flicker - if I comment out that line, then no flicker.
I have tracked this down to the 'list.Add(item);' line from the above modifications - if I don't do this then again no flicker.
Is there a way to stop the screen flicker when binding Items/SelectedItems to a ListBox.
My Items/SelectedItems are bound to a ListBox (with a Checkbox). When I populate my Items collection (BindableCollection), I set IsNotifying to false, then I perform an AddRange before setting IsNotifying to true and calling Refresh. After setting my Items, I populate the SelectedItems (BindableCollection) using a similar method. It is this second action which causes the flicker - if I comment out that line, then no flicker.
I have tracked this down to the 'list.Add(item);' line from the above modifications - if I don't do this then again no flicker.
Is there a way to stop the screen flicker when binding Items/SelectedItems to a ListBox.