I'm trying to code a image viewer with C# WPF. I'm using System.Windows.Controls.Image to view an image. I can read the image from file with rectangle. (I've my own ReadScaledRegion function to read the specific rectangle of image from file)
My problem is, I want to move the picture inside the image control and reload the empty parts of image control.
When I do it with Windows Forms, PictureBox's Paint event gives me the ClipRectangle to reload the empty parts. But I can't do it with WPF.
Is there any way to do that with WPF?
Thank you!