This package automatically provides access to the appropriate CefSharp
version that has already been loaded and initialized by Revit, cf. the explanation
on encountering an error while using CefSharp.
<PackageReference Include="ricaun.Revit.CefSharp" Version="$(RevitVersion).*" IncludeAssets="build; compile" PrivateAssets="All" />
- Revit 2025 - 119.4.30
- Revit 2024 - 105.3.390
- Revit 2023 - 92.0.260
- Revit 2022 - 65.0.1
- Revit 2021 - 65.0.1
- Revit 2020 - 65.0.1
- Revit 2019 - 57.0.0
The CefSharp
is already initialized inside Revit before any plugin, just use the CefSharp.Wpf
reference inside your wpf works without any initialization requirement.
xmlns:cef="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
Use the cef:ChromiumWebBrowser
with an Address
to create a web browser in your wpf.
<cef:ChromiumWebBrowser Address="https://github.com/ricaun-io/ricaun.Revit.CefSharp" />
<Window x:Class="RevitAddin.WebView"
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:cef="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
mc:Ignorable="d">
<Grid>
<cef:ChromiumWebBrowser Address="https://github.com/ricaun-io/ricaun.Revit.CefSharp" />
</Grid>
</Window>
This project is licensed under the MIT License.
Do you like this project? Please star this project on GitHub!