private void ButtonSelectImage_Click(object sender, RoutedEventArgs e)
        {
            var path = Dialogs.SelectImageFile(this);

            if (!string.IsNullOrEmpty(path))
            {
                ImageImage.Source = BitmapExtensions.BitmapFromFile(path);
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(ImageImage.Tag.ToString()));
            }
        }
Beispiel #2
0
 public string SelectImagefile()
 {
     return(Invoke(() => Dialogs.SelectImageFile(PlayniteWindows.CurrentWindow)));
 }