Exemplo n.º 1
0
        public PDFPreview(FileObject file)
        {
            InitializeComponent();
            Filepath = file.FilePath;
            var destString = Filepath;

            vm = DataContext as PDFPreviewViewModel;
            if (file.PasswordProtected)
            {
                //currently not supporting passworded previews
                this.Close();
                destString += "#pass=" + file.Password;
            }

            webBrowser.Navigate(new Uri(destString));
        }
Exemplo n.º 2
0
 public PDFPreview(PDFPreviewViewModel model)
 {
     ViewModel = model;
     InitializeComponent();
 }