private static void OnTitlePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;
            string     title   = newValue?.ToString();

            binding.TitleLabel.Text = title;
        }
        private static void OnItemsSecondaryPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;

            binding.SecondaryToolbarContainer.Content = (View)newValue;
            binding.SecondaryToggle.IsVisible         = true;
        }
        private static void OnLayoverPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;
            View       newView = (View)newValue;

            binding.Children.Add(newView);
            Grid.SetRow(newView, 0);
            Grid.SetColumn(newView, 1);
            Grid.SetColumnSpan(newView, 3);
        }
        private void Gesture_Tapped(object sender, System.EventArgs e)
        {
            if (Clicked != null)
            {
                Clicked.Invoke(sender, e);
            }
            if (Command != null)
            {
                Command.Execute(null);
            }

            EbCPLayout.SecondaryItemClicked(Name);
        }
        private static void OnToolBarVisiblePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;
            bool       flag    = Convert.ToBoolean(newValue);

            if (!flag)
            {
                binding.HeaderRow.Height = 0;
            }
            else
            {
                binding.HeaderRow.Height = GridLength.Auto;
            }
        }
 public EbCPLayout()
 {
     InitializeComponent();
     instance = this;
 }
        private static void OnMasterPagePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;

            binding.SideBarToggle.IsVisible = Convert.ToBoolean(newValue);
        }
        private static void OnBackButtonVisiblePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;

            binding.BackButton.IsVisible = Convert.ToBoolean(newValue);
        }
        private static void OnItemsPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;

            binding.ToolBarItemsContainer.Content = (View)newValue;
        }