Beispiel #1
0
 public LongListView()
 {
     var l = new XListView();
     l.SetBinding(ListView.ItemsSourceProperty, "Items");
     l.SetBinding(XListView.MoreDataCommandProperty, "MoreDataCommand");
     Content = l;
 }
        public MasterDetailMenuPageView()
        {
            Icon = "settings.png";
            Title = "menu";
            BackgroundColor = Color.FromHex("FFFFFF");
            var list = new XListView();
            list.BackgroundColor = Color.Transparent;

            list.SetBinding(ListView.ItemsSourceProperty, "Items");
            list.SetBinding(ListView.SelectedItemProperty, "SelectedItem");

            var headerPane = new ContentView();
            headerPane.BackgroundColor = Color.FromHex("333333");
            headerPane.Padding = new Thickness(10, 30, 10, 10);

          
            var stack = new StackLayout();
            stack.Children.Add(headerPane);
           

            stack.Children.Add(list);
            Content = stack;
        }