Why does WPF lack HTML support? I know there is the Frame. But that shouldn't even be considered a WPF control (not, at least, when it is rendering HTML). I know there is a hack with a floating window, but that's crap!
I just want to show a static HTML document in my WPF application, in a window with rounded corners and a drop shadow. I'm hitting a brick wall, and I'm incredibly frustrated!
HELP!
Can you just embed a web browser control in your WPF app? Your WPF app can then have the nice looking drop shadow around the WebBrowser control, and then WebBrowser control can host your static HTML.
http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/web-browser-control-in-wpf/
you're pretty limited with the functionality built in to WPF. WPF doesn't know how to render HTML on its own - it relies on the native Internet Explorer web browser activex control (aka Trident) to do this. activex controls are rendered in "child windows" on top of any other content in your wpf window. nothing you can really do about this.
the best alternative is probably to switch to a Google Chrome-based control which does not have such a limitation: http://wpfchromium4.codeplex.com/
Related
I'm working with a DirectShow application that exports as a Firefox plugin for video streaming.
To the best of my knowledge, it seems as though the plugin is being rendered on a separate window from the web page. I'd like to edit the application to allow html elements over the plugin much like flash allows with wmode='opaque' or 'transparent'. Another option that would work is to pass mouse events through the application (such as mouse move and mouse down).
I've been reading up on put_MessageDrain and put_Owner, but I'm not sure how to apply these to the application or if they will work.
I'm also aware that iframe shimming may work, but since I have access to the source code of the application I'd like to add the functionality directly rather than use a work around. Is iframe shimming my best option? It seems like the easiest option.
The application currently uses Windowless mode and is always on top of everything else on the web page.
The way video is displayed with DirectShow video renderers, you cannot make it transparent without providing your own video renderer filter, or custom allocator/presenter object for one of the standard video renderers. DirectShow renderers display video with DirectDraw or Direct3D surface which stands alone from hosting window and is not interacting with host in a way supposed to get you combined picture with transparent video and something else as well.
I've been reading up on put_MessageDrain and put_Owner
These are for Windowed mode, you seem to use Windowless which assumes that you are providing a hosting window and rectangle to cover opaquely. Renderless, the third mode VMR-7/9 and EVR offer you is the one where you provide allocator/presenter and override the presentation.
Windows SDK (for some you might need to look for an older version, not the latest) provides with samples: Renderless, VMR9Allocator, EVRPresenter which demo the renderless mode.
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.
I need to capture an image from a webcam (tethered camera, etc.) into a form or html5 canvas so that I can save the image to the server. Also, I would like to be able to preview the image live in the page.
For example, I have a browser running at a registration check in station. I would like to take a picture of the attendee currently standing in front of the table, and submit that image into the database. Then I can use that image to print the attendee's badge with their picture on it.
I'm using rails and paperclip, though I doubt that matters.
Anyone done this before, or have some ideas how to do it?
There is a plugin for jQuery entitled 'jQuery Webcam Plugin' that provides a friendly and easy way to interact with a webcam. It actually relies on a small flash component (unfortunately), but it does a great job of making the interaction easy - as well as providing functionality to copy imagery direct into an HTML5 canvas.
Again, it's unfortunate that it relies on Flash, but I think any reliable solution is going to need flash at this point in time.
The plugin is available here: http://www.xarg.org/project/jquery-webcam-plugin/
At present, if you want to interact with a web cam from a web page you need to look at using a plug in. Flash has a mature interface to web cams, so it would be my first choice of tool.
There used to be a spec for native web cam support in HTML 5, but it has been spun out into its own, independent, specification. Currently there is no browser support for it outside of experimental Opera builds.
Android >=3.0 (on plenty of tablets and one phone soon) is supposed to support this. Searching for "html media capture" and "device api" will get you a lot more information.
On the not-even-alpha bleeding edge side, there are things like webrtc and the mozilla rainbow plugin.
I have a MOSS 2007 publishing site which incorporates some Silverlight components on various pages. Beyond a few areas the rest of the site is SharePoint and ASPX (i.e. standard HTML/javascript).
I'm looking at incorporating a dynamic/dropdown menu to the main navigation. Unfortunately on a few of the pages the menu sits close to a Silverlight area and, when a menu is pulled down it falls "behind" the Silverlight block.
Is there something simple I'm not doing or is there a limitation that Silverlight always be on top of dynamic content displayed via the rest of the HTML DOM?
Any ideas?
-Kevin
In order for Silverlight to appear behind other HTML elements the silverlight plugin needs to run in windowless mode. You can configure that using a param on the object tag.
<param name="windowless" value="true" />
Note that is can degrade performance and is not recommended if you are displaying video or making heavy use of complex animations.
have you tried the CSS property: z-index?
Is there a way to create a mini window in flash that contain an HTML web page?
Not open in new window!
Thanks a lot!
No, unfortunately not. It is possible in AIR, but not in the web player.
You can sort of hack it by putting an iframe above or below (provided the flash is transparent) the flash object. This question is similar. But this "solution" is usually not very good.