diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-06-21 10:32:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-21 10:32:08 +0200 |
commit | 28b343b2788fa073a3d3a87610275d8f3e756b61 (patch) | |
tree | d26c9aff136f95ef64aaa433b08c48f5b4d6a4f7 /Xamarin.Forms.Core/TemplatedPage.cs | |
parent | b7b0bf559ad8759110231d73ead0f19e53de5df7 (diff) | |
download | xamarin-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.cs | 9 |
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 |