Пример #1
0
        public StreamPage()
        {
            this.InitializeComponent();

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

            _viewModel = new StreamPageViewModel(strategy);

            DataContext = _viewModel;

            _timer.Tick += DispatcherTimer_Tick;
        }
Пример #2
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;
        }