hi friends I created a WPF/E based application which is executing a function written in javascript but I want to call that function through my wpf application, Can someone guide me how to integrate a wpf and wpf/e based application and implement functionality of wpf/e in wpf.

how to implement a functionality built in WPF/E on the wpf platform
kailuowang
Hi Abhas,
Mr. Rideout is correct (after all he is a PM
). However, there is a way to do it, it is just not a direct implementation. This is an extremely round-about way of addressing your specific problem, however, if you HAVE to call that JavaScript method, you could:
It should be noted that your WPF/E and WPF applications will need some identifier to signal that they are part of the same user experience. As I mentioned, this is an extremely roundabout approach and generally when I run into problems that require something this complicated, it's a sign that I have overlooked something in my architecture.
However, I actually ran into a case where I needed to use this approach.
I hope this helps,
Chad Campbell
Chadrico
No, not from a WPF ("Avalon") application. You might follow up on the WPF/Avalon discussion board: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=119&SiteID=1
-mark
Program Manager
Microsoft
This post is provided "as-is"
Karthick Sukumaran
hi chad, I am writing one function in javascript in the wpf/e based application and I want to call that function from the wpf application, for that I am integrating the wpf and wpf/e based application and for integration I have to add the reference of wpf/e based application in the wpf application, at this step I stop as he reference of wpf/e based application cannot be found . Please can you guide me further as after adding the reference If I am able to create the object of the wpf/e based application then definitely I will be able to call the javascript function from wpf.
Amos Soma
Hi Abhas,
You can use the events for a XAML element and then use the syntax: javascript:[functionName]
If you go to the WPF/E SDK, there is an example in the "Loaded" event.
If this answers your quesiton, please select "Mark as Answer" otherwise, please post a followup question.