コード例 #1
0
        private static void OnTitlePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;
            string     title   = newValue?.ToString();

            binding.TitleLabel.Text = title;
        }
コード例 #2
0
        private static void OnItemsSecondaryPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;

            binding.SecondaryToolbarContainer.Content = (View)newValue;
            binding.SecondaryToggle.IsVisible         = true;
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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;
            }
        }
コード例 #6
0
 public EbCPLayout()
 {
     InitializeComponent();
     instance = this;
 }
コード例 #7
0
        private static void OnMasterPagePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;

            binding.SideBarToggle.IsVisible = Convert.ToBoolean(newValue);
        }
コード例 #8
0
        private static void OnBackButtonVisiblePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;

            binding.BackButton.IsVisible = Convert.ToBoolean(newValue);
        }
コード例 #9
0
        private static void OnItemsPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EbCPLayout binding = bindable as EbCPLayout;

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