Set default viewer in WPF application

Vikas S 1 Reputation point
2022-07-19T13:47:42.58+00:00

Hi Everyone,

I am using own pdf viewer control in WPF C# application and I am trying to set it as the default viewer at run time in a button click.
Can anyone please let me know how to achieve this requirement.

Regards,
Vikas

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,240 questions
{count} votes