Function doesn't work, but it must work

Posted by Artem on Stack Overflow See other posts from Stack Overflow or by Artem
Published on 2010-05-07T04:58:08Z Indexed on 2010/05/07 5:08 UTC
Read the original article Hit count: 511

Filed under:
|
private void Main_OnLayoutUpdated(object sender, EventArgs e)
        {
            label1.Content = Classes.Global.X.ToString();
            Classes.Global.PositionChanged(this);
        }

PositionChanged writes to X new x-position of window. It works, but as soon as I delete label1 it stops working. No errors.

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf