private void OnTrackedControlMouseEnter(object sender, MouseEventArgs e)
        {
            FrameworkElement element = (FrameworkElement)((FrameworkElement)sender).Parent;
            while (element != null)
            {
                SingleTrajectoryGraph singleTrajectory = element as SingleTrajectoryGraph;
                if (singleTrajectory != null)
                {
                    _trackingTrajectoryData = (VisualSingleTrajectory)singleTrajectory.DataContext;
                }

                element = (FrameworkElement)element.Parent;
            }

            _trackingCount++;
            _dataPopup.IsOpen = true;
        }
        /// <summary>
        /// Set data context.
        /// </summary>
        /// <param name="trajectoryData">Trajectory data.</param>
        public void SetDataContext(VisualSingleTrajectory trajectoryData)
        {
            DataContext = trajectoryData;

            VisualConstantSamples visualConstantSamples = new VisualConstantSamples();
            visualConstantSamples.Samples = trajectoryData.Means;
            visualConstantSamples.Deviations = trajectoryData.StandardDeviations;
            visualConstantSamples.TimeAxis = trajectoryData.TimeAxis;
            visualConstantSamples.YAxis = trajectoryData.YAxis;
            _meanGraph.SetDataContext(visualConstantSamples);

            VisualLinerSamples visualLinerSamples = new VisualLinerSamples();
            visualLinerSamples.Samples = trajectoryData.AuxiliaryParameters;
            visualLinerSamples.TimeAxis = trajectoryData.TimeAxis;
            visualLinerSamples.YAxis = trajectoryData.YAxis;
            _auxiliaryParameterGraph.SetDataContext(visualLinerSamples);

            visualLinerSamples = new VisualLinerSamples();
            visualLinerSamples.Samples = trajectoryData.GeneratedParameters;
            visualLinerSamples.TimeAxis = trajectoryData.TimeAxis;
            visualLinerSamples.YAxis = trajectoryData.YAxis;
            _parameterGraph.SetDataContext(visualLinerSamples);

            _hightlighFrames.SelectedFrames = trajectoryData.SelectedFrameIndexes;
            _hightlighFrames.HighlightFrames = trajectoryData.HoverFrameIndexes;
            _hightlighFrames.TimeAxis = trajectoryData.TimeAxis;

            _frameline.TimeAxis = trajectoryData.TimeAxis;

            _trajectoryData = trajectoryData;
        }