2016-06-21 07:14:32 +08:00
|
|
|
<Window x:Class="Wox.Plugin.WebSearch.SearchSourceSettingWindow"
|
2014-01-28 11:19:27 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2016-06-21 07:14:32 +08:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:vm="clr-namespace:Wox.Plugin.WebSearch"
|
|
|
|
mc:Ignorable="d"
|
2014-01-28 11:19:27 +08:00
|
|
|
ResizeMode="NoResize"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
2016-06-21 07:14:32 +08:00
|
|
|
Title="Search Source Setting" Height="300" Width="500"
|
|
|
|
d:DataContext="{d:DesignInstance vm:SearchSourceViewModel}">
|
2014-01-28 11:19:27 +08:00
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
2016-06-21 07:14:32 +08:00
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition Height="60" />
|
|
|
|
<RowDefinition />
|
2014-01-28 11:19:27 +08:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
2016-06-21 07:14:32 +08:00
|
|
|
<ColumnDefinition Width="120" />
|
|
|
|
<ColumnDefinition />
|
2014-01-28 11:19:27 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2016-06-21 07:14:32 +08:00
|
|
|
<TextBlock Margin="10" FontSize="14" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Right" Text="{DynamicResource wox_plugin_websearch_title}" />
|
2016-06-21 07:18:35 +08:00
|
|
|
<TextBox Text="{Binding SearchSource.Title}" Margin="10" Grid.Row="0" Width="300" Grid.Column="1"
|
|
|
|
VerticalAlignment="Center"
|
2016-06-21 07:14:32 +08:00
|
|
|
HorizontalAlignment="Left" />
|
2014-01-28 11:19:27 +08:00
|
|
|
|
2016-06-21 07:14:32 +08:00
|
|
|
<TextBlock Margin="10" FontSize="14" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Right" Text="{DynamicResource wox_plugin_websearch_url}" />
|
2016-06-21 07:18:35 +08:00
|
|
|
<TextBox Text="{Binding SearchSource.Url}" Margin="10" Grid.Row="1" Width="300" Grid.Column="1"
|
|
|
|
VerticalAlignment="Center"
|
2016-06-21 07:14:32 +08:00
|
|
|
HorizontalAlignment="Left" />
|
2014-01-28 11:19:27 +08:00
|
|
|
|
2016-06-21 07:14:32 +08:00
|
|
|
<TextBlock Margin="10" FontSize="14" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Right" Text="{DynamicResource wox_plugin_websearch_action_keyword}" />
|
|
|
|
<TextBox Text="{Binding SearchSource.ActionKeyword}" Margin="10" Grid.Row="2" Width="300" Grid.Column="1"
|
|
|
|
VerticalAlignment="Center" HorizontalAlignment="Left" />
|
2014-01-28 11:19:27 +08:00
|
|
|
|
2016-06-21 07:14:32 +08:00
|
|
|
<TextBlock Margin="10" FontSize="14" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Right" Text="{DynamicResource wox_plugin_websearch_enable}" />
|
2016-06-21 07:18:35 +08:00
|
|
|
<CheckBox IsChecked="{Binding SearchSource.Enabled}" Margin="10" Grid.Row="3" Grid.Column="1"
|
|
|
|
VerticalAlignment="Center" />
|
2014-02-02 16:15:34 +08:00
|
|
|
|
2016-06-21 07:14:32 +08:00
|
|
|
<TextBlock Margin="10" FontSize="14" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Right" Text="{DynamicResource wox_plugin_websearch_icon}" />
|
2014-02-06 22:22:02 +08:00
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1" Margin="10">
|
2016-06-21 07:14:32 +08:00
|
|
|
<Image Source="{Binding SearchSource.Image ,IsAsync=True}" Width="24" Height="24" Margin="0 0 10 0" />
|
2016-06-21 07:18:35 +08:00
|
|
|
<Button Click="OnSelectIconClick" Height="24"
|
2016-06-21 07:14:32 +08:00
|
|
|
Content="{DynamicResource wox_plugin_websearch_select_icon}" />
|
2014-02-06 22:22:02 +08:00
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="1">
|
2016-06-21 07:18:35 +08:00
|
|
|
<Button Click="OnCancelButtonClick"
|
2016-06-21 07:14:32 +08:00
|
|
|
Margin="10 0 10 0" Width="80" Height="25"
|
|
|
|
Content="{DynamicResource wox_plugin_websearch_cancel}" />
|
|
|
|
<Button Click="OnConfirmButtonClick"
|
2016-06-21 07:18:35 +08:00
|
|
|
Margin="10 0 10 0" Width="80" Height="25"
|
2016-06-21 07:14:32 +08:00
|
|
|
Content="{DynamicResource wox_plugin_websearch_confirm}" />
|
2014-01-28 11:19:27 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
2016-06-21 07:14:32 +08:00
|
|
|
</Window>
|