, Expected: CoreWebView2FileSystemHandle",
+ CloseButtonText = "Ok"
+ };
+ messageDialog.XamlRoot = _webView.XamlRoot;
+ await messageDialog.ShowAsync();
+ }
+ Debug.Assert(item is CoreWebView2FileSystemHandle);
+ Debug.Assert(item != null);
+ }
+ }
+ }
+}
diff --git a/SampleApps/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample.csproj b/SampleApps/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample.csproj
index a5148732..c2799425 100644
--- a/SampleApps/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample.csproj
+++ b/SampleApps/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample.csproj
@@ -10,10 +10,14 @@
true
true
+
+
+
-
-
+
+
+
diff --git a/SampleApps/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample/assets/ScenarioFileHandle.html b/SampleApps/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample/assets/ScenarioFileHandle.html
new file mode 100644
index 00000000..cf3a5eae
--- /dev/null
+++ b/SampleApps/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample/assets/ScenarioFileHandle.html
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+ Native to web
+ PWA requires write access to a working directory in the file system.
e.g. to launch installed desktop applications from the native part (like Word for DOCX files)
+
+
+ Web to native
+ PWA requires write access to user selected directory in the file system.
e.g. to launch installed desktop applications from the native part (like Word for DOCX files)
+ Directory handle
+ Sending the handle of the selected directory
+
+ File handle
+ Sending the handle of a just created file
+
+ File handle
+ Sending the handle of an existing file
+
+ File handle
+ Sending the File object to the handle of an existing file
+
+
+
+
+
\ No newline at end of file