var parentWindow = FindWindow(null,"MyAppTittle"); var openPicker = new Windows.Storage.Pickers.FileOpenPicker(); openPicker.FileTypeFilter.Add(".jpg"); openPicker.FileTypeFilter.Add(".bmp") WinRT.Interop.InitializeWithWindow.Initialize(openPicker, parentWindow); //Initilaize StorageFile imageFile = await openPicker.PickSingleFileAsync(); if (imageFile == null) return;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)