示例#1
0
 public override void DecelerationEnded(UIScrollView scrollView)
 {
     if (scrollView.Bounds.Y > 0)
     {
         TopScroller?.Invoke(this, EventArgs.Empty);
     }
 }
 public ContentView()
 {
     this.Loaded += (s, e) => TopScroller.InitializeScrollViewer(ContentListView);
     this.InitializeComponent();
     ViewModel        = new ContentViewmodel();
     this.DataContext = ViewModel;
     this.Unloaded   += (s, e) => TopScroller.Dispose();
 }
示例#3
0
 public SourceCodeView()
 {
     this.Loaded += (s, e) => TopScroller.InitializeScrollViewer(ContentListView);
     this.InitializeComponent();
     ViewModel           = new SourceCodeViewmodel();
     this.DataContext    = ViewModel;
     this.Unloaded      += (s, e) => TopScroller.Dispose();
     NavigationCacheMode = NavigationCacheMode.Required;
 }
 public ContentView()
 {
     Loaded += (s, e) =>
     {
         TopScroller.InitializeScrollViewer(ContentListView);
     };
     InitializeComponent();
     ViewModel   = new ContentViewmodel();
     DataContext = ViewModel;
     Unloaded   += (s, e) =>
     {
         TopScroller.Dispose();
     };
 }
示例#5
0
 private void SyncHeaderScrollers()
 {
     TopScroller.ScrollToHorizontalOffset(BoardScroller.HorizontalOffset);
     LeftScroller.ScrollToVerticalOffset(BoardScroller.VerticalOffset);
 }