@code { [Parameter] public string PdfPath { get; set; } = string.Empty; [Parameter] public EventCallback OnCancel { get; set; } private void OpenPdf() { // Platform specific open try { var p = new System.Diagnostics.Process(); p.StartInfo = new System.Diagnostics.ProcessStartInfo(PdfPath) { UseShellExecute = true }; p.Start(); } catch {} } }