2020-04-09 02:32:59 +08:00
|
|
|
<Window x:Class="PowerLauncher.MainWindow"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:vm="clr-namespace:Wox.ViewModel;assembly=Wox"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2020-04-21 10:53:20 +08:00
|
|
|
mc:Ignorable="d"
|
2020-04-09 02:32:59 +08:00
|
|
|
xmlns:xaml="clr-namespace:Microsoft.Toolkit.Wpf.UI.XamlHost;assembly=Microsoft.Toolkit.Wpf.UI.XamlHost"
|
2020-05-13 06:42:21 +08:00
|
|
|
xmlns:local="clr-namespace:PowerLauncher"
|
2020-04-16 06:10:27 +08:00
|
|
|
Title="PowerLaunch"
|
2020-04-09 02:32:59 +08:00
|
|
|
Topmost="True"
|
|
|
|
SizeToContent="Height"
|
|
|
|
ResizeMode="NoResize"
|
|
|
|
WindowStyle="None"
|
|
|
|
WindowStartupLocation="Manual"
|
|
|
|
AllowDrop="True"
|
|
|
|
ShowInTaskbar="False"
|
|
|
|
Icon="Images/app.png"
|
|
|
|
AllowsTransparency="True"
|
|
|
|
Loaded="OnLoaded"
|
|
|
|
Initialized="OnInitialized"
|
|
|
|
Closing="OnClosing"
|
|
|
|
Drop="OnDrop"
|
|
|
|
LocationChanged="OnLocationChanged"
|
|
|
|
Deactivated="OnDeactivated"
|
2020-04-21 10:53:20 +08:00
|
|
|
Background="Transparent"
|
2020-05-02 05:25:06 +08:00
|
|
|
Width="720"
|
2020-04-09 02:32:59 +08:00
|
|
|
Visibility="{Binding MainWindowVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
d:DataContext="{d:DesignInstance vm:MainViewModel}">
|
2020-05-02 05:25:06 +08:00
|
|
|
<Grid Width="720"
|
|
|
|
MouseDown="OnMouseDown">
|
2020-04-21 10:53:20 +08:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
2020-05-13 06:42:21 +08:00
|
|
|
<RowDefinition Height="*"/>
|
2020-04-21 10:53:20 +08:00
|
|
|
</Grid.RowDefinitions>
|
2020-04-23 06:59:32 +08:00
|
|
|
<Border
|
|
|
|
x:Name="SearchBoxBorder"
|
|
|
|
Grid.Row="0"
|
2020-04-28 08:35:33 +08:00
|
|
|
Margin="24,24,24,8"
|
2020-04-23 06:59:32 +08:00
|
|
|
BorderThickness="4"
|
|
|
|
CornerRadius="4">
|
2020-04-21 10:53:20 +08:00
|
|
|
<Border.Effect>
|
2020-04-30 01:33:58 +08:00
|
|
|
<DropShadowEffect BlurRadius="16" Opacity="0.8" ShadowDepth="0" />
|
2020-04-21 10:53:20 +08:00
|
|
|
</Border.Effect>
|
2020-05-15 04:52:48 +08:00
|
|
|
<local:LauncherControl
|
|
|
|
x:Name="SearchBox"
|
|
|
|
Height="60"/>
|
2020-04-21 10:53:20 +08:00
|
|
|
</Border>
|
2020-04-23 06:59:32 +08:00
|
|
|
<Border
|
|
|
|
x:Name="ListBoxBorder"
|
|
|
|
Grid.Row="1"
|
2020-04-28 08:35:33 +08:00
|
|
|
Margin="24,8,24,24"
|
2020-04-23 06:59:32 +08:00
|
|
|
BorderThickness="4"
|
|
|
|
CornerRadius="4"
|
|
|
|
Visibility="{Binding Results.Visbility}">
|
2020-04-21 10:53:20 +08:00
|
|
|
<Border.Effect>
|
2020-04-30 01:33:58 +08:00
|
|
|
<DropShadowEffect BlurRadius="16" Opacity="0.8" ShadowDepth="0" />
|
2020-04-21 10:53:20 +08:00
|
|
|
</Border.Effect>
|
2020-05-02 05:25:06 +08:00
|
|
|
<xaml:WindowsXamlHost
|
|
|
|
x:Name="ListBox"
|
2020-04-23 06:59:32 +08:00
|
|
|
InitialTypeName="PowerLauncher.UI.ResultList"
|
|
|
|
ChildChanged="WindowsXamlHostListView_ChildChanged"
|
|
|
|
PreviewMouseDown="WindowsXamlHost_PreviewMouseDown" />
|
2020-04-21 10:53:20 +08:00
|
|
|
</Border>
|
|
|
|
</Grid>
|
2020-04-09 02:32:59 +08:00
|
|
|
<Window.InputBindings>
|
2020-04-09 07:53:16 +08:00
|
|
|
<KeyBinding Key="Escape" Command="{Binding EscCommand}" />
|
2020-04-23 06:59:32 +08:00
|
|
|
<KeyBinding Key="Enter" Command="{Binding OpenResultCommand}" />
|
2020-04-09 02:32:59 +08:00
|
|
|
</Window.InputBindings>
|
|
|
|
</Window>
|