As regular WinForms or WPF controls, the BrowserView implementations provided in DotNetBrowser are compatible with DevExpress controls. The following sample code demonstrates how to use DotNetBrowser with DevExpress WinForms and DevExpress WPF.


WinForms (DevExpress.XtraBars.TabForm)


C#

using DevExpress.XtraBars;
using DotNetBrowser;
using DotNetBrowser.WinForms;

namespace DXApplication1
{
    public partial class Form1 : DevExpress.XtraBars.TabForm
    {
        public Form1()
        {
            InitializeComponent();
        }
        void OnOuterFormCreating
            (object sender, OuterFormCreatingEventArgs e)
        {
            Form1 form = new Form1();
            form.TabFormControl.Pages.Clear();
            e.Form = form;
            OpenFormCount++;
        }
        static int OpenFormCount = 1;

        private void tabFormControl1_PageCreated
            (object sender, PageCreatedEventArgs e)
        {
            WinFormsBrowserView browserView = 
                new WinFormsBrowserView()
                {
                    BrowserType = BrowserType.HEAVYWEIGHT,
                    URL = "google.com/ncr"
                };
            e.Page.ContentContainer.Controls.Add(browserView);
        }
    }
}

VB.NET

Imports DevExpress.XtraBars
Imports DotNetBrowser
Imports DotNetBrowser.WinForms

Namespace DXApplication1
    Public Partial Class Form1
        Inherits DevExpress.XtraBars.TabForm

        Public Sub New()
            InitializeComponent()
        End Sub

        Private Sub OnOuterFormCreating(ByVal sender As Object, ByVal e As OuterFormCreatingEventArgs)
            Dim form As Form1 = New Form1()
            form.TabFormControl.Pages.Clear()
            e.Form = form
            OpenFormCount += 1
        End Sub

        Shared OpenFormCount As Integer = 1

        Private Sub tabFormControl1_PageCreated(ByVal sender As Object, ByVal e As PageCreatedEventArgs)
            Dim browserView As WinFormsBrowserView = New WinFormsBrowserView() With {
                    .BrowserType = BrowserType.HEAVYWEIGHT,
                    .URL = "google.com/ncr"
                    }
            e.Page.ContentContainer.Controls.Add(browserView)
        End Sub
    End Class
End Namespace


WPF (DevExpress.Xpf.Core.DXWindow)


<dx:DXWindow x:Class="DXApplication2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
        xmlns:wpf="clr-namespace:DotNetBrowser.WPF;assembly=DotNetBrowser"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <wpf:WPFBrowserView 
            Name ="BrowserView" 
            URL="google.com/ncr" 
            BrowserType="HEAVYWEIGHT"/>
    </Grid>
</dx:DXWindow>