Skip to content

899019 - How to show a custom password dialog box for the password protected document in PdfViewer #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 27, 2025

Conversation

Dhileep4290
Copy link
Collaborator

Description:

  • 899019 - How to show a custom password dialog box for the password protected document in PdfViewer.
  • Added a sample to show a custom password dialog box for the password-protected document in the PdfViewer.

@Dhileep4290 Dhileep4290 requested a review from Vikassekar June 24, 2025 06:33
}
}

private void pdfViewer_GetDocumentPassword(object sender, Syncfusion.Windows.PdfViewer.GetDocumentPasswordEventArgs e)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the xml comments in the required places

}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
pdfViewer.Visibility = Visibility.Hidden;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we are hiding the PdfViewer unwantedly? Also remove the open icon from default toolbar

{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of window loaded, add it in Pdfviewer loaded

@RajaVigneshB RajaVigneshB merged commit 6589e4b into master Jun 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants