-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPageHeader.xaml
24 lines (22 loc) · 1.4 KB
/
PageHeader.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<UserControl x:Class="boss.client.win.PageHeader"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" Foreground="{StaticResource DefaultForground}"
d:DesignHeight="300" d:DesignWidth="300">
<Border Background="{StaticResource PageHeaderBackground}" Height="38">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Icon}" Style="{StaticResource FontAwesome}" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" FontSize="22" Margin="8,0" Grid.Column="0"/>
<TextBlock Text="{Binding Title}" Foreground="{StaticResource DefaultForground}" VerticalAlignment="Center" FontSize="16" Margin="0,0,8,0" Grid.Column="1"/>
<ContentControl Content="{Binding ToolBar}" Focusable="False" Grid.Column="2"/>
<Button Style="{StaticResource ApplicationTabItemCloseButtonStyle}" Click="Close_OnClick" Grid.Column="3"/>
</Grid>
</Border>
</UserControl>