2016-05-22 12:47:10 +08:00
|
|
|
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:wox="clr-namespace:Wox"
|
|
|
|
xmlns:vm="clr-namespace:Wox.ViewModel"
|
|
|
|
x:Class="Wox.SettingWindow"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
Icon="Images\app.png"
|
|
|
|
Title="{DynamicResource wox_settings}"
|
|
|
|
ResizeMode="NoResize"
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
Height="600" Width="800" PreviewKeyDown="Window_PreviewKeyDown"
|
|
|
|
d:DataContext="{d:DesignInstance vm:SettingWindowViewModel}">
|
2016-05-22 06:42:23 +08:00
|
|
|
<TabControl Height="auto" SelectedIndex="{Binding SelectedTab}">
|
2016-05-22 12:30:38 +08:00
|
|
|
<TabItem Header="{DynamicResource general}" Height="24" VerticalAlignment="Top">
|
2016-03-11 09:13:47 +08:00
|
|
|
<StackPanel Orientation="Vertical">
|
2016-05-22 06:16:32 +08:00
|
|
|
<CheckBox IsChecked="{Binding Settings.StartWoxOnSystemStartup}" Margin="10">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource startWoxOnSystemStartup}" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</CheckBox>
|
2016-05-22 06:16:32 +08:00
|
|
|
<CheckBox Margin="10" IsChecked="{Binding Settings.HideOnStartup}">
|
2016-05-14 21:48:58 +08:00
|
|
|
<TextBlock Text="{DynamicResource hideOnStartup}" />
|
|
|
|
</CheckBox>
|
2016-05-22 06:16:32 +08:00
|
|
|
<CheckBox Margin="10" IsChecked="{Binding Settings.HideWhenDeactive}">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource hideWoxWhenLoseFocus}" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</CheckBox>
|
2016-05-22 06:16:32 +08:00
|
|
|
<CheckBox Margin="10" IsChecked="{Binding Settings.RememberLastLaunchLocation}">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource rememberLastLocation}" />
|
2015-02-20 21:45:42 +08:00
|
|
|
</CheckBox>
|
2016-05-22 06:16:32 +08:00
|
|
|
<CheckBox Margin="10" IsChecked="{Binding Settings.IgnoreHotkeysOnFullscreen}">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource ignoreHotkeysOnFullscreen}" />
|
2015-10-08 06:17:37 +08:00
|
|
|
</CheckBox>
|
2016-05-22 12:30:38 +08:00
|
|
|
<CheckBox Margin="10" IsChecked="{Binding Settings.AutoUpdates}"
|
2016-05-22 06:16:32 +08:00
|
|
|
Checked="OnAutoStartupChecked" Unchecked="OnAutoStartupUncheck">
|
2016-05-14 06:54:37 +08:00
|
|
|
<TextBlock Text="{DynamicResource autoUpdates}" />
|
|
|
|
</CheckBox>
|
2015-01-02 16:16:09 +08:00
|
|
|
<StackPanel Margin="10" Orientation="Horizontal">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource language}" />
|
2016-05-22 06:16:32 +08:00
|
|
|
<ComboBox Margin="10 0 0 0" Width="120" SelectionChanged="OnLanguageChanged"
|
|
|
|
ItemsSource="{Binding Languages}" SelectedValue="{Binding Settings.Language}"
|
2016-05-22 12:30:38 +08:00
|
|
|
DisplayMemberPath="Display" SelectedValuePath="LanguageCode" />
|
2015-01-02 16:16:09 +08:00
|
|
|
</StackPanel>
|
2015-07-13 03:13:30 +08:00
|
|
|
<StackPanel Orientation="Horizontal" Margin="10">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource maxShowResults}" />
|
2016-05-22 12:30:38 +08:00
|
|
|
<ComboBox Margin="10 0 0 0" Width="45" ItemsSource="{Binding MaxResultsRange}"
|
|
|
|
SelectedItem="{Binding Settings.MaxResultsToShow}" />
|
2015-07-13 03:13:30 +08:00
|
|
|
</StackPanel>
|
2016-05-05 08:57:03 +08:00
|
|
|
<StackPanel Orientation="Horizontal">
|
2016-05-22 06:16:32 +08:00
|
|
|
<TextBlock Margin="10" Text="{DynamicResource pythonDirectory}" />
|
2016-05-22 12:30:38 +08:00
|
|
|
<TextBox Width="300" Margin="10" Text="{Binding Settings.PluginSettings.PythonDirectory}" />
|
|
|
|
<Button Margin="10" Click="OnSelectPythonDirectoryClick"
|
|
|
|
Content="{DynamicResource selectPythonDirectory}" />
|
2016-05-05 08:57:03 +08:00
|
|
|
</StackPanel>
|
2014-07-04 15:12:22 +08:00
|
|
|
</StackPanel>
|
|
|
|
</TabItem>
|
2016-05-22 12:30:38 +08:00
|
|
|
<TabItem Header="{DynamicResource plugin}">
|
2014-07-04 15:12:22 +08:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2016-05-22 12:30:38 +08:00
|
|
|
<ColumnDefinition Width="200" />
|
2016-03-26 12:46:39 +08:00
|
|
|
<ColumnDefinition />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2016-05-22 12:30:38 +08:00
|
|
|
<DockPanel Grid.Column="0">
|
|
|
|
<TextBlock DockPanel.Dock="Top" Margin="10" Cursor="Hand"
|
|
|
|
MouseUp="OnMorePluginsClicked" Foreground="Blue"
|
2016-03-26 12:46:39 +08:00
|
|
|
Text="{DynamicResource browserMorePlugins}" />
|
2016-05-22 12:30:38 +08:00
|
|
|
<ListBox SelectedIndex="0" SelectedItem="{Binding SelectedPlugin}"
|
|
|
|
ItemsSource="{Binding MetadataViewModels}"
|
|
|
|
Margin="10, 0, 10, 10" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="3">
|
|
|
|
<Image Source="{Binding Image, IsAsync=True}"
|
2016-05-22 12:47:10 +08:00
|
|
|
Width="32" Height="32" />
|
2016-05-22 12:30:38 +08:00
|
|
|
<StackPanel Margin="3 0 3 0">
|
2016-05-22 12:47:10 +08:00
|
|
|
<TextBlock Text="{Binding Metadata.Name}"
|
2016-05-22 12:30:38 +08:00
|
|
|
ToolTip="{Binding Metadata.Name}" />
|
|
|
|
<TextBlock Text="{Binding Metadata.Description}"
|
|
|
|
ToolTip="{Binding Metadata.Description}"
|
|
|
|
Opacity="0.5" />
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
2014-07-16 20:17:51 +08:00
|
|
|
</DataTemplate>
|
2016-05-22 12:30:38 +08:00
|
|
|
</ListBox.ItemTemplate>
|
2014-07-16 20:17:51 +08:00
|
|
|
</ListBox>
|
|
|
|
</DockPanel>
|
2016-05-22 12:30:38 +08:00
|
|
|
<Grid Grid.Column="1">
|
2014-07-04 15:12:22 +08:00
|
|
|
<Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.RowDefinitions>
|
2016-05-22 12:30:38 +08:00
|
|
|
<ContentControl DataContext="{Binding Path=SelectedPlugin}"
|
|
|
|
Grid.ColumnSpan="1" Grid.Row="0" Margin="10 10 10 0">
|
2014-07-04 15:12:22 +08:00
|
|
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
<Grid.ColumnDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<ColumnDefinition Width="48" />
|
|
|
|
<ColumnDefinition />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2016-05-22 12:30:38 +08:00
|
|
|
<Image Source="{Binding Image, IsAsync=True}"
|
|
|
|
Width="48" Height="48" HorizontalAlignment="Left" VerticalAlignment="Top" />
|
2014-07-04 15:12:22 +08:00
|
|
|
<Grid Margin="10,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch">
|
|
|
|
<Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.RowDefinitions>
|
2016-05-22 12:30:38 +08:00
|
|
|
<Grid Grid.Row="0">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition />
|
|
|
|
<ColumnDefinition />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Text="{Binding Metadata.Name}"
|
|
|
|
ToolTip="{Binding Metadata.Name}"
|
|
|
|
Grid.Column="0"
|
|
|
|
Cursor="Hand" MouseUp="OnPluginNameClick" FontSize="24"
|
|
|
|
HorizontalAlignment="Left" />
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Bottom" Opacity="0.5">
|
|
|
|
<TextBlock Text="{DynamicResource author}" />
|
|
|
|
<TextBlock Text=": " />
|
|
|
|
<TextBlock Text="{Binding Metadata.Author}" ToolTip="{Binding Metadata.Author}" />
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<TextBlock Text="{Binding Metadata.Description}"
|
|
|
|
ToolTip="{Binding Metadata.Description}"
|
|
|
|
Grid.Row="1" Opacity="0.5" />
|
2015-08-27 19:51:31 +08:00
|
|
|
<DockPanel Grid.Row="2" Margin="0 10 0 8">
|
2016-05-22 12:30:38 +08:00
|
|
|
<CheckBox IsChecked="{Binding Metadata.Disabled}" Checked="OnPluginToggled"
|
|
|
|
Unchecked="OnPluginToggled">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource disable}" />
|
2015-01-02 16:16:09 +08:00
|
|
|
</CheckBox>
|
2016-05-22 12:30:38 +08:00
|
|
|
<TextBlock Text="{DynamicResource actionKeywords}"
|
|
|
|
Visibility="{Binding ActionKeywordsVisibility}"
|
|
|
|
Margin="20 0 0 0" />
|
|
|
|
<TextBlock Text="{Binding ActionKeywordsText}"
|
|
|
|
Visibility="{Binding ActionKeywordsVisibility}"
|
|
|
|
ToolTip="Change Action Keywords"
|
|
|
|
Margin="5 0 0 0" Cursor="Hand" Foreground="Blue"
|
|
|
|
MouseUp="OnPluginActionKeywordsClick" />
|
|
|
|
<TextBlock Text="{Binding InitilizaTime}" Margin="10 0 0 0" />
|
|
|
|
<TextBlock Text="{Binding QueryTime}" Margin="10 0 0 0" />
|
|
|
|
<TextBlock Text="{DynamicResource pluginDirectory}"
|
|
|
|
HorizontalAlignment="Right" Cursor="Hand"
|
|
|
|
MouseUp="OnPluginDirecotyClick" Foreground="Blue" />
|
2014-07-14 23:18:57 +08:00
|
|
|
</DockPanel>
|
2014-06-01 23:23:48 +08:00
|
|
|
</Grid>
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid>
|
|
|
|
</ContentControl>
|
2014-03-29 16:17:01 +08:00
|
|
|
|
2016-05-22 12:30:38 +08:00
|
|
|
<ContentControl Content="{Binding SettingProvider}"
|
|
|
|
Grid.ColumnSpan="1" Grid.Row="1"
|
2016-03-26 12:46:39 +08:00
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
2016-05-22 06:42:23 +08:00
|
|
|
<TabItem Header="{DynamicResource theme}" Selector.Selected="OnThemeTabSelected">
|
2014-07-04 15:12:22 +08:00
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<ColumnDefinition Width="200" />
|
|
|
|
<ColumnDefinition />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<DockPanel Grid.Column="0">
|
|
|
|
<TextBlock DockPanel.Dock="Top" Margin="10" HorizontalAlignment="Left" Cursor="Hand"
|
2016-05-22 02:04:52 +08:00
|
|
|
MouseUp="tbMoreThemes_MouseUp" Foreground="Blue"
|
2016-03-26 12:46:39 +08:00
|
|
|
Text="{DynamicResource browserMoreThemes}" />
|
2016-05-22 02:04:52 +08:00
|
|
|
<ListBox x:Name="Theme" Margin="10, 0, 10, 10"
|
2016-03-26 12:46:39 +08:00
|
|
|
SelectionChanged="ThemeComboBox_OnSelectionChanged" HorizontalAlignment="Stretch"
|
|
|
|
VerticalAlignment="Stretch" Width="180" />
|
2014-07-16 20:17:51 +08:00
|
|
|
</DockPanel>
|
2014-07-04 15:12:22 +08:00
|
|
|
<Grid Margin="0" Grid.Column="1">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition />
|
2016-03-26 12:46:39 +08:00
|
|
|
<RowDefinition Height="100" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.RowDefinitions>
|
2014-07-17 18:42:11 +08:00
|
|
|
<StackPanel x:Name="PreviewPanel" Grid.Row="0" Margin="0">
|
2016-05-22 02:04:52 +08:00
|
|
|
<StackPanel Orientation="Horizontal" Margin="10"
|
2016-03-26 12:46:39 +08:00
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center">
|
2014-07-04 15:12:22 +08:00
|
|
|
<Border Width="500" Style="{DynamicResource WindowBorderStyle}">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="50" />
|
2016-03-26 12:46:39 +08:00
|
|
|
<RowDefinition />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBox Text="{DynamicResource helloWox}" IsReadOnly="True"
|
|
|
|
Style="{DynamicResource QueryBoxStyle}" Grid.Row="0" />
|
|
|
|
<wox:ResultListBox Grid.Row="1" x:Name="ResultListBoxPreview" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
2014-03-26 17:34:19 +08:00
|
|
|
|
2014-07-17 18:42:11 +08:00
|
|
|
<StackPanel Grid.Row="1" Margin="0 10 0 10" Orientation="Vertical">
|
2014-07-04 15:12:22 +08:00
|
|
|
<StackPanel Orientation="Horizontal" Margin="2">
|
2015-01-02 16:16:09 +08:00
|
|
|
<TextBlock Text="{DynamicResource queryBoxFont}" />
|
2016-05-22 02:04:52 +08:00
|
|
|
<ComboBox Margin="10 -2 5 0" x:Name="QueryBoxFont"
|
2016-03-26 12:46:39 +08:00
|
|
|
ItemsSource="{x:Static Fonts.SystemFontFamilies}"
|
|
|
|
SelectionChanged="CbQueryBoxFont_OnSelectionChanged" HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top" Width="160" />
|
2014-07-11 03:07:44 +08:00
|
|
|
<ComboBox Margin="0 -2 0 0"
|
2016-05-22 02:04:52 +08:00
|
|
|
x:Name="QueryBoxFontFaces"
|
|
|
|
ItemsSource="{Binding SelectedValue.FamilyTypefaces, ElementName=QueryBoxFont}"
|
2016-03-26 12:46:39 +08:00
|
|
|
SelectionChanged="CbQueryBoxFontFaces_OnSelectionChanged"
|
|
|
|
HorizontalAlignment="Left" VerticalAlignment="Top" Width="120">
|
2014-07-04 15:12:22 +08:00
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<ItemsControl ItemsSource="{Binding AdjustedFaceNames}">
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Value}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="2">
|
2015-01-02 16:16:09 +08:00
|
|
|
<TextBlock Text="{DynamicResource resultItemFont}" />
|
2016-03-26 12:46:39 +08:00
|
|
|
<ComboBox Margin="5 -2 5 0" x:Name="ResultFontComboBox"
|
|
|
|
ItemsSource="{x:Static Fonts.SystemFontFamilies}"
|
|
|
|
SelectionChanged="OnResultFontSelectionChanged" HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top" Width="160" />
|
2014-07-11 03:07:44 +08:00
|
|
|
<ComboBox Margin="0 -2 0 0"
|
2016-03-26 12:46:39 +08:00
|
|
|
x:Name="ResultFontFacesComboBox"
|
|
|
|
ItemsSource="{Binding SelectedValue.FamilyTypefaces, ElementName=ResultFontComboBox}"
|
|
|
|
SelectionChanged="OnResultFontFacesSelectionChanged" HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Top" Width="120">
|
2014-07-04 15:12:22 +08:00
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<ItemsControl ItemsSource="{Binding AdjustedFaceNames}">
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Value}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
2014-07-17 19:20:00 +08:00
|
|
|
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
2016-05-22 06:42:23 +08:00
|
|
|
<TabItem Header="{DynamicResource hotkey}" Selector.Selected="OnThemeTabSelected">
|
2014-07-04 15:12:22 +08:00
|
|
|
<Grid Margin="10">
|
|
|
|
<Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<RowDefinition Height="30" />
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition Height="50" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="0 0 10 0" Text="{DynamicResource woxHotkey}" />
|
2016-05-22 02:04:52 +08:00
|
|
|
<wox:HotkeyControl x:Name="HotkeyControl" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</StackPanel>
|
2016-03-26 12:46:39 +08:00
|
|
|
<Grid Grid.Row="1">
|
2014-07-04 15:12:22 +08:00
|
|
|
<Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<RowDefinition Height="20" />
|
|
|
|
<RowDefinition />
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock VerticalAlignment="Center" Grid.Row="0" Margin="0 0 10 0"
|
|
|
|
Text="{DynamicResource customQueryHotkey}" />
|
2016-05-22 02:04:52 +08:00
|
|
|
<ListView x:Name="CustomHotkies" Margin="0 5 0 0" Grid.Row="1">
|
2014-07-04 15:12:22 +08:00
|
|
|
<ListView.View>
|
|
|
|
<GridView>
|
2016-03-26 12:46:39 +08:00
|
|
|
<GridViewColumn Header="{DynamicResource hotkey}" Width="180">
|
2014-07-04 15:12:22 +08:00
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{Binding Hotkey}" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
2015-11-13 04:36:32 +08:00
|
|
|
<GridViewColumn Header="{DynamicResource actionKeywords}" Width="500">
|
2014-07-04 15:12:22 +08:00
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{Binding ActionKeywords}" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
</GridView>
|
|
|
|
</ListView.View>
|
|
|
|
</ListView>
|
2014-03-28 22:42:28 +08:00
|
|
|
|
2014-07-04 15:12:22 +08:00
|
|
|
</Grid>
|
|
|
|
<StackPanel Grid.Row="2" HorizontalAlignment="Right" Orientation="Horizontal">
|
2016-05-22 02:04:52 +08:00
|
|
|
<Button Click="BtnDeleteCustomHotkey_OnClick" Width="100"
|
2016-03-26 12:46:39 +08:00
|
|
|
Margin="10" Content="{DynamicResource delete}" />
|
2016-05-22 02:04:52 +08:00
|
|
|
<Button Click="BtnEditCustomHotkey_OnClick" Width="100" Margin="10"
|
2016-03-26 12:46:39 +08:00
|
|
|
Content="{DynamicResource edit}" />
|
2016-05-22 02:04:52 +08:00
|
|
|
<Button Click="BtnAddCustomeHotkey_OnClick" Width="100" Margin="10"
|
2016-03-26 12:46:39 +08:00
|
|
|
Content="{DynamicResource add}" />
|
2014-07-04 15:12:22 +08:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
2016-05-05 08:57:03 +08:00
|
|
|
<TabItem Header="{DynamicResource proxy}" Height="22" VerticalAlignment="Top">
|
2014-07-17 19:20:00 +08:00
|
|
|
<StackPanel>
|
2016-03-11 09:31:21 +08:00
|
|
|
<CheckBox x:Name="ToggleProxy" Margin="10" Checked="ProxyToggled" Unchecked="ProxyToggled">
|
2016-05-22 02:25:51 +08:00
|
|
|
<TextBlock Text="{DynamicResource enableProxy}" />
|
2015-01-02 16:16:09 +08:00
|
|
|
</CheckBox>
|
2016-03-11 09:31:21 +08:00
|
|
|
<Grid Margin="10" IsEnabled="{Binding IsChecked, ElementName=ToggleProxy}">
|
2014-07-17 19:20:00 +08:00
|
|
|
<Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<ColumnDefinition Width="80" />
|
|
|
|
<ColumnDefinition Width="220" />
|
|
|
|
<ColumnDefinition Width="80" />
|
|
|
|
<ColumnDefinition />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Grid.Row="0" Grid.Column="0" Padding="5">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource server}" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="0" Grid.Column="1" Padding="5">
|
2016-05-22 02:04:52 +08:00
|
|
|
<TextBox Width="200" HorizontalAlignment="Left" x:Name="ProxyServer" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="0" Grid.Column="2" Padding="5">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource port}" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="0" Grid.Column="3" Padding="5">
|
2016-05-22 02:04:52 +08:00
|
|
|
<TextBox Width="50" HorizontalAlignment="Left" x:Name="ProxyPort" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" Grid.Column="0" Padding="5">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource userName}" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" Grid.Column="1" Padding="5">
|
2016-05-22 02:04:52 +08:00
|
|
|
<TextBox Width="200" HorizontalAlignment="Left" x:Name="ProxyUserName" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" Grid.Column="2" Padding="5">
|
2016-03-26 12:46:39 +08:00
|
|
|
<TextBlock Text="{DynamicResource password}" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" Grid.Column="3" Padding="5">
|
2016-05-22 02:04:52 +08:00
|
|
|
<PasswordBox Width="200" HorizontalAlignment="Left" x:Name="ProxyPassword" />
|
2014-07-17 19:20:00 +08:00
|
|
|
</Border>
|
|
|
|
</Grid>
|
2016-03-11 09:31:21 +08:00
|
|
|
<StackPanel Orientation="Horizontal" IsEnabled="{Binding IsChecked, ElementName=ToggleProxy}">
|
2016-05-22 02:25:51 +08:00
|
|
|
<Button Width="80" HorizontalAlignment="Left" Margin="10" Click="btnTestProxy_Click"
|
|
|
|
Content="{DynamicResource testProxy}" />
|
|
|
|
<Button Width="80" HorizontalAlignment="Left" Margin="10" Click="btnSaveProxy_Click"
|
|
|
|
Content="{DynamicResource save}" />
|
2014-07-18 20:00:55 +08:00
|
|
|
</StackPanel>
|
2014-07-17 19:20:00 +08:00
|
|
|
</StackPanel>
|
|
|
|
</TabItem>
|
2015-01-02 16:16:09 +08:00
|
|
|
<TabItem Header="{DynamicResource about}">
|
2014-12-16 22:25:22 +08:00
|
|
|
<Grid>
|
2016-03-11 09:13:47 +08:00
|
|
|
<Grid.Resources>
|
|
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
|
|
<Setter Property="Margin" Value="10, 10, 0, 0" />
|
|
|
|
</Style>
|
|
|
|
</Grid.Resources>
|
2014-12-16 22:25:22 +08:00
|
|
|
<Grid.ColumnDefinitions>
|
2016-05-09 09:32:47 +08:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2014-12-16 22:25:22 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
2016-03-26 12:46:39 +08:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2016-05-09 09:32:47 +08:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2014-12-16 22:25:22 +08:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2016-05-09 09:32:47 +08:00
|
|
|
<TextBlock x:Name="ActivatedTimes" Grid.Row="0" Grid.ColumnSpan="3"
|
|
|
|
Text="{DynamicResource about_activate_times}" />
|
2014-12-16 22:25:22 +08:00
|
|
|
|
2016-05-09 09:32:47 +08:00
|
|
|
<TextBlock Grid.Column="0" Grid.Row="1" Text="{DynamicResource website}" />
|
2016-05-22 02:25:51 +08:00
|
|
|
<TextBlock Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left">
|
2016-05-09 09:32:47 +08:00
|
|
|
<Hyperlink NavigateUri="https://github.com/Wox-launcher/Wox" RequestNavigate="OnRequestNavigate">
|
|
|
|
https://github.com/Wox-launcher/Wox
|
|
|
|
</Hyperlink>
|
|
|
|
</TextBlock>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="2" Text="{DynamicResource version}" />
|
2016-05-22 02:25:51 +08:00
|
|
|
<TextBlock Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" x:Name="Version" Text="1.0.0" />
|
2016-05-09 09:32:47 +08:00
|
|
|
|
2016-05-22 02:25:51 +08:00
|
|
|
<TextBlock Grid.Column="0" Grid.Row="3" Text="{DynamicResource releaseNotes}" />
|
|
|
|
<TextBlock Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left">
|
|
|
|
<Hyperlink NavigateUri="https://github.com/Wox-launcher/Wox/releases/latest"
|
|
|
|
RequestNavigate="OnRequestNavigate">
|
2016-05-09 09:32:47 +08:00
|
|
|
https://github.com/Wox-launcher/Wox/releases/latest
|
|
|
|
</Hyperlink>
|
|
|
|
</TextBlock>
|
|
|
|
|
2016-05-22 02:25:51 +08:00
|
|
|
<Button Grid.Column="0" Grid.Row="4" Content="{DynamicResource checkUpdates}"
|
|
|
|
HorizontalAlignment="Left" Margin="10 10 10 10" Click="OnCheckUpdates" />
|
|
|
|
<TextBlock Grid.Column="1" Grid.Row="4" Name="NewVersionTips" HorizontalAlignment="Left"
|
|
|
|
Text="{DynamicResource newVersionTips}" Visibility="Hidden" />
|
2015-07-17 15:08:39 +08:00
|
|
|
|
2014-12-16 22:25:22 +08:00
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
2014-07-04 15:12:22 +08:00
|
|
|
</TabControl>
|
2016-03-26 12:46:39 +08:00
|
|
|
</Window>
|