How to disable resizing the browser in Silverlight application
You can't and nor should you be able to. The browser is an application that belongs to the user, it is not something that your application should allowed to take charge of.
If you want to prevent the resizing of your Silverlight content then specify a fixed width and height for the <object> tag in the html hosting the Silverlight plugin.
Related
I'm creating a desktop Winforms or WPF app, but I'm using HTML/JS/CSS to create UI. So the simpliest solution is using a Web Browser control in a host window.
I want an absolute transparent web browser control now.
For example, I have DIV with 50% transparency, then I should see the Windows desktop icons through the DIV (The host form and web browser control should be transparent).
Is it possible?
Here are several possibilities
If you do not care about the size of browser window, you can set the Width and Height to 0.
If you want to have a specified browser window size, you can set the Left equals -Width and Top equals -Height.
Set the Parent of browser control to Null, so that the browser control will become invisible as well.
I prefer the second solution.
I am trying for showing the content of html in web browser control. My content having encrypted value for img source. I don't what is this. That image not displaying in Webbrowser control. Also in IE browser. Normally Web browser control supports IE browser.
But it displayed for all browsers(Firefox, Chrome)
Is there way to use any(Firefox, Chorme) of the browser in Web Browser control.
Pls Help me.
Thanks
In WP7 you can only access and start standard WP7 applications, not any third party apps. So unless WP7 will be shipped with another browser, you can't do this.
i am adding html to silverlight's web browser control .what i want is ,
web browser control always navigated to the bottom and
web browser control to show horizontal and vertical bar.
thanks
jamal.
Can I embeded IE in my wpf application and interact with it firing events?
e.g. can I fill a form and press submit button programmatically?
Below is the link to the web browser control for WPF, this control was not part of the initial release of WPF, and was added in 3.5 SP1. As long as you are targeting 3.5 SP1 you can use this control and interact with the content in it. I have a WPF application that does use this control and we do a lot of JavaScript interactivity with the content from the browser by drawing on a WPF canvas and sending that information to the content API of the web browser control.
If you need an example I can look up some code samples from the application and send them your way.
I would like place a silverlight contol on an HTML page --- something about the size of a typical calendar control. However when the user selects a day on the control a bigger canvas opens up on top of the containing page --- something like a modal dialog box that you might find with the AJAX.
I'm wondering if this is even possible with Silverlight, or is the silverlight content limited in size to the DIV element on the host page?
UPDATE: after doing some poking around, I think the answer will involve using the ChildWindow control introduced with Silverlight 3. However I'm still at a loss how to have the ChildWindow display ontop of the existing content
I know one way, you will need javascript event on the page itself to expand a silverlight object to fit the whole page then build you silverlight event accordingly.