private void ReactionsList_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { string DocumentPath; if (ReactionsList.SelectedValue != null) { DocumentPath = Path.Combine(C.UserManualsPath, (ReactionsList.SelectedValue as UserManualVM).Value); if (File.Exists(DocumentPath)) { AxFoxitPDFSDK foxit = UserPdfHost.Child as AxFoxitPDFSDK; if (foxit != null) { foxit.UnLockActiveX(C.LICENCE_ID, C.UNLOCK_CODE); foxit.ShowTitleBar(false); foxit.ShowToolBar(false); foxit.ShowNavigationPanels(true); foxit.SetShowSavePrompt(false, 0); } if (foxit != null) { if (!foxit.OpenFile(DocumentPath, String.Empty)) { AppErrorBox.ShowErrorMessage("Can't open pdf file", "Can't open pdf file"); } } } else { AppInfoBox.ShowInfoMessage("PDF File not Found. Please Try after some time."); } } } catch (Exception ex) { Log.This(ex); } }