//public string Path { get; set; } private void RefreshImagePreview() { if (Path != null && Path != "") { var path = MainViewModel.AbsolutePath(MainViewModel.MainViewModelStatic.Location, Path); if (File.Exists(path)) { imgImage.Source = new BitmapImage(new Uri(path)); } else { Path = ""; } } textImageLink.Text = Path; }