Esempio n. 1
0
        public HomePage()
        {
            InitializeComponent();
            this.SlideMenu = new HomePageSlideMenu();

            menuButton.Clicked += MenuButton_Clicked;
            this.ToolbarItems.Add(new ToolbarItem
            {
                Command = new Command(() => {
                    if (this.SlideMenu.IsShown)
                    {
                        HideMenuAction?.Invoke();
                    }
                    else
                    {
                        ShowMenuAction?.Invoke();
                    }
                }),

                Text     = "Settings",
                Priority = 0
            });
        }
Esempio n. 2
0
 private void MenuButton_Clicked(object sender, System.EventArgs e)
 {
     ShowMenuAction?.Invoke();
 }
 private void OpenColors()
 {
     ShowMenuAction?.Invoke();
 }