I'm creating a WPF browser sample app with the provided CEFGlue WPFCefBrowser wrapper downloaded and used as it is. In which few things are not working as expected. Let say,
1) the dropdowns are not opening at all - http://www.w3schools.com/html/tryit.asp ... ml_select2
2) Textbox not allowing to select the text
Referring CefGlue & CefGlue.WPF downloaded referernces and think I have added all the required references and able to load and see other things working fine.
In Xaml:
<wpf:WpfCefBrowser Margin="30" Grid.Row="1" x:Name="browser" StartUrl="" Width="Auto" Height="400" />
Would like to know what is missing in this sample or need to do some custom coding to fix this issue.
- Code: Select all
namespace Xilium.CefGlue.WPF
{
internal sealed class WpfCefRenderHandler : CefRenderHandler
{
protected override void OnPaint(CefBrowser browser, CefPaintElementType type, CefRectangle[] dirtyRects, IntPtr buffer, int width, int height)
{
_logger.Debug("Type: {0} Buffer: {1:X8} Width: {2} Height: {3}", type, buffer, width, height);
foreach (var rect in dirtyRects)
{
_logger.Debug(" DirtyRect: X={0} Y={1} W={2} H={3}", rect.X, rect.Y, rect.Width, rect.Height);
}
if (type == CefPaintElementType.View)
{
_owner.HandleViewPaint(browser, type, dirtyRects, buffer, width, height);
}
else if (type == CefPaintElementType.Popup)
{
// TODO: todo - not sure what to do here since drop down is of type POPUP when debugging <----------------------------------
}
//this.browser.HandleWidgetPaint(browser, type, dirtyRects, buffer, width, height);
}
Pls provide some pointer to implement dropdown open and close and Text selecting within the text box in WPF.