How to setup Chromium Embedded for Visual Studio? -
i'm newbie cef , wanting build "cefsimple" example in visual studio can't find .sln file. how setup development environment?
i used nuget packages:
i set control (i'm using wpf):
<usercontrol x:class="webpageviewer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:cefsharp="clr-namespace:cefsharp.wpf;assembly=cefsharp.wpf" mc:ignorable="d" d:designheight="300" d:designwidth="300"> <grid> <cefsharp:chromiumwebbrowser address="www.google.com" /> </grid> </usercontrol>
and made sure call cef.initialize()
before initializecomponent
in constructor control:
cef.initialize(new cefsettings())
Comments
Post a Comment