forked from cefsharp/CefSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
27 lines (24 loc) · 1.13 KB
/
Copy pathMainWindow.xaml
File metadata and controls
27 lines (24 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<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>