コード例 #1
0
ファイル: LongListView.cs プロジェクト: jakkaj/Xamling-Core
 public LongListView()
 {
     var l = new XListView();
     l.SetBinding(ListView.ItemsSourceProperty, "Items");
     l.SetBinding(XListView.MoreDataCommandProperty, "MoreDataCommand");
     Content = l;
 }
コード例 #2
0
        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;
        }