Calling a WPF Application and modify exposed properties?

Posted by Justin on Stack Overflow See other posts from Stack Overflow or by Justin
Published on 2010-05-25T16:28:40Z Indexed on 2010/05/25 21:41 UTC
Read the original article Hit count: 213

Filed under:
|
|
|
|

I have a WPF Keyboard Application, it is developed in such a way that an application could call it and modify its properties to adapt the Keyboard to do what it needs to. Right now I have a file *.Keys.Set which tells the application (on open) to style itself according to that new style. I know this file could be passed as a command line argument into the application.

That would not be a problem. My concern is, is there a way via a managed environment to change the properties of the executable as long as they are exposed properly, an example:

'Creates a new instance of the Keyboard Application
Dim e_key as new WpfApplication("C:\egt\components\keyboard.exe")
'Sets the style path
e_key.SetStylePath("c:\users\joe\apps\me\default.keys.set")
e_key.Refresh()    'Applies the style
e_key.HideMenu()   'Hides the menu
e_key.ShowDeck("PIN") 'Shows the custom "deck" of keyboard keys the developer 
    'Created in the style application.

''work with events and response

'Clear the instance from memory
e_key.close
e_key.dispose
e_key = nothing

This would allow my application to become easily accessible to other Touch Screen Application Developers, allowing them to use my keyboard and keep the functionality they need. It seems like it might be possible because (name of executable).application shows all the exposed functions, properties, and values. I just have never done this before. Any help would be appreciated, thank you in advance.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about vb.net