mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
28 lines
650 B
C#
28 lines
650 B
C#
using CefSharp.Wpf.Example.Views.Main;
|
|
using System.Windows;
|
|
|
|
namespace CefSharp.Wpf.Example
|
|
{
|
|
public partial class MainWindow : Window
|
|
{
|
|
public FrameworkElement Tab1Content { get; set; }
|
|
public FrameworkElement Tab2Content { get; set; }
|
|
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
DataContext = this;
|
|
|
|
Tab1Content = new MainView
|
|
{
|
|
DataContext = new MainViewModel()
|
|
};
|
|
|
|
Tab2Content = new MainView
|
|
{
|
|
DataContext = new MainViewModel("http://www.google.com")
|
|
};
|
|
}
|
|
}
|
|
}
|