void OnRequerySuggested(RequerySuggested <Folder> message) { var dispatcherService = this.GetService <IDispatcherService>(); var requery = message.IsSingleEntry ? GetFolderRequery(message.Entry) : GetFoldersRequery(); dispatcherService.BeginInvoke(requery); }
/// <summary> /// Internal use only. Safe invokes (on the UI thread, to prevent Cross Threading exceptions) the RequerySuggested event. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void OnRequerySuggested(object sender, EventArgs e) { SafeInvoke(() => RequerySuggested?.Invoke(sender, e)); }