CefSharp chromium browser font issue - c#

I am working on a wpf application. I am using Cefsharp chromium browser instead of wpf webview. It support all font but its not clear (give blur screen).

We've noticed this issue as well. We found that it goes away if you use WinForms instead of WPF.
Have you tried CefSharp.Wpf?

Related

Is there any PDF Viewer in .NET MAUI App?

I am using .NET MAUI app for migrating my xamarin.forms into .NET MAUI. I have problem which i have to view pdf file in .NET MAUI app or in .NET MAUI Page as i previously did in Xamarin.Forms. I was using SfPdfViewer in Xamarin.Forms and it was working fine.
Kindly Help or guide please.
I want to View Pdf file in .Net Maui page in mobile app.
No, but hear me out. Search for PDF rendering instead.
Those viewers are doing a lot of useless work. In most cases you will want to simply scroll over the content of your PDF.
The way I achieve this is by rendering the PDF to images. And then using container to display them. You can set the DPI when rendering, so you don't make them too big (if you are using phone for example). You can implement some background loading, etc.
The end result is that you have something running at light speed.
As per their site, it looks like they don't have PDFViewer in MAUI. However, you should be able to integrate Blazor PDF Viewer into the MAUI app. Check out this documentation. I hope this helps.
https://blazor.syncfusion.com/documentation/getting-started/maui-blazor-app
#Muhammed Ali,
Greetings from Syncfusion!!
We have added PDF Viewer control in .NET MAUI to view PDF files in our latest Essential Studio 2022 Volume 4 Main Release V20.4.0.38. In this first release, we have provided support for displaying PDF files with page navigation and magnification functionalities. We will be adding more features to the control in our upcoming releases on a priority basis.
Please check our user guide and try this new PDF Viewer control in your application.
https://help.syncfusion.com/maui/pdf-viewer/overview

Babylon 3d app is not working in WPF web browser control

For last 2 weeks we were developing a 3d application using Babylon js. When we tried to embed this app inside a WPF application using the WebBrowser control, we were not able to move the 3d object. We tried Chromium browser as well and there it was working fine but it was slow. Can anyone help me to get the solution?
This is because WPF uses a IE based WebView which does not support WebGL

VLC.DotNet Control Hosted in WPF

I have hosted the VLC.DotNet windows Control in a WindowsFormsHost element, inside a WPF window. The reason behind doing this, instead of using Vlc.DotNet WPF control is because the performance of the WinForms version is twice better than the WPF version.
Anyway, everything works fine, except for one annoying detail; When using the WinForms version inside a WinForms App, the rendered video will exactly fit the control; However, using the same control inside a WindowsFormsHost element, causes the video to be rendered as it's original size and not fitted to the control.
There are 2 things to notice here :
The WinForms control is exactly the same, so in my opinion, this behavior could not be related to it.
Using Spy++ I've managed to see when the control is used inside a WinForms App, the rectangle of the rendered video is exactly the same size as the rectangle of the Control itself, But when used in WPF App, the recatngle of the video (which is rendered by VLC and I have no control on it) is not the same size as the control. Instead, it has the same size as the video itself.
Anyone has any particular ideas on why WPF is showing this strange behavior?
Any suggestions would be appreciated.
Thanks a lot folks.
Finally, I managed to find out what was causing the problem and resolved it!
I should confess that the problem was not even remotely related to the first 2000 things that comes to mind in these situations! Instead, it was related to the most ridiculous thing that never happened to catch my eye! Well, as they say, it's always in the last place you look!
As weird as it may sound, the problem was related to video scaling! I needed to scale the video and apparently, when you set scaling in vlc, the video wont get fitted to container anymore.
That was it!

Is there a Webbrowser control that supports html5 video (WebRTC) available for .Net?

I was looking for a way to embed a page that hosts WebRTC video such as the demo from http://www.webrtc.org/demo into a WinForms app so the user doesn't need to install nor launch any external browsers that may contain toolbars, etc, I looked into a few components such as GeckoFX and WebKit.Net but they fail to load the webcam video.
Do you know of any hack or other project that may support WebRTC inside .Net?
Thanks a lot
Chromium Embedded Framework claims to support WebRTC (I haven't confirmed it myself).
https://code.google.com/p/chromiumembedded/
http://en.wikipedia.org/wiki/Chromium_Embedded_Framework
WebRTC is supported by Mozilla Firefox:
http://www.webrtc.org/
If you want to embed Firefox in you project you can easily embed GeckoFX web browser control in your Windows Forms application.
The GeckoFX engine (Mozilla Firefox) says it can use WebRTC. This seem to be right (as far as I have seen yet) but there seem to be a problem with some parts of it. I'm using it actual for WebRTC and have a problem with the video part - see here: Embedded GeckoFx in C#.NET - WebRTC Video not working

Web fonts and HTML5 Application cache feature in WPF WebView control (Metro)

I'm creating a metro application using C# and WPF.
I want to include a WebView for showing some web content. But the problem is, Some HTML5/CSS3 Features are not available in WebView, while they are available in IE10.
For example, WebView is not showing Web fonts, but IE10 does.
Also, html5test says that WebView does not support application cache (and some other features), while IE10 also supports application cache.
How to implement Web fonts and HTML5 Application cache in WPF WebView Control?
Think in WebView as a simple way to view web content. Sadly the WebView control is not a full featured IE10 and hence, it lacks of some functionality. I suggest you to simplify the input if you control webpage, or rethink the application features :(

Categories