diff --git a/8.0/UserInterface/BrushesDemos/BrushesDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/BrushesDemos/BrushesDemos/Views/MainPage.xaml.cs index 1e049fd6d..b9bc67694 100644 --- a/8.0/UserInterface/BrushesDemos/BrushesDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/BrushesDemos/BrushesDemos/Views/MainPage.xaml.cs @@ -19,4 +19,11 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/ControlGallery/ControlGallery/Views/XAML/MainPage.xaml.cs b/8.0/UserInterface/ControlGallery/ControlGallery/Views/XAML/MainPage.xaml.cs index 9cdd202ae..ba8f224ec 100644 --- a/8.0/UserInterface/ControlGallery/ControlGallery/Views/XAML/MainPage.xaml.cs +++ b/8.0/UserInterface/ControlGallery/ControlGallery/Views/XAML/MainPage.xaml.cs @@ -21,5 +21,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } diff --git a/8.0/UserInterface/CustomLayoutDemos/CustomLayoutDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/CustomLayoutDemos/CustomLayoutDemos/Views/MainPage.xaml.cs index 731a3e373..89c6dcc94 100644 --- a/8.0/UserInterface/CustomLayoutDemos/CustomLayoutDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/CustomLayoutDemos/CustomLayoutDemos/Views/MainPage.xaml.cs @@ -19,5 +19,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Handlers/CreateHandlerDemo/VideoDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Handlers/CreateHandlerDemo/VideoDemos/Views/MainPage.xaml.cs index c9d305435..282ac39d6 100644 --- a/8.0/UserInterface/Handlers/CreateHandlerDemo/VideoDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Handlers/CreateHandlerDemo/VideoDemos/Views/MainPage.xaml.cs @@ -17,4 +17,11 @@ public MainPage() }); BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Handlers/CustomizeHandlersDemo/CustomizeHandlersDemo/Views/MainPage.xaml.cs b/8.0/UserInterface/Handlers/CustomizeHandlersDemo/CustomizeHandlersDemo/Views/MainPage.xaml.cs index d3e02c99d..aaf3b7923 100644 --- a/8.0/UserInterface/Handlers/CustomizeHandlersDemo/CustomizeHandlersDemo/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Handlers/CustomizeHandlersDemo/CustomizeHandlersDemo/Views/MainPage.xaml.cs @@ -19,4 +19,11 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Layouts/AbsoluteLayoutDemos/AbsoluteLayoutDemos/Views/XAML/MainPage.xaml.cs b/8.0/UserInterface/Layouts/AbsoluteLayoutDemos/AbsoluteLayoutDemos/Views/XAML/MainPage.xaml.cs index 37bc16b87..114b7abb1 100644 --- a/8.0/UserInterface/Layouts/AbsoluteLayoutDemos/AbsoluteLayoutDemos/Views/XAML/MainPage.xaml.cs +++ b/8.0/UserInterface/Layouts/AbsoluteLayoutDemos/AbsoluteLayoutDemos/Views/XAML/MainPage.xaml.cs @@ -20,5 +20,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } diff --git a/8.0/UserInterface/Layouts/BindableLayoutDemos/BindableLayoutDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Layouts/BindableLayoutDemos/BindableLayoutDemos/Views/MainPage.xaml.cs index 482f481f6..de516273c 100644 --- a/8.0/UserInterface/Layouts/BindableLayoutDemos/BindableLayoutDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Layouts/BindableLayoutDemos/BindableLayoutDemos/Views/MainPage.xaml.cs @@ -19,6 +19,13 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } \ No newline at end of file diff --git a/8.0/UserInterface/Layouts/FlexLayoutDemos/FlexLayoutDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Layouts/FlexLayoutDemos/FlexLayoutDemos/Views/MainPage.xaml.cs index 7d4ebedb1..df9934739 100644 --- a/8.0/UserInterface/Layouts/FlexLayoutDemos/FlexLayoutDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Layouts/FlexLayoutDemos/FlexLayoutDemos/Views/MainPage.xaml.cs @@ -1,4 +1,4 @@ -using System.Windows.Input; +using System.Windows.Input; namespace FlexLayoutDemos { @@ -19,5 +19,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } diff --git a/8.0/UserInterface/Layouts/GridDemos/GridDemos/Views/XAML/MainPage.xaml.cs b/8.0/UserInterface/Layouts/GridDemos/GridDemos/Views/XAML/MainPage.xaml.cs index 33cdcc67a..6e1a11a5f 100644 --- a/8.0/UserInterface/Layouts/GridDemos/GridDemos/Views/XAML/MainPage.xaml.cs +++ b/8.0/UserInterface/Layouts/GridDemos/GridDemos/Views/XAML/MainPage.xaml.cs @@ -1,4 +1,4 @@ -using System.Windows.Input; +using System.Windows.Input; namespace GridDemos { @@ -19,5 +19,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } diff --git a/8.0/UserInterface/Layouts/StackLayoutDemos/StackLayoutDemos/Views/XAML/MainPage.xaml.cs b/8.0/UserInterface/Layouts/StackLayoutDemos/StackLayoutDemos/Views/XAML/MainPage.xaml.cs index 661f7cc49..4632c2f55 100644 --- a/8.0/UserInterface/Layouts/StackLayoutDemos/StackLayoutDemos/Views/XAML/MainPage.xaml.cs +++ b/8.0/UserInterface/Layouts/StackLayoutDemos/StackLayoutDemos/Views/XAML/MainPage.xaml.cs @@ -20,5 +20,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } diff --git a/8.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/Views/MainPage.xaml.cs index c6347e764..5a620e799 100644 --- a/8.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/Views/MainPage.xaml.cs @@ -19,5 +19,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } diff --git a/8.0/UserInterface/Views/CheckBoxDemos/CheckBoxDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/CheckBoxDemos/CheckBoxDemos/Views/MainPage.xaml.cs index e00009bd4..263d2624d 100644 --- a/8.0/UserInterface/Views/CheckBoxDemos/CheckBoxDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/CheckBoxDemos/CheckBoxDemos/Views/MainPage.xaml.cs @@ -17,5 +17,12 @@ public MainPage() }); BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/CollectionViewDemos/CollectionViewDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/CollectionViewDemos/CollectionViewDemos/Views/MainPage.xaml.cs index e64b6739b..d14f7e1ca 100644 --- a/8.0/UserInterface/Views/CollectionViewDemos/CollectionViewDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/CollectionViewDemos/CollectionViewDemos/Views/MainPage.xaml.cs @@ -19,5 +19,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } diff --git a/8.0/UserInterface/Views/GraphicsViewDemos/GraphicsViewDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/GraphicsViewDemos/GraphicsViewDemos/Views/MainPage.xaml.cs index d281ebaa5..1d69b5f83 100644 --- a/8.0/UserInterface/Views/GraphicsViewDemos/GraphicsViewDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/GraphicsViewDemos/GraphicsViewDemos/Views/MainPage.xaml.cs @@ -19,5 +19,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } } diff --git a/8.0/UserInterface/Views/IndicatorViewDemos/IndicatorViewDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/IndicatorViewDemos/IndicatorViewDemos/Views/MainPage.xaml.cs index a8be9f221..fb653e799 100644 --- a/8.0/UserInterface/Views/IndicatorViewDemos/IndicatorViewDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/IndicatorViewDemos/IndicatorViewDemos/Views/MainPage.xaml.cs @@ -19,5 +19,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/ListViewDemos/ListViewDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/ListViewDemos/ListViewDemos/Views/MainPage.xaml.cs index 46aa8c53f..0bc43bbb2 100644 --- a/8.0/UserInterface/Views/ListViewDemos/ListViewDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/ListViewDemos/ListViewDemos/Views/MainPage.xaml.cs @@ -18,5 +18,12 @@ public MainPage() }); BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/Map/MapDemo/WorkingWithMaps/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/Map/MapDemo/WorkingWithMaps/Views/MainPage.xaml.cs index fdfc658fe..a38edbcf7 100644 --- a/8.0/UserInterface/Views/Map/MapDemo/WorkingWithMaps/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/Map/MapDemo/WorkingWithMaps/Views/MainPage.xaml.cs @@ -18,5 +18,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/RadioButtonDemos/RadioButtonDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/RadioButtonDemos/RadioButtonDemos/Views/MainPage.xaml.cs index 419021b2a..e7ec90174 100644 --- a/8.0/UserInterface/Views/RadioButtonDemos/RadioButtonDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/RadioButtonDemos/RadioButtonDemos/Views/MainPage.xaml.cs @@ -17,5 +17,12 @@ public MainPage() }); BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/ScrollViewDemos/ScrollViewDemos/Views/XAML/MainPage.xaml.cs b/8.0/UserInterface/Views/ScrollViewDemos/ScrollViewDemos/Views/XAML/MainPage.xaml.cs index fabff4ec8..c1f216e4c 100644 --- a/8.0/UserInterface/Views/ScrollViewDemos/ScrollViewDemos/Views/XAML/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/ScrollViewDemos/ScrollViewDemos/Views/XAML/MainPage.xaml.cs @@ -19,4 +19,11 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/ShapesDemos/ShapesDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/ShapesDemos/ShapesDemos/Views/MainPage.xaml.cs index 015ddc6d2..ea1ae4561 100644 --- a/8.0/UserInterface/Views/ShapesDemos/ShapesDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/ShapesDemos/ShapesDemos/Views/MainPage.xaml.cs @@ -19,4 +19,11 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/SwipeViewDemos/SwipeViewDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/SwipeViewDemos/SwipeViewDemos/Views/MainPage.xaml.cs index b7d8e733c..8665159f8 100644 --- a/8.0/UserInterface/Views/SwipeViewDemos/SwipeViewDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/SwipeViewDemos/SwipeViewDemos/Views/MainPage.xaml.cs @@ -19,5 +19,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/SwitchDemos/SwitchDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/SwitchDemos/SwitchDemos/Views/MainPage.xaml.cs index 99e15f9cd..309d676ee 100644 --- a/8.0/UserInterface/Views/SwitchDemos/SwitchDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/SwitchDemos/SwitchDemos/Views/MainPage.xaml.cs @@ -18,5 +18,12 @@ public MainPage() BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } } diff --git a/8.0/UserInterface/Views/TableViewDemos/TableViewDemos/Views/MainPage.xaml.cs b/8.0/UserInterface/Views/TableViewDemos/TableViewDemos/Views/MainPage.xaml.cs index 26dd54991..e2a031ac1 100644 --- a/8.0/UserInterface/Views/TableViewDemos/TableViewDemos/Views/MainPage.xaml.cs +++ b/8.0/UserInterface/Views/TableViewDemos/TableViewDemos/Views/MainPage.xaml.cs @@ -18,4 +18,11 @@ public MainPage() }); BindingContext = this; } + + protected override void OnAppearing() + { + base.OnAppearing(); + BindingContext = null; + BindingContext = this; + } }