Unable to upload file from windows directory in Windows Application (WPF) Testing

Hi, I am testing a WPF application and there is a test case in which I need to upload an image file from the windows directory. There is the method UploadFile which is for web testing. Can anyone suggest some property/method for uploading files in windows testing?

Thanks!

The article below is for the browser but it should work for windows app as well. Just note that you cannot be playing with the keyboard or mouse when using the robot as that will take the control away from it.