Bilder werden wieder angezeigt
This commit is contained in:
@@ -5,7 +5,6 @@ using System.Runtime.CompilerServices;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using ChatController.Annotations;
|
||||
using ChatController.Core;
|
||||
|
||||
namespace ChatController.Utilities
|
||||
{
|
||||
@@ -20,7 +19,7 @@ namespace ChatController.Utilities
|
||||
set
|
||||
{
|
||||
_OriginalFilePath = value;
|
||||
OnPropertyChanged(nameof(OriginalFilePath));
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(FileName));
|
||||
}
|
||||
}
|
||||
@@ -32,7 +31,7 @@ namespace ChatController.Utilities
|
||||
set
|
||||
{
|
||||
_ScaledFilePath = value;
|
||||
OnPropertyChanged(nameof(ScaledFilePath));
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +43,7 @@ namespace ChatController.Utilities
|
||||
private set
|
||||
{
|
||||
_ChatMessageImageSource = value;
|
||||
OnPropertyChanged(nameof(ChatMessageImageSource));
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +54,7 @@ namespace ChatController.Utilities
|
||||
|
||||
var uri = new Uri(scaledFilePath);
|
||||
|
||||
if (Constants.ImageFileExtensions.Contains(Path.GetExtension(scaledFilePath).ToUpperInvariant()) && uri.IsFile)
|
||||
if(Constants.ImageFileExtensions.Contains(Path.GetExtension(scaledFilePath).ToUpperInvariant()) && uri.IsFile)
|
||||
{
|
||||
var bitmap = new BitmapImage(uri);
|
||||
bitmap.Freeze();
|
||||
|
||||
Reference in New Issue
Block a user