From 39d8b43b406fa19718aea6e75233a82e6711041a Mon Sep 17 00:00:00 2001 From: Nadya Atanasova Date: Mon, 29 Sep 2014 17:16:27 +0300 Subject: [PATCH] Let CordovaView respect DisallowOverscroll preference --- template/cordovalib/CordovaView.xaml.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/template/cordovalib/CordovaView.xaml.cs b/template/cordovalib/CordovaView.xaml.cs index 0514aa68..5e790a3a 100644 --- a/template/cordovalib/CordovaView.xaml.cs +++ b/template/cordovalib/CordovaView.xaml.cs @@ -196,6 +196,19 @@ private void ApplyConfigurationPreferences() Debug.WriteLine("Unable to parse BackgroundColor value '{0}'. Error: {1}", bgColor, ex.Message); } } + + string disallowOverscroll = configHandler.GetPreference("disallowoverscroll"); + if (!String.IsNullOrEmpty(disallowOverscroll)) + { + try + { + this.DisableBouncyScrolling = bool.Parse(disallowOverscroll); + } + catch (Exception ex) + { + Debug.WriteLine("Unable to parse DisallowOverscroll value '{0}'. Error: {1}", disallowOverscroll, ex.Message); + } + } } /*