Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Xamarin.Forms;
- namespace NavigationDemoVS
- {
- class DropdownMenu : ContentPage
- {
- public DropdownMenu()
- {
- ToolbarItems.Clear();
- ToolbarItems.Add(new ToolbarItem
- {
- Text = "Home",
- Order = ToolbarItemOrder.Secondary,
- Command = new Command(() => Navigation.PushAsync(new HomePage()))
- });
- ToolbarItems.Add(new ToolbarItem
- {
- Text = "Second",
- Order = ToolbarItemOrder.Secondary,
- Command = new Command(() => Navigation.PushAsync(new secondPage()))
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement