//private string photoId; public StreamPage(CategoryThumbnailBundle bundle) { InitializeComponent(); NavigationPage.SetBackButtonTitle(this, "Back"); viewModel = SimpleIoc.Default.GetInstance <StreamPageViewModel>(); viewModel.Init(bundle.Preview); BindingContext = viewModel; }
public StreamPage() { this.InitializeComponent(); var strategy = GetHighlightStrategyForOrientation(DisplayInformation.GetForCurrentView().CurrentOrientation); _viewModel = new StreamPageViewModel(strategy); DataContext = _viewModel; _timer.Tick += DispatcherTimer_Tick; }
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; }