Files
cefsharp/CefSharp.Wpf.Example/MainWindow.xaml
T

24 lines
980 B
XML

<Window x:Class="CefSharp.Wpf.Example.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cefSharp="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
xmlns:example="clr-namespace:CefSharp.Example;assembly=CefSharp.Example"
Title="CefSharp.Wpf.Example"
WindowState="Maximized">
<TabControl Margin="0,5,0,0">
<!-- TODO: Add support for opening/closing tabs freely, as the user wishes -->
<TabItem Header="{Binding Tab1Content.DataContext.Title}"
Width="150"
Height="20">
<ContentControl Content="{Binding Tab1Content}" />
</TabItem>
<TabItem Header="{Binding Tab2Content.DataContext.Title}"
Width="150"
Height="20">
<ContentControl Content="{Binding Tab2Content}" />
</TabItem>
</TabControl>
</Window>