-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathStandardTabControlWindow.xaml
More file actions
29 lines (29 loc) · 1.29 KB
/
StandardTabControlWindow.xaml
File metadata and controls
29 lines (29 loc) · 1.29 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
28
29
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="CefSharp.Wpf.Example.StandardTabControlWindow"
xmlns:cefSharp="clr-namespace:CefSharp.Wpf.Example.Controls"
Title="TabControl Test Window" Height="594" Width="651">
<Grid>
<TabControl ItemsSource="{Binding Tabs}">
<TabControl.Resources>
<Style TargetType="{x:Type TabItem}">
<Setter Property="HeaderTemplate">
<Setter.Value>
<DataTemplate DataType="{x:Type cefSharp:ChromiumWebBrowser}">
<TextBlock Text="Browser" />
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate DataType="cefSharp:ChromiumWebBrowser">
<ContentPresenter Content="{Binding}" />
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</TabControl.Resources>
</TabControl>
</Grid>
</Window>