知道变换何时完成 [英] Knowing when a transform has completed

查看:89
本文介绍了知道变换何时完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将变换分配给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.


这篇关于知道变换何时完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆