View CreateDayRow ()
 {
     var carousel = new CarouselLayout {
         HeightRequest = 40,
         ItemTemplate = new DataTemplate (typeof(DayHeader))
     };
     carousel.SetBinding (CarouselLayout.ItemsSourceProperty, "FullScheduleDays");
     carousel.SetBinding (CarouselLayout.SelectedItemProperty, "SelectedDay");
     return carousel;
 }
		CarouselLayout CreateSessionInfoCarousel ()
		{
			var carousel = new CarouselLayout 
			{
				ItemTemplate = new DataTemplate(typeof(SessionInfoView)),
				HorizontalOptions = LayoutOptions.FillAndExpand,
				VerticalOptions = LayoutOptions.FillAndExpand
			};

			carousel.SetBinding (CarouselLayout.ItemsSourceProperty, "SlotSessions");
			carousel.SetBinding (CarouselLayout.SelectedItemProperty, "SlotSession");

			return carousel;
		}
Ejemplo n.º 3
0
        View CreateCurrentSessionsCarousel ()
        {
            var carousel = new CarouselLayout 
			{
				HorizontalOptions = LayoutOptions.FillAndExpand,
				VerticalOptions = LayoutOptions.FillAndExpand,
                ItemTemplate = new DataTemplate(typeof(HomeCurrentSessionView))
            };
            carousel.SetBinding (CarouselLayout.ItemsSourceProperty, "CurrentSessions");
            carousel.SetBinding (CarouselLayout.SelectedItemProperty, "CurrentSession");

            return carousel;
        }