|
|
|
@ -10,7 +10,6 @@ namespace Perspex.Controls |
|
|
|
using System.Reactive.Linq; |
|
|
|
using Perspex.Controls.Presenters; |
|
|
|
using Perspex.Controls.Primitives; |
|
|
|
using Perspex.Threading; |
|
|
|
|
|
|
|
public class ScrollViewer : ContentControl |
|
|
|
{ |
|
|
|
@ -63,8 +62,7 @@ namespace Perspex.Controls |
|
|
|
var extentAndViewport = Observable.CombineLatest( |
|
|
|
this.GetObservable(ExtentProperty), |
|
|
|
this.GetObservable(ViewportProperty)) |
|
|
|
.Select(x => new { Extent = x[0], Viewport = x[1] }) |
|
|
|
.Throttle(TimeSpan.FromMilliseconds(100), PerspexScheduler.Instance); |
|
|
|
.Select(x => new { Extent = x[0], Viewport = x[1] }); |
|
|
|
|
|
|
|
this.Bind( |
|
|
|
VerticalScrollBarViewportSizeProperty, |
|
|
|
|