Skip to main content

Microsoft Silverlight

Advanced Forum Search Results

  • Re: Update

    Damn, found a solution: //javasript: var DLL = new ActiveXObject("abc.xyz"); DLL.myFunction(this); function raisedfunction() { alert("here I am"); } //.Net class library Public Sub myFunction(o As Object) o.raisedfunction(); End Sub  I think it's not such comfortable as using event, but ...
  • Re: Update

    No, I don't think so ... can you give me some more information about it or a little example?
  • Re: Update

    Well, I can't find any way to get .net events working. Javascript attachEvent and AddEventHandler won't work, cause nameofmyevent is not supported by the object. Then my new idea to "import" the object in silverlight .net code and try to handle the events in silverlight directly doesn't work too. Silverlight ...
  • Update

    well, unfortuneatly avascript doen't support such events. Is there a way to get an activeX object an silverlight? When I try Dim o As Object = HtmlPage.Window.Eval("new ActiveXObject('xyz.abc');") o is of type ScriptObject and I can't call any function of xyz.abc. It's also not possible to add an event handler ...
  • Re: Re: JavaScript-Thread

    Hi, I already tried setTimeout, yes it will return to Silverlight immediately, but after the timeout is over, when the other function is called, Silverlight hangs too. In javascript I want to create a new ActiveXObject from a .Net assambly. It's working fine, but the .Net assembly sometimes has to do very complex code and that will need ...
  • Re: JavaScript-Thread

    Now I tried everything, Invoke, Eval, SetTimeout,... but everything blocks my Silverlight UI. I would need something like a second javascript thread, but can't find a way...
  • Re: JavaScript-Thread

    Hi, yes, I need the javasript result, mystring = Htmlpage.window.eval("xyz") works too, but same problem, now I'm going to try, how HtmlPage.Window.Eval("result = myfunction(); SilverlightPlugin.Content.doSomething(result);") reacts, when the UI thread doesn't have to wait for the result data.
  • JavaScript-Thread

    Hi, I have to call some very slow javascript functions, using "HtmlPage.Window.Invoke("myfunction")" blocks my Silverlight UI the whole time. Now I created a thread for the slow javascript interop, but accessing javascript is only allowed for the UI thread. Is there any possibility to execute the slow javascript code ...
  • Boolean Globalization

    Hi, I use a WMI query and receive a boolean value, but this string is localized (e.g. on a german system, I'll get "Wahr" instead of "True"). The german .Net Framework will Parse "Wahr" as "True", but unfortunately it seems like Silverlight doen't support localized boolean ...
  • get local file in gadget

    Hi,  is there any possibility to get a file (txt or xml) from gadget directory? At first I tried to use a WebClient, this is running fine in IE, but won't work in Sidebar. I tried different url formats, I think "x-gadget://mypath_in_gadget_folder/my_file.xml" will be the best one, but isn't working too. Unfortuneatly ...
1 2 3 Next >
Microsoft Communities