public ComparisonDataView()
        {
            InitializeComponent();
            OxyPlotHelper.SetYAxisZoomWheelAndPan(ComparisonPlotView);

            // Design time!
            if (DesignerProperties.GetIsInDesignMode(this))
            {
                var appConfiguration = new CapFrameXConfiguration();
                DataContext = new ComparisonDataViewModel(new FrametimeStatisticProvider(), new FrametimeAnalyzer(), new EventAggregator(), appConfiguration);
            }
        }
        public ComparisonView()
        {
            InitializeComponent();
            OxyPlotHelper.SetAxisZoomWheelAndPan(ComparisonPlotView);

            var context = SynchronizationContext.Current;

            (DataContext as ComparisonViewModel)?.ResetLShapeChart
            .ObserveOn(context)
            .SubscribeOn(context)
            .Subscribe(dummy => ResetLShapeChart());
        }
Beispiel #3
0
        private void UpdatePoints()
        {
            if (process == null || process.Grids.Count - 1 < currentTick)
            {
                return;
            }

            var grid = process.Grids[currentTick];

            Points = OxyPlotHelper.CreatePoints(grid);

            OnPropertyChanged("Points");
        }
Beispiel #4
0
        public SynchronizationView()
        {
            InitializeComponent();
            OxyPlotHelper.SetAxisZoomWheelAndPan(SynchronizationPlotView);
            OxyPlotHelper.SetAxisZoomWheelAndPan(InputLagPlotView);

            // Design time!
            if (DesignerProperties.GetIsInDesignMode(this))
            {
                var appConfiguration = new CapFrameXConfiguration();
                DataContext = new SynchronizationViewModel(new FrametimeStatisticProvider(appConfiguration),
                                                           new EventAggregator(), appConfiguration);
            }
        }
        public ComparisonView()
        {
            InitializeComponent();
            OxyPlotHelper.SetAxisZoomWheelAndPan(ComparisonPlotView);

            // Design time!
            if (DesignerProperties.GetIsInDesignMode(this))
            {
                var appConfiguration = new CapFrameXConfiguration();
                DataContext = new ComparisonViewModel(new FrametimeStatisticProvider(appConfiguration),
                                                      new FrametimeAnalyzer(), new EventAggregator(), appConfiguration);
            }

            var context = SynchronizationContext.Current;

            (DataContext as ComparisonViewModel)?.ResetLShapeChart
            .ObserveOn(context)
            .SubscribeOn(context)
            .Subscribe(dummy => ResetLShapeChart());
        }