Silverlight OOB Window Extend Aero Glass - wpf

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.

Related

Showing a Windows form in wpf

I'm working on some multi-touch Surface computers for my workplace (mainly for meetings and presentation), and not being wholly familiar with WPF, I was wondering if I might be able to put some Windows Forms in a Surface project so that several users could ostensibly use programs at the same time.
Is this possible?
I don't understand the reason why you want to include windows forms into a WPF project, but if that's all you want to do, check out this. WindowsFormsHost Class is used to manage WinForms things in WPF.
Please mark my reply as answer if it solves your problem.
Thanks,

Either Free or Paid alternative to Silverlight Web Browser Control to target visibility(z-index) problems?

I am using Silverlight WebBrowser Control in one of my application, and all the Silverlight Content hides behind the WebBrowser Control.
I know, we can't do anything about it and have read about the Air Space Issue also. I have also gone through the following links:-
How to place a WebBrowser control below other controls?
But its really required to solve it for my application, so I am looking for some alternatives, either FREE or can be PAID too.
I have read about the FireFox Gecko browser, but it seems it is a pure Windows Forms Control and I wonder whether I can use it in Silverlight or not, and also whether it will solve the z-index issues if we can at all use it in silverlight.
Does any body has any solution for this ? Either Free or Paid.
Thanks
Awesomium is a fairly decent browser since it uses chrome as it's base and it's a native control for WPF so it'll respect your z-index. However, it's a wpf control right now and it's not clear if SL is easily supported or not, but this may help.
Awesomium website: http://awesomium.com/
some mention on how to get a silverlight dll to use:
http://support.awesomium.com/discussions/questions/119-using-awesomium-with-silverlight-40

NotificationWindow in browser 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.

Alternatives to WebBrowser control in WPF?

We are working on a WPF app with the web browser control. When the user drags the window, the web browser lags behind the window as it drags.
Does anyone know how to solve this issue? Failing that, does anyone know an alternative to the web browser control itself?
Thanks!
Yes, as long as you don't require IE specific features you can use Awesomium which basically gives the same browser engine used by Google Chrome except for everything is rendered in pure WPF. For a while it was open source but I believe it is becoming a commercial product.
I haven't heard about any Native WPF WebBrowser Control. The only options I know are based on Win32 controls which are wrapped into WPF controls in order to displayed. (See more details at http://msdn.microsoft.com/en-us/library/ms752055.aspx )
Recently I have to use the WPF wrapper for the WebBrowser control, and it's very limited regarding the options available for the developer. During my research I found that you are able to inject scripts or html content in order to modify the page behavior. Also, you can call .NET code (e.g. CSharp function from Javascript).
However tasks such as accessing the cache, modifying cookies are difficult task or changing the web browser behavior are very difficult. Here is when you will have to use DLL Imports in order to invoke unmanaged routines (see http://msdn.microsoft.com/en-us/library/aa984739(v=vs.71).aspx )
It's possible to look for an alternative WebBrowser control such as:
http://code.google.com/p/csexwb2/
http://wpfchromium.codeplex.com/
I hope this helps
You can try CefSharp.Wpf which uses Chromium as a base browser. You can find it on NuGet

block script debugging for wpf browser control

I have used browser control for my WPF browser application.I want to disable the script error message.Please let me know exactly as I am very new to this application.
Thanks in advance.
Answer other than disabling script message on advance tab of internet option.
The problem here is that the WPF WebBrowser did not implement this property as in the 2.0 control.
Your best bet is to use a WindowsFormsHost in your WPF application and use the 2.0's WebBrowser property: SuppressScriptErrors. Even then, you will need the application to be full trust in order to do this.
Not what one would call ideal, but it's pretty much the only option currently.

Resources