private void OnImageSelect(object sender, System.Windows.Input.MouseButtonEventArgs e) { Nullable<bool> result = FileDialog.ShowDialog(); if (result == true) { SelectedProfile.ImagePath = FileDialog.FileName; } }