NotificationWindow in browser silverlight - silverlight

is there a way to have NotificationWindow in browser?
I need NotificationWindow in browser not in "out of browser".

Like AnthonyWJones said, in Silverlight 4 the NotificationWindow is restricted to Out Of Browser use.
However with Silverlight 5, apps will be able to run in the browser with elevated permission (under certain conditions).
That means that the NotificationWindow will work in the browser.
More info on Silverlight 5 in-browser trusted apps here

Silverlight exclusively limits NotificationWindow to OOB use. You will need to find something else outside of Silverlight to acheive the requirement.

As guys said, there is no NotificationWindow in browser for Silverlight 4. For solving this issue you can choose different ways: first is just to wait for release of SL 5 or on the other hand - implement your own MessageBox with desired functionality. Regarding second one I can help with some code samples.

Related

Silverlight 4: Out of Browser, open new window?

I've googled like crazy but I can't find anything efficient regarding opening a new OOB window from an OOB silverlight 4 application.
I've found ways to manually initiate a web browser window to pop, but not another OOB silverlight child window that's NOT modal.
Apparently this functionality is in Silverlight 5 but as of now, upgrading from 4 to 5 is not a viable option.
Has anyone come up with any work-around or trick to do this?
Thx.
I was able to tweak/modify some of this code to come up with a solution:
http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2010/09/16/silverlight-out-of-browser-and-multiple-windows.aspx

Silverlight OOB Window Extend Aero Glass

I got a short and (I hope) easy Question.
Is it possible to extend the Aero Glass into a out of browser window in a Silverlight application? I guess the question is wether or not it can access DwmApi.dll...
Does anyone have a solution or clue to this?
Thanks in advance.
If the application is trusted, you could create a COM component to perform the behaviors you want. In SL5, trusted applications will be able to directly call Win32 APIs.

WPF WebBrowser Control: What browser does it use?

Does the WPF WebBrowser control always use Internet Explorer or does it use the default web browser on the system ?
Regards,
MadSeb
One issue the Web Browser Control has that it’s perpetually stuck in IE 7
rendering mode by default. Even though IE 8 and now 9 have
significantly upgraded the IE rendering engine to be more CSS and HTML
compliant by default the Web Browser control will have none of it. IE
9 in particular – with its much improved CSS support and basic HTML 5
support is a big improvement and even though the IE control uses some
of IE’s internal rendering technology it’s still stuck in the old IE 7
rendering by default.
This applies whether you’re using the Web Browser control in a WPF
application, a WinForms app, a FoxPro or VB classic application using
the ActiveX control. Behind the scenes all these UI platforms use the
COM interfaces and so you’re stuck by those same rules.
See this:
Web Browser Control – Specifying the IE Version
http://www.west-wind.com/weblog/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version
Internet Explorer, though there are "hacks" posted on the internet which allow you to use a workaround in order to launch any browser you like.
This thread seems to explain one of the possible solutions.

Is there a way to remove the source domain from the window title in an out-of-browser Silverlight 3 app?

We may not have the option to migrate over to Silverlight 4 right away, so I was wondering if anyone found a way to remove the source domain name from the window's title for out-of-browser Silverlight 3 applications. Our window title currently looks like this: "My App - localhost."
Under Mac, I found the Info.plist file in the application bundle and found where you can set the Bundle name property as well as TrimmedSourceDomain. Unfortunately, when I clear the TrimmedSourceDomain property, the title looks like "My App -," and if I delete the property entirely, the application doesn't launch. I assume similar problems would occur under Windows. Have any of you found a workaround?
Sliverlight 4 specifically mentions "chrome" as one of its new features. I've heard recently from an MS Developer Evangelist that the new chrome feature includes not having any at all. My hunch, therefore, is that SL3 OOB applications cannot have their chrome removed.
I think the answer is simply "no." It looks like it still can't be done under Silverlight 4, either. You can, under SL 4 do custom Chrome, but that's the closest thing to do that I can find.

Silverlight 3 - Can I run Out-of-browser inside another application

The new Silverlight 3 beta includes the ability to run Out-of-Browser applications. The demos so far show this only inside a special frame. Does anyone know how I can run Siverlight 3 controls inside a (WPF) application?
No, you can not embed out-of-browser silverlight into WPF. The sllauncher.exe standalone frame has a special handler for the offline://(hostname).(revision)/ url given to it to allow the app to have all the features of out-of-browser mode (like extra keyboard access). Unless you can find a way to embed this app into your app, you won't be able to get out-of-browser; if you know some way to do this the address for this app is:
C:\Program Files\Microsoft Silverlight\3.0.40307.0\sllauncher.exe
As others have said, however, you can embed a silverlight control inside of an html page and that inside a WebBrowser element. Be cautious with this method, however, since there is currently no x64 support for Silverlight and if you absolutely must do this make sure to compile specifically for x86.
I'm guessing (yes, shame on me!) but you can probably put a WPF web browser on your window and navigate to the Silverlight app inside it.
This is a supported scenario; a recent MSDN article stated this scenario was supported, and scenarios like this forced the CLR team to allow multiple CLRs loaded into a single process.
It seems that SLOOB apps run inside a host process (C:\Program Files\Microsoft Silverlight\3.0.40307.0\sllauncher.exe). This hosts and sandboxes the app.
I suspect that it will not be possible to host it yourself - sorry if that's a little close to guessing, but short of running a hosting web browser in your WPF app I can't think of a way around the sandboxing requirement.
HTH
You can host a browser control inside a windows app, and load silverlight inside the browser control. This is how live mesh is going to do it.

Resources