Bilder werden wieder angezeigt

This commit is contained in:
2026-03-23 16:11:06 +01:00
parent 0f8d538136
commit 1cfc856407
8 changed files with 35 additions and 57 deletions

View File

@@ -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();