From cd606ab9b4ae4df2195925077bc584d2dbbe2ad8 Mon Sep 17 00:00:00 2001 From: Zoltan Koren Date: Fri, 14 Jun 2024 20:07:13 +0200 Subject: [PATCH 1/6] Update views --- .../CarouselViewDemos/Views/MainPage.xaml.cs | 7 +++++++ .../CheckBoxDemos/CheckBoxDemos/Views/MainPage.xaml.cs | 7 +++++++ .../CollectionViewDemos/Views/MainPage.xaml.cs | 7 +++++++ .../GraphicsViewDemos/Views/MainPage.xaml.cs | 7 +++++++ .../IndicatorViewDemos/Views/MainPage.xaml.cs | 7 +++++++ .../ListViewDemos/ListViewDemos/Views/MainPage.xaml.cs | 7 +++++++ .../Map/MapDemo/WorkingWithMaps/Views/MainPage.xaml.cs | 7 +++++++ .../RadioButtonDemos/Views/MainPage.xaml.cs | 7 +++++++ .../ScrollViewDemos/Views/XAML/MainPage.xaml.cs | 7 +++++++ .../Views/ShapesDemos/ShapesDemos/Views/MainPage.xaml.cs | 7 +++++++ .../SwipeViewDemos/SwipeViewDemos/Views/MainPage.xaml.cs | 7 +++++++ .../Views/SwitchDemos/SwitchDemos/Views/MainPage.xaml.cs | 7 +++++++ .../TableViewDemos/TableViewDemos/Views/MainPage.xaml.cs | 7 +++++++ 13 files changed, 91 insertions(+) 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; + } } From c5ff2984a6dacb801214f8cdee6ebe203ab82923 Mon Sep 17 00:00:00 2001 From: Zoltan Koren Date: Fri, 14 Jun 2024 20:07:26 +0200 Subject: [PATCH 2/6] Update layouts --- .../AbsoluteLayoutDemos/Views/XAML/MainPage.xaml.cs | 7 +++++++ .../BindableLayoutDemos/Views/MainPage.xaml.cs | 7 +++++++ .../FlexLayoutDemos/Views/MainPage.xaml.cs | 9 ++++++++- .../GridDemos/GridDemos/Views/XAML/MainPage.xaml.cs | 9 ++++++++- .../StackLayoutDemos/Views/XAML/MainPage.xaml.cs | 7 +++++++ 5 files changed, 37 insertions(+), 2 deletions(-) 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; + } } } From 8792d38b4656563110eac158895a82d55d3e3d14 Mon Sep 17 00:00:00 2001 From: Zoltan Koren Date: Fri, 14 Jun 2024 20:07:34 +0200 Subject: [PATCH 3/6] Update Handlers --- .../CreateHandlerDemo/VideoDemos/Views/MainPage.xaml.cs | 7 +++++++ .../CustomizeHandlersDemo/Views/MainPage.xaml.cs | 7 +++++++ 2 files changed, 14 insertions(+) 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; + } } From e0ac4e212d0593152dcec3a39b2e240210db6922 Mon Sep 17 00:00:00 2001 From: Zoltan Koren Date: Fri, 14 Jun 2024 20:07:43 +0200 Subject: [PATCH 4/6] Update brushesdemo --- .../BrushesDemos/BrushesDemos/Views/MainPage.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } } From 41fe7bad0fd4563ae2aa070cae7bf80473e60a34 Mon Sep 17 00:00:00 2001 From: Zoltan Koren Date: Fri, 14 Jun 2024 20:07:51 +0200 Subject: [PATCH 5/6] Update ControlGallery --- .../ControlGallery/Views/XAML/MainPage.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } } } From ebc94cae73245585c6a02cea8b1668d88a9297f9 Mon Sep 17 00:00:00 2001 From: Zoltan Koren Date: Fri, 14 Jun 2024 20:08:00 +0200 Subject: [PATCH 6/6] Update CustomLayoutDemos --- .../CustomLayoutDemos/Views/MainPage.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } }