2014-03-30 11:16:44 +08:00
|
|
|
<UserControl x:Class="Wox.Plugin.SystemPlugins.Program.ProgramSetting"
|
2014-03-29 14:42:43 +08:00
|
|
|
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:infrastructure="clr-namespace:Wox.Infrastructure;assembly=Wox.Infrastructure"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="300" d:DesignWidth="300">
|
|
|
|
|
|
|
|
<Grid Margin="10">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="50"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<ListView x:Name="programSourceView" Grid.Row="0">
|
|
|
|
<ListView.View>
|
|
|
|
<GridView>
|
|
|
|
<GridViewColumn Header="Location" Width="400">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Location, ConverterParameter=(null), Converter={infrastructure:StringEmptyConverter}}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="Type" Width="150">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Type}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="Bonus Points" Width="100">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding BonusPoints}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
<GridViewColumn Header="Enabled" Width="100">
|
|
|
|
<GridViewColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Enabled}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</GridViewColumn.CellTemplate>
|
|
|
|
</GridViewColumn>
|
|
|
|
</GridView>
|
|
|
|
</ListView.View>
|
|
|
|
</ListView>
|
|
|
|
<StackPanel Grid.Row="1" HorizontalAlignment="Right" Orientation="Horizontal">
|
|
|
|
<Button x:Name="btnDeleteProgramSource" Click="btnDeleteProgramSource_OnClick" Width="100" Margin="10" Content="Delete"/>
|
|
|
|
<Button x:Name="btnEditProgramSource" Click="btnEditProgramSource_OnClick" Width="100" Margin="10" Content="Edit"/>
|
|
|
|
<Button x:Name="btnAddProgramSource" Click="btnAddProgramSource_OnClick" Width="100" Margin="10" Content="Add"/>
|
|
|
|
</StackPanel>
|
|
|
|
<TextBlock Grid.Row="1" Margin="10" HorizontalAlignment="Left" Text="* Restarting required" VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|