Exemplo n.º 1
0
        public Homepage()
        {
            BindingContext = new EventViewModel();

            var refresh = new ToolbarItem
            {
                Name     = "refresh",
                Icon     = "refresh.png",
                Command  = _vm.Refresh,
                Priority = 0
            };

            ToolbarItems.Add(refresh);

            Title = "Meetup Event Finder";

            var list = new EventListView(_vm)
            {
                Title = "Events", Icon = "list.png"
            };
            var map = new EventMapView(_vm)
            {
                Title = "Map", Icon = "map.png"
            };

            Children.Add(list);
            Children.Add(map);
        }
Exemplo n.º 2
0
        public Homepage()
        {
            BindingContext = new EventViewModel();

            var refresh = new ToolbarItem
            {
                Name = "refresh",
                Icon = "refresh.png",
                Command = _vm.Refresh,
                Priority = 0
            };

            ToolbarItems.Add(refresh);

            Title = "Meetup Event Finder";

            var list = new EventListView(_vm) { Title = "Events", Icon = "list.png" };
            var map = new EventMapView(_vm) { Title = "Map", Icon = "map.png"};

            Children.Add(list);
            Children.Add(map);
        }