Exemplo n.º 1
0
        public UserListView()
        {
            BindingContext = new UserViewModel(this.Navigation);

            list = new ListView()
            {
                RowHeight           = Height / 6,
                VerticalOptions     = LayoutOptions.FillAndExpand,
                BackgroundColor     = Colors.DarkGray.ToFormsColor(),
                SeparatorColor      = Colors.Green.ToFormsColor(),
                SeparatorVisibility = SeparatorVisibility.Default,
            };
            string       my = ViewModel.UserListInfo.experts;
            UserCellView xy = new UserCellView();

            list.ItemsSource  = ViewModel.UserDetails;
            list.ItemTemplate = new DataTemplate(typeof(UserCellView));

            this.Content = list;
        }
Exemplo n.º 2
0
		public UserListView ()
		{

			BindingContext = new UserViewModel(this.Navigation);

			list = new ListView()
			{ 
				RowHeight=Height/6,
				VerticalOptions=LayoutOptions.FillAndExpand,
				BackgroundColor=Colors.DarkGray.ToFormsColor(),
				SeparatorColor=Colors.Green.ToFormsColor(),
				SeparatorVisibility =SeparatorVisibility.Default,
			};
			string my=ViewModel.UserListInfo.experts;
			UserCellView xy= new UserCellView ();
			list.ItemsSource = ViewModel.UserDetails;
			list.ItemTemplate = new DataTemplate(typeof(UserCellView));

			this.Content = list;

		}