I try to open System file dialog to select a pic. the code ran normally in my computer. But in another computer cant show the system file dialog.
And here is my simple code:-
private void PicInputBtn_Click(object sender, RoutedEventArgs e)
{
var dialog = new Microsoft.Win32.OpenFileDialog
{
DefaultExt = ".jpg",
Filter = "img file|*.jpg",
};
if (dialog.ShowDialog() != true)
{
return;
}
}