I\'m trying to figure out how to constrain a pan so that the image remains entirely within the bounds of it\'s containing border. Any help this regard would be greatly appr
The following code gives you the bounds of the transformed Image control in coordinates relative to the Border control. You could easily check if the bounds are located inside the Border control.
var rect = new Rect(image.RenderSize);
var bounds = image.TransformToAncestor(border).TransformBounds(rect);