示例#1
0
        public MainPage()
        {
            InitializeComponent();

            _service = new FireBaseService();

            _list = new ListView()
            {
                VerticalScrollBarVisibility = ScrollBarVisibility.Never,
                SeparatorVisibility         = SeparatorVisibility.None,
                HasUnevenRows = true,
                SelectionMode = ListViewSelectionMode.None,
                ItemTemplate  = new DataTemplate(() =>
                {
                    var cell  = new ViewCell();
                    cell.View = new Frame()
                    {
                        HasShadow    = true,
                        Margin       = new Thickness(2, 4, 2, 4),
                        Padding      = 0,
                        Content      = new RPOLab.Views.FilmView(),
                        CornerRadius = 20
                    };

                    return(cell);
                })
            };

            _list.ItemTapped += new EventHandler <ItemTappedEventArgs>(list_ItemTapped);
            filmContainer.Children.Add(_list);
        }
示例#2
0
 public NewFilmPage()
 {
     InitializeComponent();
     _service = new FireBaseService();
     _film    = new Film();
 }
 public NotifyController(FireBaseService fireBaseService)
 {
     this.fireBaseService = fireBaseService;
 }