I have a controller class that returns some images as WriteableBitmap
. I use that lib in my WPF
app that should refresh the Image
immediately. The problem is, nothing happens when I change its Source
:/
private void Csm_OnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
{
WriteableBitmap bitmap = ((Csm) sender).Bitmap;
Preview.Source = bitmap;
}
How to change the code inside to refresh the image? Sometimes event occurs about 10-20 times for second, so it works almost like video preview.