Troubleshooting
Introduction
This page discusses common troubleshooting techniques when your Gum Forms objects are not behaving as expected.
Cursor.WindowOver
You can check the WindowOver property to see what the Cursor believes it is over. This can tell you if the Cursor is over the object that you expect it to be over. The following code can be used to output the CursorOver to Visual Studio's output window:
Clicks are Offset
Clicks could be offset if the GraphicalUiElement's CanvasWidth and CanvasHeight are set incorrectly. For more information, see the CanvasHeight page.
You can also output the Cursor's X and Y values to the screen to compare them to the desired object's bounds, as shown in the following code:
Last updated