How do I set the cursor style for a VisualElement to one of the predefined classes in code? (Arrow, Text, Split Resize Left Down, etc)
I am aware the cursor can be set using the CursorStyle property
style.cursor = SomeCursorStyle;
The problem is I want to use the SplitResizeLeftRight cursor and I can't seem to find where the static classes are defined. Obviously I can do this though a stylesheet, but I want to do it through code. An alternative is to create my own CursorStyle and point it to the appropriate cursor textuer, but again, I can't seem to find where those are located.
According to these docs and the UIElement Debugger I know I can change the style of the cursors. I just can't figure out how to set it to one of those in code.
