summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/TemplatedPage.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-06-21 10:32:08 +0200
committerGitHub <noreply@github.com>2017-06-21 10:32:08 +0200
commit28b343b2788fa073a3d3a87610275d8f3e756b61 (patch)
treed26c9aff136f95ef64aaa433b08c48f5b4d6a4f7 /Xamarin.Forms.Core/TemplatedPage.cs
parentb7b0bf559ad8759110231d73ead0f19e53de5df7 (diff)
downloadxamarin-forms-28b343b2788fa073a3d3a87610275d8f3e756b61.tar.gz
xamarin-forms-28b343b2788fa073a3d3a87610275d8f3e756b61.tar.bz2
xamarin-forms-28b343b2788fa073a3d3a87610275d8f3e756b61.zip
[C] reset the BindingContext on template change (#998)
* [C] reset the BindingContext on template change * fix test
Diffstat (limited to 'Xamarin.Forms.Core/TemplatedPage.cs')
-rw-r--r--Xamarin.Forms.Core/TemplatedPage.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/TemplatedPage.cs b/Xamarin.Forms.Core/TemplatedPage.cs
index 69c2d58b..9d50c8b2 100644
--- a/Xamarin.Forms.Core/TemplatedPage.cs
+++ b/Xamarin.Forms.Core/TemplatedPage.cs
@@ -34,5 +34,14 @@ namespace Xamarin.Forms
if (ControlTemplate == null)
base.SetChildInheritedBindingContext(child, context);
}
+
+ void IControlTemplated.OnControlTemplateChanged(ControlTemplate oldValue, ControlTemplate newValue)
+ {
+ OnControlTemplateChanged(oldValue, newValue);
+ }
+
+ internal virtual void OnControlTemplateChanged(ControlTemplate oldValue, ControlTemplate newValue)
+ {
+ }
}
} \ No newline at end of file