Make image from Silverlight control with embedded html - html

How to make image from Silverlight control with embedded html. Html was embedded with HtmlPage help. Currently in image i see empty space, where have to be html content. I know that html is rendered in absolute positioned div over silverlight plugin.
Image proxyImage = new Image();
proxyImage.Source = new
WriteableBitmap(Application.Current.RootVisual,
Application.Current.RootVisual.RenderTransform);

The clue is in your answer "over silverlight plugin". Silverlight does not have access to the image that the browser renders over the image. It can only see the surface that it is rendering.

Related

How to save image from Canvas control in WinRT 8.1?

I want to make an image editing application on WinRT.
For that I created some xaml page for image ediitng.
I placed one Canvas control in Grid of xaml page and performed drawing on it using all Pointer events of WinRT.
But I am not able to save this Canvas into image.
I tried RenderTargetBitmap to render the Canvas but not worked.
please help me with some sample code for How to save image from Canvas control in WinRT 8.1?

display and navigate a web page from a flex tab

i have a flex project that runs in using flash player 11. What i am trying to achive is to have a tab of my project which, when loaded displays a web page within the tab. I do not want to naviagate away from my project but display it within my tab layout. Is this possible? i have found plenty of info on how to do this using air but nothing with regards to my flex project not using air.
thanks
No, this isn't directly possible. The HTML and StageWebView components would do the trick, but they're AIR-only.
What you can do is call a javascript function using ExternalInterface to load your desired web page in an iframe positioned above your Flex area.
See Div above iframe with flash content for more info on putting an iframe above your flash content area.
if you have to do, try to use flex-iframe, but is not a good way to use iframe in flex, it will have many mask problems.

HTML5 embedded in Silverlight Application

I am quite new to silverlight and I am seeking advise on embedding external html pages inside silverlight applications.
Can the contents of an external html page be integrated inside a silverlight application ?
How about features like SVG support or Socket.IO which exist in modern browsers ? If the external page is using HTML5 features, can silverlight render/process it correctly ?
Thanks,
There is no native support for rendering HTML pages in Silverlight. You can however access and manipulate DOM elements from within Silverlight. This allows you to place HTML elemnts on top of a silverlight application and by appropriately adjusting the size and position of these elements you can create the illusion of embedded HTML in simple applications.

how to hide text behind embedded Flash SWF object in HTML

I am trying display customized text behind my embedded Flash swf file on HTML. I embed using SWFObject.
The purpose is to show the custom text whenever Flash player is not installed.
This might also help with the flash illiterate web-crawlers.
thanks!
SWFObject already gives you the option to show alternative content when Flash is not installed.
http://code.google.com/p/swfobject/wiki/documentation
Look for the section "STEP 1: Embed both Flash content and alternative content using standards compliant markup"

CSS content behind Adobe Acrobat Reader

Is there a way to put CSS-div content over a embeded Adobe Acrobat Reader session?
I've tried with CSS z-index: -1; on the iframe Acrobat Reader launches in but no luck.
Any suggestions?
You should be able to do it by overlaying the reader with an <iframe>, just as the approach with other plug-ins and <select> boxes. Also, setting the wmode parameter of the embed tag (if you are using one) to transparent. Not sure about the last one, but it works for Flash and Silverlight.
You can check a demo of the IFRAME approach (only under IE) at this demo page. (Sorry for the shameless plug, it's the first example that I think of)