You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a grid on the page and I set the cursor property to None.
Inside this grid there are one or more Canvases (the number may change depending on different conditions) and I also created a number of UserControls, each of which does a specific task.
I display these UserControls manually in one of the Canvases, I mean I use the Canvas.Children.Add() code.
So far there is no problem, but when I want to remove a control from the page or remove the Canvas (Canvas.Children.Remove() or Grid.Children.Remove()), the mouse appears on the page for a moment and then hides again.
The program I created needs the mouse to be hidden throughout its execution and displaying the mouse may cause some problems.
To Reproduce
Setting the cursor to None
Adding a Canvas to the page
Adding a UserControl to the page
Removing a UserControl or Canvas from the page
Mouse becomes visible
Expected behavior
The mouse is always hidden.
Avalonia version
11.2.3
OS
Windows
Additional context
2025-02-15.20-19-39.mp4
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a grid on the page and I set the cursor property to None.
Inside this grid there are one or more Canvases (the number may change depending on different conditions) and I also created a number of UserControls, each of which does a specific task.
I display these UserControls manually in one of the Canvases, I mean I use the Canvas.Children.Add() code.
So far there is no problem, but when I want to remove a control from the page or remove the Canvas (Canvas.Children.Remove() or Grid.Children.Remove()), the mouse appears on the page for a moment and then hides again.
The program I created needs the mouse to be hidden throughout its execution and displaying the mouse may cause some problems.
To Reproduce
Setting the cursor to None
Adding a Canvas to the page
Adding a UserControl to the page
Removing a UserControl or Canvas from the page
Mouse becomes visible
Expected behavior
The mouse is always hidden.
Avalonia version
11.2.3
OS
Windows
Additional context
2025-02-15.20-19-39.mp4
No response
The text was updated successfully, but these errors were encountered: