我已经遵循了这个link实现 CefSharp 应用程序。
但我在编码时卡住了MainWindow.xaml
.
Blend for VS 2015 说,
命名空间“clr-namespace:CefSharp.Wpf; assembly=CefSharp.Wpf”中不存在名称 ChromiumWebBrowser
但我使用 NuGet 包管理器安装了 CefSharp.Common 和 CefSharp.Wpf v51.0.0、cef.redist.x64 和 cef.redist.x86 v3.2704.1432。
我是 C# 开发新手,所以我不知道如何解决这个问题。请帮我解决这个错误。
这是我的MainWindow.xaml
<Window x:Class="StocktalkBrowser.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:StocktalkBrowser"
xmlns:cefSharp="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<cefSharp:ChromiumWebBrowser Grid.Row="0" Address="https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions" />
</Grid>
</Window>
我刚刚尝试了该链接,正如我在评论中提到的,它编译没有任何问题。
Can be ignored.
And the preview is not available as well, I learned to live with it.
No errors when compiling
And the program starts up. No problem
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)