Advanced Forum Search Results
-
Well, turns out there is an easier way, simply call a Javascript function from the VB silverlight OnClick (or whatever) code using HtmlPage.Window.Invoke("myJSMethod")
Very easy, and can pass params too. ...
-
No, this isn't a master page, but a Silverlight control in a web page. Content.Page is how you access methods and properties inside a Silverlight control from Javascript. I'm able to do methods and properties, just cannot figure out how to handle an event that occurs in the Silverlight app in the web page's Javascript. ...
-
What I really need is someone to extend Alex's blog to VB.NET. I'm sure I'm doing something stupid, but I just can't see it.
Thanks Grassblade, but I've verified this is ok because I've got a number of methods working fine that I can call in my Silverlight object using the same syntax for example: sc = ...
-
[quote user="ken tucker"]
Events are suspose to have 2 arguments sender as object and e as eventargs. I think you are getting the errors because it is not finding the 2 arguments
[/quote]
Well, the javascript already has two args, so I tried every VB combination I could think of, and nothing works. For ...
-
This blog covers it pretty well in C#, but I can't get it to work in VB:
http://blogs.microsoft.co.il/blogs/alex_golesh/archive/2008/07/28/quick-silverlight-tip-silverlight-events-in-javascript-and-javascript-events-in-silverlight.aspx
This is what I have in my Page.xaml.vb:
<ScriptableMember()> Public Event
ClickEvent()
Private ...