mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
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 x:Name="TabControl"
|
|
Margin="0,5,0,0"
|
|
SelectionChanged="OnTabControlSelectionChanged">
|
|
<!-- TODO: Change the TabItems to use a proper ItemsSource-based approach instead. This is just a big hack for now. -->
|
|
<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>
|
|
|
|
<TabItem Header="+"/>
|
|
</TabControl>
|
|
</Window>
|