summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.MacOS
diff options
context:
space:
mode:
authorMarko Ludolph <MarkoBL@users.noreply.github.com>2017-02-03 17:25:34 +0100
committerRui Marinho <me@ruimarinho.net>2017-02-03 16:25:34 +0000
commita67b176051196dfee3a7c1a6b88e257f84136fff (patch)
treeedc18b4bf44470d335e5c1988cb2dff9d6216dea /Xamarin.Forms.Platform.MacOS
parentc84bb83676d3f1898d6419447e103d27e1435374 (diff)
downloadxamarin-forms-a67b176051196dfee3a7c1a6b88e257f84136fff.tar.gz
xamarin-forms-a67b176051196dfee3a7c1a6b88e257f84136fff.tar.bz2
xamarin-forms-a67b176051196dfee3a7c1a6b88e257f84136fff.zip
[macOS] Adds Scrollbars to ListViews and ScrollViews (#740)
Diffstat (limited to 'Xamarin.Forms.Platform.MacOS')
-rw-r--r--Xamarin.Forms.Platform.MacOS/Renderers/ListViewRenderer.cs3
-rw-r--r--Xamarin.Forms.Platform.MacOS/Renderers/ScrollViewRenderer.cs1
2 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.MacOS/Renderers/ListViewRenderer.cs b/Xamarin.Forms.Platform.MacOS/Renderers/ListViewRenderer.cs
index 2c80dec9..c14a5832 100644
--- a/Xamarin.Forms.Platform.MacOS/Renderers/ListViewRenderer.cs
+++ b/Xamarin.Forms.Platform.MacOS/Renderers/ListViewRenderer.cs
@@ -106,7 +106,8 @@ namespace Xamarin.Forms.Platform.MacOS
var scroller = new NSScrollView
{
AutoresizingMask = NSViewResizingMask.HeightSizable | NSViewResizingMask.WidthSizable,
- DocumentView = _table = CreateNSTableView(e.NewElement)
+ DocumentView = _table = CreateNSTableView(e.NewElement),
+ HasVerticalScroller = true
};
SetNativeControl(scroller);
}
diff --git a/Xamarin.Forms.Platform.MacOS/Renderers/ScrollViewRenderer.cs b/Xamarin.Forms.Platform.MacOS/Renderers/ScrollViewRenderer.cs
index c41d1d2b..56a537f0 100644
--- a/Xamarin.Forms.Platform.MacOS/Renderers/ScrollViewRenderer.cs
+++ b/Xamarin.Forms.Platform.MacOS/Renderers/ScrollViewRenderer.cs
@@ -23,6 +23,7 @@ namespace Xamarin.Forms.Platform.MacOS
ContentView.PostsBoundsChangedNotifications = true;
NSNotificationCenter.DefaultCenter.AddObserver(this, new Selector(nameof(UpdateScrollPosition)),
BoundsChangedNotification, ContentView);
+ HasVerticalScroller = true;
}
IScrollViewController Controller => Element as IScrollViewController;