Click or drag to resize

PdfViewerUserDataFolder Property

The folder where the viewer keeps its browser data (cache, settings). Set it before the control is shown. When not set, a folder under the local application data folder (ExpertPdf\PdfViewer\WebView2) is used. A viewer that uses a fixed version runtime gets a folder of its own (WebView2-<hash> next to it): WebView2 cannot share one folder between runtimes. When the folder is in use by WebView2 with other settings (another application), the viewer uses a folder of the application's own, and a viewer whose window has another DPI awareness than the first viewer of the process (a Windows Forms application becomes DPI aware when it first shows WPF content) uses WebView2-dpi-<awareness> next to it. A folder set here is always used as it is: give viewers with different settings different folders.

Namespace: PdfViewer4WinNet
Assembly: PdfViewerWinNet (in PdfViewerWinNet.dll) Version: 10.0
Syntax
public string UserDataFolder { get; set; }

Property Value

String
See Also