How to get handle for UI element in uwp

vaishali sharma 21 Reputation points
2021-10-12T09:19:29.583+00:00

I have a UWP App. I need to host multiple windows on my main window. I tried using Win32 API SetParent but it overrides my parent window UI components.

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,636 Reputation points
    2021-10-12T11:42:38.393+00:00

    UI elements have no handle (only the main window)
    You get them with VisualTreeHelper

    1 person found this answer helpful.