知道变换何时完成

编程入门 行业动态 更新时间:2024-10-11 11:22:03
本文介绍了知道变换何时完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

知道变换何时完成

本文发布于:2023-11-25 11:00:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1629487.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!