コード例 #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);
        }
コード例 #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);
        }