In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to solve the problem that CefSharp WPF controls can not use the input method to input Chinese, the content of the article is of high quality, so the editor shares it for you to do a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Introduction to CEF
CEF is a BSD-licensed open source project founded by Marshall Greenblatt in 2008 and based on the Google Chromium project. Unlike the Chromium project itself, which focuses mainly on Google Chrome application development, CEF focuses on facilitating embedded browser use cases in third-party applications. CEF insulates the user from the underlying Chromium and Blink code complexity by offering production-quality stable APIs, release branches tracking specific Chromium releases, and binary distributions. Most features in CEF have default implementations that provide rich functionality while requiring little or no integration work from the user. There are currently over 100 million installed instances of CEF around the world embedded in products from a wide range of companies and industries. A partial list of companies and products using CEF is available on the CEF Wikipedia page. Some use cases for CEF include:
Embedding an HTML5-compliant Web browser control in an existing native application.
Creating a light-weight native "shell" application that hosts a user interface developed primarily using Web technologies.
Rendering Web content "off-screen" in applications that have their own custom drawing frameworks.
Acting as a host for automated testing of existing Web properties and applications.
CEF supports a wide range of programming languages and operating systems and can be easily integrated into both new and existing applications. It was designed from the ground up with both performance and ease of use in mind. The base framework includes C and C++ programming interfaces exposed via native libraries that insulate the host application from Chromium and Blink implementation details. It provides close integration between the browser and the host application including support for custom plugins, protocols, JavaScript objects and JavaScript extensions. The host application can optionally control resource loading, navigation, context menus, printing and more, while taking advantage of the same performance and HTML5 technologies available in the Google Chrome Web browser.
Numerous individuals and organizations contribute time and resources to support CEF development, but more involvement from the community is always welcome. This includes support for both the core CEF project and external projects that integrate CEF with additional programming languages and frameworks (see the "External Projects" section below) If you are interested in donating time to help with CEF development please see the "Helping Out" section below. If you are interested in donating money to support general CEF development and infrastructure efforts please visit the CEF Donations page.
CEF's .NET open source projects mainly include the following three:
CefSharp: https://github.com/chillitom/CefSharp
Cefglue: https://bitbucket.org/xilium/xilium.cefglue
Chromiumfx: https://bitbucket.org/chromiumfx/chromiumfx
History of CEF osr IME BUG
Both CefSharp and cefglue use C++/CLI to encapsulate cef API, and both provide cef's Winform and WPF controls, while chromiumfx uses P/Invoke to encapsulate cef API, providing only cef Winform controls. Both CefSharp and cefglue's cef WPF controls use cef's osr (off screen render) method for rendering, and because IME BUG has always existed in osr mode, the WPF controls for CefSharp and cefglue also exist.
CEF osr IME bug in 2012-11-22 someone put forward: https://bitbucket.org/chromiumembedded/cef/issues/798/out-of-focus-while-entering-ime, but did not solve the https://bitbucket.org/chromiumembedded/cef/issues/1675/inline-ime-support-nstextinput-protocol-in until the end of 2016, the cauliflower is really cold. However, CefSharp and cefglue have not been able to keep up with the pace of CEF, and this BUG has not been resolved until now. All related issue are advised to use CEF in the way that Host WinForm controls are used in WPF.
CEF osr IME bug:
Recently, by referring to the source code of cef's osr example, through porting and modifying, I finally realized the IME input of the CefSharp WPF control, which is shared here.
Mainly in the CefSharp.Core project to add IME messages and CEF IME-related processing, as well as WPF's ChromiumWebBrowser control related code modifications.
On how to solve the CefSharp WPF control can not use the input method to enter Chinese to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.