Page 1 of 1

follow cursor movement, which approach offers better performance?

Posted: 09 Jul 2025, 12:38
by dengfan
In NoesisGUI, if I want a control to follow the cursor movement, which approach offers better performance: using the Canvas.Left and Canvas.Top properties, or using the X and Y properties of a TranslateTransform?

Re: follow cursor movement, which approach offers better performance?

Posted: 09 Jul 2025, 13:01
by jsantos
Using a TranslateTransform in a RenderTransform is the most efficient approach. RenderTransform is efficient because it does not affect the layout.

Re: follow cursor movement, which approach offers better performance?

Posted: 09 Jul 2025, 14:55
by dengfan
Got it,Thank you very much!