Inheritance: Windows.UI.Xaml.RoutedEventArgs, IScrollEventArgs
        private void MessageBar_OnScroll(object sender, ScrollEventArgs e) {
            if (e.ScrollEventType != ScrollEventType.EndScroll) return;
            if ((sender as ScrollBar) == null) return;

            System.Diagnostics.Debug.WriteLine(e.NewValue.ToString());
            if (e.NewValue <= (sender as ScrollBar).Minimum) {
                System.Diagnostics.Debug.WriteLine("Top of Messages!");

            }
        }
Beispiel #2
0
        private void BarScroll(object sender, ScrollEventArgs e)
        {
            if (e.ScrollEventType != ScrollEventType.EndScroll) 
                return;

            var bar = sender as ScrollBar;
            if (bar == null)
                return;

            System.Diagnostics.Debug.WriteLine("Scrolling ended");

            if (e.NewValue >= bar.Maximum - 100 && !isLoading)
            {
                LoadMore();
            }
        }
Beispiel #3
0
        void BarScroll(object sender, ScrollEventArgs e)
        {
            if (e.ScrollEventType != ScrollEventType.EndScroll) return;

            var bar = sender as ScrollBar;
            if (bar == null)
                return;

            System.Diagnostics.Debug.WriteLine("Scrolling ended");

            if (e.NewValue >= bar.Maximum)
            {
                System.Diagnostics.Debug.WriteLine("We are at the bottom");
                LockToBottom = true;
            }
            else
            {
                System.Diagnostics.Debug.WriteLine("We are away from the bottom");
                LockToBottom = false;
            }
        }
Beispiel #4
0
        private void ScrollBar_Scroll(object sender, ScrollEventArgs e)
        {
            // get new scroll position from bars
            var sp = new Point(-_horizontalScrollBar.Value, -_verticalScrollBar.Value);

            // scroll now
            ScrollPosition = sp;
        }
 private void scrollBar_Scroll(object sender, ScrollEventArgs e)
 {
     this.InvalidateHexView();
 }