本文介绍了知道变换何时完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我将变换分配给usercontrol,如下所示:
If I assign a transform to a usercontrol like so:
Dim lTrans As New RotateTransform lTrans.Angle = 45 <TheControl>.RenderTransform = lTrans如何知道控件的视觉状态何时被旋转?发生这种旋转之后在代码中发生的事情是我使控制移动,但是在视觉上移动然后旋转一段时间。
How do I know when the visual state of the control is rotated? What is happening is in code after doing this rotation I make the control move, but visually it moves then rotates some time later.
推荐答案对于RotateTransform和RenderTransform,您没有任何事件,唯一的解决方案是我看到正在使用来自控件的LayoutUpdated或Loaded事件。 For the RotateTransform and for RenderTransform you don´t have any event for it, the only solution that i see is using the LayoutUpdated or Loaded events from the control.
更多推荐
知道变换何时完成
发布评论