Calling a WPF Appliaction 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 16:31 UTC
Read the original article Hit count: 183

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 appliaction (on open) to style itself according to that new style. I know this file could be passed as a command line argument into the appliaction.

That would not be a problem. My concern is, is thier 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 Appliaction
Dim e_key as new WpfAppliaction("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 appliaction.

''work with events and resposne

'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 key_board 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