a77b49406c
This PR makes the Header of TabViewItem a custom user control. ## Validation Steps Performed Manual testing Closes #8201
31 lines
1.3 KiB
XML
31 lines
1.3 KiB
XML
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
|
the MIT License. See LICENSE in the project root for license information. -->
|
|
<UserControl
|
|
x:Class="TerminalApp.TabHeaderControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:TerminalApp"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<StackPanel x:Name="HeaderStackPanel"
|
|
Orientation="Horizontal">
|
|
<FontIcon x:Name="HeaderZoomIcon"
|
|
FontFamily="Segoe MDL2 Assets"
|
|
Visibility="{x:Bind IsPaneZoomed, Mode=OneWay}"
|
|
Glyph=""
|
|
FontSize="12"
|
|
Margin="0,0,8,0"/>
|
|
<TextBlock x:Name="HeaderTextBlock"
|
|
Visibility="Visible"
|
|
Text="{x:Bind Title, Mode=OneWay}"/>
|
|
<TextBox x:Name="HeaderRenamerTextBox"
|
|
Visibility="Collapsed"
|
|
MinHeight="0"
|
|
Padding="4,0,4,0"
|
|
Margin="0,-8,0,-8"
|
|
LostFocus="RenameBoxLostFocusHandler"/>
|
|
</StackPanel>
|
|
</UserControl>
|