WPF-AutoComplete-TextBox
WPF-AutoComplete-TextBox copied to clipboard
Flicker when list changes
I'm currently using this as a command box in a mud client which is basically a tcp/ip app to a network server that is a text based game. The auto complete box is at the bottom of the window and the Popup generally appears on top of that box. My issue is, as the user types and the suggestion list gets smaller instead of the box shrinking it disappears totally and then re-appears where you get quarter second flicker (Where it's there, then not there, then there again). I've tried various animations but they all feel jarring. When the box doesn't shrink it still disappears and reappears when it would be visually ideal to have it stay in place while it's filtering (I realize that currently the ItemsSource gets reset with a new IEnumerable and it's not dealing with the same list which might have something to do with it).
Any thoughts on the best way to mitigate the disappear / reappear behavior?
Hello!
Could you record the screen showing the behavior? I'm out for holidays returning activities on January.
Merry Christmas and Happy New Year
On Tue, Dec 24, 2019, 17:11 Blake Pell [email protected] wrote:
I'm currently using this as a command box in a mud client which is basically a tcp/ip app to a network server that is a text based game. The auto complete box is at the bottom of the window and the Popup generally appears on top of that box. My issue is, as the user types and the suggestion list gets smaller instead of the box shrinking it disappears totally and then re-appears where you get quarter second flicker (Where it's there, then not there, then there again). I've tried various animations but they all feel jarring. When the box doesn't shrink it still disappears and reappears when it would be visually ideal to have it stay in place while it's filtering (I realize that currently the ItemsSource gets reset with a new IEnumerable and it's not dealing with the same list which might have something to do with it).
Any thoughts on the best way to mitigate the disappear / reappear behavior?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/quicoli/WPF-AutoComplete-TextBox/issues/21?email_source=notifications&email_token=AB775D3TIAQXISV3GJMGWPDQ2I7CZA5CNFSM4J67Y3E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ICQ7YPA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB775D7CXLTXZPW3FXAXLTDQ2I7CZANCNFSM4J67Y3EQ .
Thanks for the response. Here's a GIF if the behavior.
What this shows is the content under the popup briefly flickers, e.g. shows the content under the ListBox as the ListBox disappears from view and then re-appears with it's new items. Ideally if it went from say, 5 to 3 items the box was shrink without disappearing and reappearing.
As an aside, I tested two avenues that both persisted the list instead of resetting the "ItemsSelector.ItemsSource" (altering the ItemsSource without totally resetting it). The first route was using a CollectionView to filter the list and the second was putting an IsVisible property onto the item (that's implements INotifyProperty) and toggling that bool in "DisplaySuggestions" to hide/show items. The interesting effect of both of those was the list didn't flicker if the ListBox was getting larger, but did if it was getting smaller.
Hi, This is open for a long time... It's this still happening in the latest version?