2020-11-20 18:16:38 +01:00
|
|
|
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
|
|
|
the MIT License. See LICENSE in the project root for license information. -->
|
2020-12-16 03:45:15 +01:00
|
|
|
|
2020-11-20 18:16:38 +01:00
|
|
|
<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"
|
2020-12-16 03:45:15 +01:00
|
|
|
xmlns:mux="using:Microsoft.UI.Xaml.Controls"
|
2020-11-20 18:16:38 +01:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2021-01-08 03:30:05 +01:00
|
|
|
mc:Ignorable="d"
|
|
|
|
MinHeight="16">
|
2020-11-20 18:16:38 +01:00
|
|
|
|
2021-01-08 03:30:05 +01:00
|
|
|
<UserControl.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.ThemeDictionaries>
|
|
|
|
<ResourceDictionary x:Key="Light">
|
|
|
|
<Thickness x:Key="TextControlBorderThemeThicknessFocused">0,0,0,1</Thickness>
|
|
|
|
</ResourceDictionary>
|
|
|
|
<ResourceDictionary x:Key="Dark">
|
|
|
|
<Thickness x:Key="TextControlBorderThemeThicknessFocused">0,0,0,1</Thickness>
|
|
|
|
</ResourceDictionary>
|
|
|
|
<ResourceDictionary x:Key="HighContrast">
|
|
|
|
<Thickness x:Key="TextControlBorderThemeThicknessFocused">0,0,0,1</Thickness>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</ResourceDictionary.ThemeDictionaries>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</UserControl.Resources>
|
2021-02-10 12:27:29 +01:00
|
|
|
|
2020-11-20 18:16:38 +01:00
|
|
|
<StackPanel x:Name="HeaderStackPanel"
|
|
|
|
Orientation="Horizontal">
|
2020-12-16 03:45:15 +01:00
|
|
|
<mux:ProgressRing x:Name="HeaderProgressRing"
|
2021-02-10 12:27:29 +01:00
|
|
|
IsActive="{x:Bind TabStatus.IsProgressRingActive, Mode=OneWay}"
|
|
|
|
Visibility="{x:Bind TabStatus.IsProgressRingActive, Mode=OneWay}"
|
|
|
|
IsIndeterminate="{x:Bind TabStatus.IsProgressRingIndeterminate, Mode=OneWay}"
|
|
|
|
Value="{x:Bind TabStatus.ProgressValue, Mode=OneWay}"
|
2020-12-16 03:45:15 +01:00
|
|
|
MinHeight="0"
|
|
|
|
MinWidth="0"
|
|
|
|
Height="15"
|
|
|
|
Width="15"
|
|
|
|
Margin="-7.5,0,8,0"/>
|
|
|
|
<!--We want the progress ring to 'replace' the tab icon, but we don't have control
|
|
|
|
over the tab icon here (the tab view item does) - so we hide the tab icon there
|
|
|
|
and use a negative margin for the progress ring here to put it where the icon would be-->
|
2021-01-23 00:48:20 +01:00
|
|
|
<FontIcon x:Name="HeaderBellIndicator"
|
|
|
|
FontFamily="Segoe MDL2 Assets"
|
2021-02-10 12:27:29 +01:00
|
|
|
Visibility="{x:Bind TabStatus.BellIndicator, Mode=OneWay}"
|
2021-01-23 00:48:20 +01:00
|
|
|
Glyph=""
|
|
|
|
FontSize="12"
|
|
|
|
Margin="0,0,8,0"/>
|
2020-11-20 18:16:38 +01:00
|
|
|
<FontIcon x:Name="HeaderZoomIcon"
|
|
|
|
FontFamily="Segoe MDL2 Assets"
|
2021-02-10 12:27:29 +01:00
|
|
|
Visibility="{x:Bind TabStatus.IsPaneZoomed, Mode=OneWay}"
|
2020-11-20 18:16:38 +01:00
|
|
|
Glyph=""
|
|
|
|
FontSize="12"
|
|
|
|
Margin="0,0,8,0"/>
|
2021-02-08 19:03:55 +01:00
|
|
|
<FontIcon x:Name="HeaderLockIcon"
|
|
|
|
FontFamily="Segoe MDL2 Assets"
|
2021-02-10 12:27:29 +01:00
|
|
|
Visibility="{x:Bind TabStatus.IsReadOnlyActive, Mode=OneWay}"
|
2021-02-08 19:03:55 +01:00
|
|
|
Glyph=""
|
|
|
|
FontSize="12"
|
|
|
|
Margin="0,0,8,0"/>
|
2020-11-20 18:16:38 +01:00
|
|
|
<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"
|
2020-11-30 20:56:36 +01:00
|
|
|
MaxLength="1024"
|
2021-01-08 03:30:05 +01:00
|
|
|
LostFocus="RenameBoxLostFocusHandler"
|
|
|
|
Height="16"
|
|
|
|
FontSize="12"
|
|
|
|
IsSpellCheckEnabled="False"
|
|
|
|
MaxWidth="{x:Bind RenamerMaxWidth, Mode=OneWay}"/>
|
2020-11-20 18:16:38 +01:00
|
|
|
</StackPanel>
|
|
|
|
</UserControl>
|