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 SetContent(View view)
 {
     try
     {
         if (view != null)
         {
             if (HideToolbar)
             {
                 loading = new LoadingContentViewBase
                 {
                     Content = ContentUI
                 };
                 Content = loading;
             }
             else
             {
                 _content.Children.Remove(_content.Children[0]);
                 view.Margin = new Thickness(0, 56, 0, 0);
                 AbsoluteLayout.SetLayoutBounds(view, new Rectangle(0, 56, 1, 1));
                 AbsoluteLayout.SetLayoutFlags(view, AbsoluteLayoutFlags.All);
                 _content.Children.Insert(0, view);
             }
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message, TAG);
     }
 }