gcupko00 / NetworkSniffer

Network sniffer made in WPF using MVVM pattern
GNU General Public License v3.0
17 stars 4 forks source link

Packet window doesn't autoscroll #3

Open andrijaantunovic opened 8 years ago

andrijaantunovic commented 8 years ago

When capturing packets, the packet window doesn't scroll automatically, which makes it impossible to see the capturing in real time at a glance.

gcupko00 commented 8 years ago

It's almost impossible to do that in WPF and it's not that necessary.

andrijaantunovic commented 8 years ago

"Almost impossible to do", are you serious? If you just search for "wpf autoscroll" you'll find dozens of threads on stackoverflow and they all have very simple solutions:

http://stackoverflow.com/questions/2984803/how-to-automatically-scroll-scrollviewer-only-if-the-user-did-not-change-scrol

It's also silly to say that it's not necessary because every program which lists items in real time has this feature. It's very useful for the user to see what's being captured in real time. Instead, the user now has to hold the scroll bar and wiggle the mouse around so that they can see the new incoming packets.

gcupko00 commented 8 years ago

It's easy to do that with ScrollViewer, but not with ListView. ListView itself has integrated ScrollViewer which is not accessible. And since we used MVVM pattern, the only solution would be using behaviors.

andrijaantunovic commented 8 years ago

A solution for ListView is explained here:

http://dutton.me.uk/2013/08/13/auto-scrolling-a-wpf-listview-when-a-new-item-is-added/

gcupko00 commented 8 years ago

Calling UIElement and ScrollViewer methods from that class causes threading problems.

itsJoKr commented 3 years ago

I wonder will this ever be fixed.

andrijaantunovic commented 3 years ago

I think the developer has abandoned this project :(

itsJoKr commented 3 years ago

Is that what we get after being long-time users of this product 😞