66 lines
2.2 KiB
XML
66 lines
2.2 KiB
XML
<Window
|
|
x:Class="mpvnet.CommandPaletteWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d"
|
|
|
|
Title="Command Palette"
|
|
Height="295"
|
|
Width="400"
|
|
FontSize="13"
|
|
ResizeMode="NoResize"
|
|
ShowInTaskbar="False"
|
|
WindowStartupLocation="CenterOwner"
|
|
Loaded="Window_Loaded">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBox
|
|
Name="FilterTextBox"
|
|
Foreground="{Binding Theme.Foreground}"
|
|
Background="{Binding Theme.Background}"
|
|
PreviewKeyDown="FilterTextBox_PreviewKeyDown"
|
|
TextChanged="FilterTextBox_TextChanged"
|
|
/>
|
|
|
|
<ListView
|
|
Name="ListView"
|
|
Grid.Row="1"
|
|
Foreground="{Binding Theme.Foreground}"
|
|
Background="{Binding Theme.Background}"
|
|
MouseUp="ListView_MouseUp"
|
|
>
|
|
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="ListBoxItem">
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="{Binding Display}"></TextBlock>
|
|
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
Text="{Binding Input}"
|
|
HorizontalAlignment="Right"
|
|
/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</Grid>
|
|
</Window> |