2014-01-29 18:33:24 +08:00
|
|
|
<Window x:Class="Wox.MainWindow"
|
2013-12-22 19:35:21 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2014-01-29 18:33:24 +08:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:wox="clr-namespace:Wox"
|
2016-02-18 19:30:36 +08:00
|
|
|
xmlns:vm="clr-namespace:Wox.ViewModel" xmlns:converters="clr-namespace:Wox.Converters"
|
2016-02-19 21:25:55 +08:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
|
2014-01-29 18:33:24 +08:00
|
|
|
Title="Wox"
|
2013-12-23 00:10:46 +08:00
|
|
|
Topmost="True"
|
2013-12-22 19:35:21 +08:00
|
|
|
Loaded="MainWindow_OnLoaded"
|
|
|
|
SizeToContent="Height"
|
|
|
|
ResizeMode="NoResize"
|
2014-04-13 10:08:33 +08:00
|
|
|
Deactivated="MainWindow_OnDeactivated"
|
2013-12-22 19:35:21 +08:00
|
|
|
WindowStyle="None"
|
2014-01-26 00:37:15 +08:00
|
|
|
WindowStartupLocation="Manual"
|
2014-06-30 22:50:54 +08:00
|
|
|
Drop="MainWindow_OnDrop"
|
|
|
|
AllowDrop="True"
|
2013-12-22 19:35:21 +08:00
|
|
|
ShowInTaskbar="False"
|
2014-01-25 18:00:13 +08:00
|
|
|
Style="{DynamicResource WindowStyle}"
|
2015-11-10 07:51:22 +08:00
|
|
|
Icon="Images\app.png"
|
|
|
|
AllowsTransparency="True"
|
2016-02-18 19:30:36 +08:00
|
|
|
Visibility="{Binding IsVisible,Converter={converters:VisibilityConverter}}"
|
2016-02-20 01:47:47 +08:00
|
|
|
PreviewKeyDown="Window_PreviewKeyDown" d:DataContext="{d:DesignInstance vm:MainViewModel, IsDesignTimeCreatable=True}">
|
2016-02-18 19:30:36 +08:00
|
|
|
<Window.Resources>
|
2016-02-21 22:33:18 +08:00
|
|
|
<DataTemplate DataType="{x:Type vm:ResultsViewModel}">
|
2016-02-21 22:22:34 +08:00
|
|
|
<wox:ResultListBox></wox:ResultListBox>
|
2016-02-18 19:30:36 +08:00
|
|
|
</DataTemplate>
|
|
|
|
<converters:VisibilityConverter x:Key="VisibilityConverter" />
|
|
|
|
</Window.Resources>
|
2015-01-26 22:50:38 +08:00
|
|
|
<Border Style="{DynamicResource WindowBorderStyle}" MouseDown="Border_OnMouseDown">
|
2014-03-20 21:41:30 +08:00
|
|
|
<StackPanel Orientation="Vertical">
|
2016-02-18 19:30:36 +08:00
|
|
|
<TextBox Style="{DynamicResource QueryBoxStyle}" Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
PreviewDragOver="TbQuery_OnPreviewDragOver" AllowDrop="True"
|
|
|
|
x:Name="tbQuery" />
|
|
|
|
<Line Style="{DynamicResource PendingLineStyle}" x:Name="progressBar" Y1="0" Y2="0" X2="100" Height="2" StrokeThickness="1"
|
|
|
|
Visibility="{Binding IsProgressBarVisible,Converter={StaticResource VisibilityConverter}}">
|
|
|
|
<Line.ToolTip>
|
|
|
|
<ToolTip IsOpen="{Binding IsProgressBarTooltipVisible}"></ToolTip>
|
|
|
|
</Line.ToolTip>
|
|
|
|
</Line>
|
2016-02-21 22:22:34 +08:00
|
|
|
<ContentControl Content="{Binding Results}" Visibility="{Binding IsResultListBoxVisible,Converter={StaticResource VisibilityConverter}}">
|
2016-02-18 19:30:36 +08:00
|
|
|
</ContentControl>
|
2016-02-21 22:40:10 +08:00
|
|
|
<ContentControl Content="{Binding ContextMenu}" Visibility="{Binding IsContextMenuVisible,Converter={StaticResource VisibilityConverter}}">
|
2016-02-18 19:30:36 +08:00
|
|
|
</ContentControl>
|
2014-03-20 21:41:30 +08:00
|
|
|
</StackPanel>
|
2014-03-15 00:17:37 +08:00
|
|
|
</Border>
|
2014-01-25 18:00:13 +08:00
|
|
|
</Window>
|