summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/ScrollView.cs
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2017-04-11 14:02:06 -0400
committerRui Marinho <me@ruimarinho.net>2017-04-11 19:02:06 +0100
commit093a4efa2da9cb681890158ca8ee9bb6f30b0a8c (patch)
treeccc17255876e40d2c845d7b2c62dfc930156729d /Xamarin.Forms.Core/ScrollView.cs
parent7458ca37330f424bf7fb1447580b0fa9c34c6db4 (diff)
downloadxamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.tar.gz
xamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.tar.bz2
xamarin-forms-093a4efa2da9cb681890158ca8ee9bb6f30b0a8c.zip
Implicit impl of controller ifaces (#807)
* Simplify ICtrl callsites * Rebase fix
Diffstat (limited to 'Xamarin.Forms.Core/ScrollView.cs')
-rw-r--r--Xamarin.Forms.Core/ScrollView.cs19
1 files changed, 9 insertions, 10 deletions
diff --git a/Xamarin.Forms.Core/ScrollView.cs b/Xamarin.Forms.Core/ScrollView.cs
index e77731d2..ababa403 100644
--- a/Xamarin.Forms.Core/ScrollView.cs
+++ b/Xamarin.Forms.Core/ScrollView.cs
@@ -1,4 +1,5 @@
using System;
+using System.ComponentModel;
using System.Threading.Tasks;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Platform;
@@ -76,7 +77,8 @@ namespace Xamarin.Forms
_platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<ScrollView>>(() => new PlatformConfigurationRegistry<ScrollView>(this));
}
- Point IScrollViewController.GetScrollPositionForElement(VisualElement item, ScrollToPosition pos)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Point GetScrollPositionForElement(VisualElement item, ScrollToPosition pos)
{
ScrollToPosition position = pos;
double y = GetCoordinate(item, "Y", 0);
@@ -114,19 +116,15 @@ namespace Xamarin.Forms
return new Point(x, y);
}
- event EventHandler<ScrollToRequestedEventArgs> IScrollViewController.ScrollToRequested
- {
- add { ScrollToRequested += value; }
- remove { ScrollToRequested -= value; }
- }
-
- void IScrollViewController.SendScrollFinished()
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SendScrollFinished()
{
if (_scrollCompletionSource != null)
_scrollCompletionSource.TrySetResult(true);
}
- void IScrollViewController.SetScrolledPosition(double x, double y)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetScrolledPosition(double x, double y)
{
if (ScrollX == x && ScrollY == y)
return;
@@ -295,6 +293,7 @@ namespace Xamarin.Forms
handler(this, e);
}
- event EventHandler<ScrollToRequestedEventArgs> ScrollToRequested;
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler<ScrollToRequestedEventArgs> ScrollToRequested;
}
} \ No newline at end of file