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; }