For Windows automation, be it UWP (Universal Windows Platform Application) or the legendary Winforms Win32 (called Classic Windows Application) you can try WinAppDriver - Windows Application Driver
What is basically WinAppDriver? You can automate UI in the same way that is done for example in Selenium Driver . That is, by C # code in this case of your need, to be able to manipulate the UI of the target application.
See the example for notepad
// Launch Notepad
DesiredCapabilities appCapabilities = new DesiredCapabilities();
appCapabilities.SetCapability("app", @"C:\Windows\System32\notepad.exe");
appCapabilities.SetCapability("appArguments", @"MyTestFile.txt");
appCapabilities.SetCapability("appWorkingDir", @"C:\MyTestFolder\");
NotepadSession = new WindowsDriver<WindowsElement>(new Uri("http://127.0.0.1:4723"), appCapabilities);
// Use the session to control the app
NotepadSession.FindElementByClassName("Edit").SendKeys("This is some text");
There are several examples in the repo
How to locate the elements of the form? the Id? Idem to the inspector of the pages you have an Inspect.exe tool that comes in the Windows SDK
An example of how to find the name here
Links that can help or guide you
I hope it will help or guide you