I'm working with WPF and c# (using Visual Studio 2013) and I want to develop an application with a transparent background and a webbrowser. I understand that this is an issue of the default webbrowser... but I want to find another solution. I found other webbrowser components like CefSharp that is based on chromium. I'd like to know if is possible using a transparent background using the CefSharp browser and I'd like that someone explain me step by step how to implement a very simple webbrowser (I found some article but I was not able to implement a working application). If you think that there are other better components please suggest me and explain me how to make them working. Thank you for your attention and for the replies.
CefSharp WebBrowser Example in WPF (transparency)
3.7k Views Asked by userSimo At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in WPF
- WPF MessageBox Cancel checkbox check
- WPF multiple control property simultaneous changes
- ObservableCollection.CollectionChanged does not select the correct DataTemplate on ToolBar
- Telerik's WPF RadColorPicker NoColorText property not working
- How to automate UI interaction during acceptance test run
- Binding to "this.property" object in VisualStateMenager
- ContextMenu Closes Immediately
- Update ObservableCollection where the items are received from another List
- change content button with trigger
- WPF - How to highlight a combobox border when focused
- Wpf No Highlight on ListBoxItem for Touch Devices
- WPF WebBrowser how best to get Tag trees
- Make a class suitable for Property Change Notification
- WPF Comparing two datatables to find matching values
- how to create folder and file with datetime in wpf application
Related Questions in VISUAL-STUDIO
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- Exception thrown at 0x0131EB06 Visual Studio
- Visual Studio 2015 Cordova Plugin Add Fail
- Cannot find InvalidCastException in C# Application
- generating C# code file during Visual Studio build
- Can I deploy multiple instances of my application on the same windows phone?
- Close the Solution Explorer window
- How to generate entity framework code-first migrations without using the package manager console?
- Implementing callback function for dialog-based application
- VB.net: How to make original variable value fulfill 2 statements?
- DLL being marked as DELETEPENDING
- String tokenizing in Visual Studio C++
- How to use "Multicharts Studies" in Visual Studio 2013?
- Programs Will Not Run In Visual Studio
- VB.Net: Display total when check boxes are checked
Related Questions in BROWSER
- Why does Angular send Http Request Method: Options before POST?
- Trick browser into resizing the viewport dimensions by 1px
- Why is it so hard to style <select> and <option> elements?
- Change writing language at browser
- Selenium stops running after click() function runs
- Are there any debugging tools for the Opera Mini mobile browser?
- place 1 label top, 1 input bottom and 2 buttons left
- Why clear cache does not work with all browsers?
- Opening Browser Instances from different Vendors
- Browser's not displaying images correctly
- Open a html document with php
- How to run a .jar inside browser?
- Why/how does the browser decide ☃.net goes to xn--n3h.net
- How do you invoke another app from a child browser
- Firefox and SSL pages - takes very long on certain sites
Related Questions in CEFSHARP
- Blank window opening in CEF browser
- CefSharp BrowserControl - Image Hyperlinks open in new Form
- Fetching images with JavascriptResponse in CefBrowser (Without downloading twice)
- WinForms CefSharp Browser LocalStorage not working
- CEFSharp Winforms display a loadin message while the website loads?
- Calling sub in different class not working right
- CefSharp in TabControl not Showing Anything
- Disable Chrome paste menu on text inputs while on a touch screen
- How to get value from GetElementById?
- Outlook Cannot load file or assembly CefSharp.Core.dll
- CefSharp Browser Refresh Loop
- Close the already opened Custom menu handler when click on Cefsharp webbrowser container
- Unable to locate required Cef/CefSharp dependencies
- CefSharp.WinForms won't load pages?
- c# CefSharp browser cant most sites
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is just a quick proof of concept hack based on
CefSharp.Wpf.Exampleto see if it was doable. Depending on what you want I think it is possible to make (some) web pages transparent.On the picture below you see
CefSharp.Wpf.Exampleon top of Visual Studio. There's also a partial DevTools window from CefSharp in front in the lower left corner.Here is what I did (refer to the picture below):
WindowState="Normal" Opacity=".75" AllowsTransparency="True" WindowStyle="None" MinHeight="400" MinWidth="600"to the<Window>element ofMainWindow.XamlShowDevTools()method.<body>s background alpha to zero on the page loaded.Depending on what you need you will have to experiment with WPF Opacity values yourself. Also depending on the web page you need to display removing the actual background color on different elements may need some tweaking. As you can see from the example above it just needed setting one value to remove the white background on the Google search page. You can use the
ExecuteJavascriptAsync()method mentioned in the CefSharp FAQ wiki page to inject JavaScript in pages you navigate to.