//private string photoId;

        public StreamPage(CategoryThumbnailBundle bundle)
        {
            InitializeComponent();
            NavigationPage.SetBackButtonTitle(this, "Back");

            viewModel = SimpleIoc.Default.GetInstance <StreamPageViewModel>();
            viewModel.Init(bundle.Preview);
            BindingContext = viewModel;
        }
Example #2
0
        public StreamPage()
        {
            this.InitializeComponent();

            var strategy = GetHighlightStrategyForOrientation(DisplayInformation.GetForCurrentView().CurrentOrientation);

            _viewModel = new StreamPageViewModel(strategy);

            DataContext = _viewModel;

            _timer.Tick += DispatcherTimer_Tick;
        }
Example #3
0
        public StreamPage()
        {
            this.InitializeComponent();

            var strategy = new HighlightStrategy(12, new List <int> {
                0, 7
            });

            _viewModel = new StreamPageViewModel(strategy);

            DataContext = _viewModel;

            _timer.Tick += DispatcherTimer_Tick;

            Mosaic.LayoutUpdated += Mosaic_LayoutUpdated;
        }