본문 바로가기
C#(CSharp)/WPF

using cefSharp in WPF

by swconsulting 2018. 2. 13.

1. nuget


Install-Package CefSharp.Wpf -Version 63.0.0


1.2 Restart Visual Studio.


2. config project




3. bin folder modified







XAML 


<UserControl x:Class="gNcApp.View.webUserControl"

             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:local="clr-namespace:gNcApp.View"

             xmlns:cefSharp="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"

             mc:Ignorable="d" 

             d:DesignHeight="300" d:DesignWidth="300">

    <Grid>

        <cefSharp:ChromiumWebBrowser 

            x:Name="cefSharp" />


    </Grid>

</UserControl>