public ContentPageBase()
 {
     try
     {
         BackgroundColor = Color.White;
         Xamarin.Forms.NavigationPage.SetHasNavigationBar(this, false);
         if (Device.RuntimePlatform.Equals(Device.iOS) && DeviceInfo.Version.Major <= 10)
         {
             Padding = new Thickness(0, 20, 0, 0);
         }
         else
         {
             On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true);
         }
         AbsoluteLayout.SetLayoutBounds(ContentUI, new Rectangle(0, 56, 1, 1));
         AbsoluteLayout.SetLayoutFlags(ContentUI, AbsoluteLayoutFlags.SizeProportional);
         _content.Children.Add(ContentUI);
         var toolbar = new ToolbarBase();
         AbsoluteLayout.SetLayoutBounds(toolbar, new Rectangle(0, 0, 1, 56));
         AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.XProportional);
         AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.YProportional);
         AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.WidthProportional);
         _content.Children.Insert(1, toolbar);
         loading = new LoadingContentViewBase
         {
             Content = _content
         };
         Content = loading;
     }
     catch (System.Exception ex)
     {
         Debug.WriteLine(ex.Message, TAG);
     }
 }
 private void SetChangeToolbar(bool isBackToolbar)
 {
     try
     {
         if (isBackToolbar)
         {
             _content.Children.Remove(_content.Children[1]);
             var toolbar = new ToolbarBackBase();
             AbsoluteLayout.SetLayoutBounds(toolbar, new Rectangle(0, 0, 1, 56));
             AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.XProportional);
             AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.YProportional);
             AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.WidthProportional);
             _content.Children.Insert(1, toolbar);
         }
         else
         {
             _content.Children.Remove(_content.Children[1]);
             var toolbar = new ToolbarBase();
             AbsoluteLayout.SetLayoutBounds(toolbar, new Rectangle(0, 0, 1, 56));
             AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.XProportional);
             AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.YProportional);
             AbsoluteLayout.SetLayoutFlags(toolbar, AbsoluteLayoutFlags.WidthProportional);
             _content.Children.Insert(1, toolbar);
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message, TAG);
     }
 }