diff options
author | Vitaly Takmazov | 2013-02-01 16:36:05 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2013-02-01 16:36:05 +0400 |
commit | 3879b6fd52395ba47c070b1085d4212f0d376cb4 (patch) | |
tree | b27124f992a72794c7469700d6196c3fa24e8331 /Juick | |
parent | 969777d45cd1bb678a32733ca291157f4ec6b924 (diff) |
LoadData early than end
Diffstat (limited to 'Juick')
-rw-r--r-- | Juick/Classes/ScrollViewerMonitor.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Juick/Classes/ScrollViewerMonitor.cs b/Juick/Classes/ScrollViewerMonitor.cs index a985360..4e96797 100644 --- a/Juick/Classes/ScrollViewerMonitor.cs +++ b/Juick/Classes/ScrollViewerMonitor.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Data; @@ -46,7 +47,7 @@ namespace Juick.Classes var listener = new DependencyPropertyListener(); listener.Changed += (s, eArgs) => { - var atBottom = scrollViewer.VerticalOffset >= scrollViewer.ScrollableHeight; + var atBottom = scrollViewer.VerticalOffset >= scrollViewer.ScrollableHeight - scrollViewer.ScrollableHeight/3; if (atBottom) { var atEnd = GetAtEndCommand(element); |