summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/ControlGalleryPages
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/ControlGalleryPages')
-rw-r--r--Xamarin.Forms.Controls/ControlGalleryPages/NativeBindingGalleryPage.cs8
-rw-r--r--Xamarin.Forms.Controls/ControlGalleryPages/NestedNativeControlGalleryPage.cs8
2 files changed, 16 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/ControlGalleryPages/NativeBindingGalleryPage.cs b/Xamarin.Forms.Controls/ControlGalleryPages/NativeBindingGalleryPage.cs
index 51d9b970..2941b4bb 100644
--- a/Xamarin.Forms.Controls/ControlGalleryPages/NativeBindingGalleryPage.cs
+++ b/Xamarin.Forms.Controls/ControlGalleryPages/NativeBindingGalleryPage.cs
@@ -10,6 +10,14 @@ namespace Xamarin.Forms.Controls
NestedNativeViewModel ViewModel { get; set; }
+ public const string ReadyForNativeBindingsMessage = "ReadyForNativeBindings";
+
+ protected override void OnAppearing()
+ {
+ base.OnAppearing();
+ MessagingCenter.Send(this, ReadyForNativeBindingsMessage);
+ }
+
public NativeBindingGalleryPage()
{
diff --git a/Xamarin.Forms.Controls/ControlGalleryPages/NestedNativeControlGalleryPage.cs b/Xamarin.Forms.Controls/ControlGalleryPages/NestedNativeControlGalleryPage.cs
index 9f596601..d93d2d66 100644
--- a/Xamarin.Forms.Controls/ControlGalleryPages/NestedNativeControlGalleryPage.cs
+++ b/Xamarin.Forms.Controls/ControlGalleryPages/NestedNativeControlGalleryPage.cs
@@ -6,6 +6,14 @@ namespace Xamarin.Forms.Controls
public bool NativeControlsAdded { get; set; }
+ public const string ReadyForNativeControlsMessage = "ReadyForNativeControls";
+
+ protected override void OnAppearing()
+ {
+ base.OnAppearing();
+ MessagingCenter.Send(this, ReadyForNativeControlsMessage);
+ }
+
public NestedNativeControlGalleryPage ()
{
Layout = new StackLayout { Padding = 20, VerticalOptions = LayoutOptions.FillAndExpand };