void OnPivotGridOlapException(object sender, PivotOlapExceptionEventArgs e) { e.Handled = true; pivotGrid.Dispatcher.BeginInvoke( new Action(delegate() { ShowOLAPErrorMessage(e); }) ); }
void ShowOLAPErrorMessage(PivotOlapExceptionEventArgs e) { errorText.Text = (e.Exception.Message + "\r\n " + ((e.Exception.InnerException != null) ? e.Exception.InnerException.Message : string.Empty)); VisualStateManager.GoToState(this, "ShowErrorMessage", true); DispatcherTimer timer = new DispatcherTimer(); timer.Interval = new TimeSpan(0, 0, 10); timer.Tick += OnTimerTick; timer.Start(); e.Handled = true; }
void OnPivotGridOlapException(object sender, PivotOlapExceptionEventArgs e) { e.Handled = true; }