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)


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);
        }
    }
}



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>