Hey, Lyubo
Nice to wait for your answer!
private void RibbonButton_Click_1(object sender, RoutedEventArgs e)
{
double newValue;
double x = 0;
double y = 0;
if (double.TryParse(textBoxX.Text, out newValue))
x = newValue;
if (double.TryParse(textBoxY.Text, out newValue))
y = newValue;
var newBounds = new Rect(x, y, imageNode.Bounds.Right, imageNode.Bounds.Bottom);
imageNode.SetBounds(newBounds, true, true);
imageNode.InvalidateVisual();
}
I use this button click event to move the imageNode to the position of (-50, -50). Could it be that the overlayNode is contained in the imageNode? The moving is unsuccessful. How to solve it? Is there any sample code?