请教个关于窗口坐标的问题.
创建一个window窗口。给窗口个动画移动,然后获得window的Left就一直是动画的 To 位置,手动改变Left也不好使,请问这是什么原因啊?去掉动画一切正常。这是动画的代码。
DoubleAnimation InDoubleAnimation = new DoubleAnimation();
InDoubleAnimation.From = this.Left;
InDoubleAnimation.To = SystemParameters.PrimaryScreenWidth - ehome.Width;
InDoubleAnimation.Duration = new Duration(TimeSpan.FromSeconds(1));
ehome.BeginAnimation(Window.LeftProperty, InDoubleAnimation);