aa1ed0a19c
## Summary of the Pull Request ![command-palette-001](https://user-images.githubusercontent.com/18356694/85313480-b6dbef00-b47d-11ea-8a8f-a802d26c2f9b.gif) This adds a first iteration on the command palette. Notable missing features are: * Commandline mode: This will be a follow-up PR, following the merge of #6537 * nested and iterable commands: These will additionally be a follow-up PR. This is also additionally based off the addenda in #6532. This does not bind a key for the palette by default. That will be done when the above follow-ups are completed. ## References * #2046 - The original command palette thread * #5400 - This is the megathread for all command palette issues, which is tracking a bunch of additional follow up work * #5674 and #6532 - specs * #6537 - related ## PR Checklist * [x] Closes #2046 - incidentally also closes #6645 * [x] I work here * [x] Tests added/passed * [ ] Requires documentation to be updated - delaying this until it's more polished. ## Detailed Description of the Pull Request / Additional comments * There's a lot of code for autogenerating command names. That's all in `ActionArgs.cpp`, because each case is so _not_ boilerplate, unlike the rest of the code in `ActionArgs.h`. ## Validation Steps Performed * I've been playing with this for months. * Tests * Selfhost with the team
64 lines
2.6 KiB
XML
64 lines
2.6 KiB
XML
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
|
the MIT License. See LICENSE in the project root for license information. -->
|
|
<Page
|
|
x:Class="TerminalApp.TerminalPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:TerminalApp"
|
|
xmlns:mux="using:Microsoft.UI.Xaml.Controls"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid x:Name="Root" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<local:TabRowControl x:Name="TabRow" Grid.Row="0" />
|
|
|
|
<Grid x:Name="TabContent" Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
|
|
|
|
<ContentDialog
|
|
x:Load="False"
|
|
x:Name="AboutDialog"
|
|
x:Uid="AboutDialog"
|
|
DefaultButton="Close">
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock IsTextSelectionEnabled="True">
|
|
<Run Text="{x:Bind ApplicationDisplayName}" /> <LineBreak />
|
|
<Run x:Uid="AboutDialog_VersionLabel" />
|
|
<Run Text="{x:Bind ApplicationVersion}" />
|
|
</TextBlock>
|
|
<HyperlinkButton
|
|
x:Uid="AboutDialog_DocumentationLink"
|
|
NavigateUri="https://go.microsoft.com/fwlink/?linkid=2125416" />
|
|
<HyperlinkButton
|
|
x:Uid="AboutDialog_ReleaseNotesLink"
|
|
NavigateUri="https://go.microsoft.com/fwlink/?linkid=2125417" />
|
|
<HyperlinkButton
|
|
x:Uid="AboutDialog_PrivacyPolicyLink"
|
|
NavigateUri="https://go.microsoft.com/fwlink/?linkid=2125418" />
|
|
<HyperlinkButton
|
|
x:Uid="AboutDialog_ThirdPartyNoticesLink"
|
|
Click="_ThirdPartyNoticesOnClick" />
|
|
</StackPanel>
|
|
</ContentDialog>
|
|
|
|
<ContentDialog
|
|
x:Load="False"
|
|
x:Name="CloseAllDialog"
|
|
x:Uid="CloseAllDialog"
|
|
DefaultButton="Primary"
|
|
PrimaryButtonClick="_CloseWarningPrimaryButtonOnClick">
|
|
</ContentDialog>
|
|
|
|
<local:CommandPalette
|
|
x:Name="CommandPalette"
|
|
Grid.Row="1"
|
|
Visibility="Collapsed"
|
|
VerticalAlignment="Stretch" />
|
|
</Grid>
|
|
</Page>
|