Calling a WPF Application and modify exposed properties?
- by Justin
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.