-
Now I making prototype of drawing program using WinUI 3 desktop in C#. Possibly, I'm expecting code as property something like; |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There is nothing overly special about doing this here since WinUI 3 is a library running in a desktop application, so any desktop application method for doing this will work. Of course, because this is a desktop environment, UWP features like CoreWindow and the UWP Dispatcher are totally unavailable. |
Beta Was this translation helpful? Give feedback.
-
You can use APIs like SetCursorPos, SendInput or mouse_event and convert Screen to Client coordinates Something like (test to position at 10, 10 inside a SwapChainPanel named scp1:
with :
|
Beta Was this translation helpful? Give feedback.
You can use APIs like SetCursorPos, SendInput or mouse_event and convert Screen to Client coordinates
Something like (test to position at 10, 10 inside a SwapChainPanel named scp1:
with :