Push text into text boxes belonging to a component referenced from an external DLL? RRS feed

  • Question

  • I have a C# Windows Store App that references a package that performs OAuth authorization to make working with a particular REST API easier.  The problem is, they don't give you access to the access token generated by the session, or a way to provide the login details to the component via a method call or properties either.  You call their component's Authorize() method and it does the rest.  The component puts up a simple form (on its canvas area) with with the login elements and the rest of the details are maintained internal to the component.

    I'm guessing that through reflection or some other "meta" technique I should be able to get access to the login form elements (user name, password, etc. text boxes)?  If I can do that during testing, then I can auto-enter the login details when I detect the presence of the component's login form from an async loop running in the background.  As it is right now, every time I modify and run the program I have to laboriously enter the login details and a couple other fields of information.

    Is there a way to get access to the referenced component's form elements so I can push text into them at run-time?

    -- roschler

    Tuesday, August 12, 2014 1:42 AM

All replies

  • Hard to say without knowing the details of the component. 

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, August 12, 2014 12:36 PM