dengfan
Topic Author
Posts: 22
Joined: 19 Nov 2023, 10:32

follow cursor movement, which approach offers better performance?

09 Jul 2025, 12:38

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?
 
User avatar
jsantos
Site Admin
Posts: 4822
Joined: 20 Jan 2012, 17:18
Contact:

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

09 Jul 2025, 13:01

Using a TranslateTransform in a RenderTransform is the most efficient approach. RenderTransform is efficient because it does not affect the layout.
 
dengfan
Topic Author
Posts: 22
Joined: 19 Nov 2023, 10:32

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

09 Jul 2025, 14:55

Got it,Thank you very much!

Who is online

Users browsing this forum: No registered users and 7 guests