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"
|
2016-02-27 07:43:57 +08:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:wox="clr-namespace:Wox"
|
|
|
|
xmlns:vm="clr-namespace:Wox.ViewModel"
|
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"
|
2016-02-27 07:43:57 +08:00
|
|
|
Loaded="OnLoaded"
|
|
|
|
Closing="OnClosing"
|
|
|
|
PreviewKeyDown="OnPreviewKeyDown"
|
|
|
|
Drop="OnDrop"
|
|
|
|
Deactivated="OnDeactivated"
|
2013-12-22 19:35:21 +08:00
|
|
|
SizeToContent="Height"
|
|
|
|
ResizeMode="NoResize"
|
|
|
|
WindowStyle="None"
|
2014-01-26 00:37:15 +08:00
|
|
|
WindowStartupLocation="Manual"
|
2014-06-30 22:50:54 +08:00
|
|
|
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-27 07:43:57 +08:00
|
|
|
Left="{Binding Left, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
Top="{Binding Top, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
Visibility="{Binding MainWindowVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
2016-05-23 02:14:59 +08:00
|
|
|
d:DataContext="{d:DesignInstance vm:MainViewModel}">
|
2016-02-27 07:43:57 +08:00
|
|
|
<Border Style="{DynamicResource WindowBorderStyle}" MouseDown="OnMouseDown">
|
2014-03-20 21:41:30 +08:00
|
|
|
<StackPanel Orientation="Vertical">
|
2016-02-27 07:43:57 +08:00
|
|
|
<TextBox Style="{DynamicResource QueryBoxStyle}"
|
|
|
|
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
PreviewDragOver="OnPreviewDragOver"
|
|
|
|
AllowDrop="True"
|
2016-03-11 12:23:46 +08:00
|
|
|
x:Name="QueryTextBox">
|
|
|
|
<TextBox.ContextMenu>
|
|
|
|
<ContextMenu>
|
|
|
|
<MenuItem Command="ApplicationCommands.Cut"/>
|
|
|
|
<MenuItem Command="ApplicationCommands.Copy"/>
|
|
|
|
<MenuItem Command="ApplicationCommands.Paste"/>
|
|
|
|
<Separator />
|
|
|
|
<MenuItem Header="Settings" Click="OnContextMenusForSettingsClick" />
|
|
|
|
</ContextMenu>
|
|
|
|
</TextBox.ContextMenu>
|
|
|
|
</TextBox>
|
2016-04-25 10:00:55 +08:00
|
|
|
<Line x:Name="ProgressBar" HorizontalAlignment="Right"
|
|
|
|
Style="{DynamicResource PendingLineStyle}" Visibility="{Binding ProgressBarVisibility, Mode=TwoWay}"
|
|
|
|
Y1="0" Y2="0" X2="100" Height="2" Width="752" StrokeThickness="1">
|
2016-02-18 19:30:36 +08:00
|
|
|
</Line>
|
2016-05-23 02:14:59 +08:00
|
|
|
<ContentControl Visibility="{Binding ResultListBoxVisibility}" >
|
|
|
|
<wox:ResultListBox DataContext="{Binding Results}" PreviewMouseDown="OnPreviewMouseButtonDown" />
|
|
|
|
</ContentControl>
|
|
|
|
<ContentControl Visibility="{Binding ContextMenuVisibility}">
|
|
|
|
<wox:ResultListBox DataContext="{Binding ContextMenu}" PreviewMouseDown="OnPreviewMouseButtonDown" />
|
|
|
|
</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>
|