private void RequestFlightAnalysisSub(FAChartSubModel subModel, FlightAnalysisSubNavigateParameter parameter) { if (FlightAnalysisSubNavigationRequested != null) { this.FlightAnalysisSubNavigationRequested( subModel, new FlightAnalysisSubNavigateEventArgs() { Parameter = parameter }); } }
void chart_Tapped(object sender, TappedRoutedEventArgs e) { System.Diagnostics.Debug.WriteLine("Tapped:+" + sender.GetHashCode().ToString()); if (sender != null && sender is SfChart) { SfChart chart = sender as SfChart; if (chart.DataContext != null && chart.DataContext is FAChartSubModel) { FAChartSubModel subModel = chart.DataContext as FAChartSubModel; FlightAnalysisSubNavigateParameter parameter = new FlightAnalysisSubNavigateParameter() { CurrentStartSecond = ViewModel.CurrentStartSecond, CurrentEndSecond = ViewModel.CurrentEndSecond, HostParameterID = subModel.ParameterID }; this.RequestFlightAnalysisSub(subModel, parameter); e.Handled = true; } } }
void chart_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e) { if (sender != null && sender is SfChart) { SfChart chart = sender as SfChart; if (chart.DataContext != null && chart.DataContext is FAChartSubModel) { FAChartSubModel subModel = chart.DataContext as FAChartSubModel; FlightAnalysisSubNavigateParameter parameter = new FlightAnalysisSubNavigateParameter() { CurrentStartSecond = ViewModel.CurrentStartSecond, CurrentEndSecond = ViewModel.CurrentEndSecond, HostParameterID = subModel.ParameterID }; this.RequestFlightAnalysisSub(subModel, parameter); e.Handled = true; } } }