Skip to content

Commit

Permalink
Fix FilePicker sample code (#1429)
Browse files Browse the repository at this point in the history
## Description
Corrects the `FilePicker` sample code modified by #1396.
  • Loading branch information
AndrewKeepCoding authored Jan 17, 2024
1 parent 91c0044 commit 9127f51
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var openPicker = new Windows.Storage.Pickers.FileOpenPicker();

// See the sample code below for how to make the window accessible from the App class.
var window = App.Window;
var window = App.MainWindow;

// Retrieve the window handle (HWND) of the current WinUI 3 window.
var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(window);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var openPicker = new Windows.Storage.Pickers.FileOpenPicker();

// See the sample code below for how to make the window accessible from the App class.
var window = App.Window;
var window = App.MainWindow;

// Retrieve the window handle (HWND) of the current WinUI 3 window.
var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(window);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var openPicker = new Windows.Storage.Pickers.FileOpenPicker();

// See the sample code below for how to make the window accessible from the App class.
var window = App.Window;
var window = App.MainWindow;

// Retrieve the window handle (HWND) of the current WinUI 3 window.
var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(window);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
FolderPicker openPicker = new Windows.Storage.Pickers.FolderPicker();

// See the sample code below for how to make the window accessible from the App class.
var window = App.Window;
var window = App.MainWindow;

// Retrieve the window handle (HWND) of the current WinUI 3 window.
var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(window);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
FileSavePicker savePicker = new Windows.Storage.Pickers.FileSavePicker();

// See the sample code below for how to make the window accessible from the App class.
var window = App.Window;
var window = App.MainWindow;

// Retrieve the window handle (HWND) of the current WinUI 3 window.
var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(window);
Expand Down

0 comments on commit 9127f51

Please sign in to comment.