df26c677ef
* We had to move to the final API: * Items -> TabItems * Items.VectorChanged -> TabItemsChanged * TabClose -> TabCloseRequested * TabViewItem.Icon -> TabViewItem.IconSource * TabRowControl has been converted to a ContentPresenter, which simplifies its logic a little bit. * TerminalPage now differentiates MUX and WUX a little better * Because of the change from Icon to IconSource in TabViewItem, Utils::GetColoredIcon needed to be augmented to support MUX IconSources. It was still necessary to use for WUX, so it's been templatized. * I moved us from WUX SplitButton to MUX SplitButton and brought the style in line with the one typically provided by TabView. * Some of our local controls have had their backgrounds removed so they're more amenable to being placed on other surfaces. * I'm suppressing the TabView's padding. * I removed a number of apparently dead methods from App. * I've simplified the dragbar's sizing logic and eventing. * The winmd harvester needed to be taught to not try to copy winmds for framework packages. * We now only initialize the terminal once we know the size Closes #1896. Closes #444. Closes #857. Closes #771. Closes #760.
46 lines
1.6 KiB
XML
46 lines
1.6 KiB
XML
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
|
the MIT License. See LICENSE in the project root for license information. -->
|
|
<Grid
|
|
x:Class="TerminalApp.TitlebarControl"
|
|
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"
|
|
x:Name="Root"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Top"
|
|
SizeChanged="Root_SizeChanged"
|
|
d:DesignHeight="36"
|
|
Background="{ThemeResource TabViewBackground}"
|
|
d:DesignWidth="400">
|
|
|
|
<!-- TODO:GH#1988
|
|
This xaml should probably be a template thing, where the background is a
|
|
resource that the app hosting this control can override. Then, it App.xaml,
|
|
we'd make sure to set the resource for our background to the appropriate
|
|
color. SystemControlForegroundAccentBrush also works nicely, to use the
|
|
accent color. (which is GH#1963)-->
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ContentPresenter x:Name="ContentRoot" Grid.Column="0" />
|
|
|
|
<Border
|
|
x:Name="DragBar"
|
|
Grid.Column="1"
|
|
MinWidth="45.0"
|
|
DoubleTapped="DragBar_DoubleTapped"/>
|
|
|
|
<local:MinMaxCloseControl
|
|
Grid.Column="2"
|
|
x:Name="MinMaxCloseControl"
|
|
HorizontalAlignment="Right" />
|
|
</Grid>
|
|
|