Hello all I am trying to get the size changed event of a stack panel like this but its not working and i cant figure out or research why this is.
this.stackPanel1.SizeChanged += new SizeChangedEventHandler(myRectangleSizeChangedEvent);
private void myRectangleSizeChangedEvent(object sender, System.EventArgs e)
{
MessageBox.Show("Rectangle changed!");
Canvas.SetLeft(this.quickExit1, this.stackPanel1.Width - 32);
}
Please let me know anyone if you have and tip thanks alot.