HWND Extension methods To get the extension methods, first add using WinUIEx; to the top of your code.