This is a migrated thread and some comments may be shown as answers.

How to show the same opened window again

1 Answer 3 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Prabakaran
Top achievements
Rank 1
Prabakaran asked on 19 Nov 2015, 10:00 AM

Dear Team,

If the doc is open for the first time, a new doc window will open and if the same doc is open again, the existing window should be set active. Currently keep opening new windows instead show already opened window. How can i achieve this. please advise.

var openwindow = new PDFViewerWindow();
                                  openwindow.Show();
                                  openwindow.pdfViewer.DocumentSource =
                                      new PdfDocumentSource(new Uri(uri, UriKind.RelativeOrAbsolute));

Thank you.

Regards,

Prabakaran

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 24 Nov 2015, 08:58 AM
Hello Prabakaran,

You could implement something like caching to keep the information about the corresponding window for each document and set the desired window as active when needed. You may find helpful to check this reply on StackOverflow, which concerns a scenario similar to this one.

Regards,
Tanya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PDFViewer
Asked by
Prabakaran
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or