Browse Source

Removed IScrollable from VirtualizingStackPanel

Steven Kirk 9 years ago
parent
commit
9253e71eea
1 changed files with 1 additions and 21 deletions
  1. 1 21
      src/Avalonia.Controls/VirtualizingStackPanel.cs

+ 1 - 21
src/Avalonia.Controls/VirtualizingStackPanel.cs

@@ -7,7 +7,7 @@ using System.Collections.Specialized;
 
 namespace Avalonia.Controls
 {
-    public class VirtualizingStackPanel : StackPanel, IScrollable, IVirtualizingPanel
+    public class VirtualizingStackPanel : StackPanel, IVirtualizingPanel
     {
         private double _takenSpace;
         private int _canBeRemoved;
@@ -26,26 +26,6 @@ namespace Avalonia.Controls
 
         Action IVirtualizingPanel.ArrangeCompleted { get; set; }
 
-        Action IScrollable.InvalidateScroll
-        {
-            get;
-            set;
-        }
-
-        Size IScrollable.Extent => new Size(_takenSpace, _takenSpace);
-
-        Vector IScrollable.Offset
-        {
-            get { return default(Vector); }
-            set { }
-        }
-
-        Size IScrollable.Viewport => Bounds.Size;
-
-        Size IScrollable.ScrollSize => new Size(1, 1);
-
-        Size IScrollable.PageScrollSize => new Size(1, 1);
-
         protected override Size ArrangeOverride(Size finalSize)
         {
             _canBeRemoved = 0;