You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
3.4 KiB
67 lines
3.4 KiB
<UserControl x:Class="ICSharpCode.ILSpy.SearchPane" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:ICSharpCode.ILSpy.Controls"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Name="self" mc:Ignorable="d"
|
|
d:DesignHeight="300" d:DesignWidth="300">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
|
|
<Grid Height="23">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<controls:SearchBox x:Name="searchBox" DockPanel.Dock="Top" Grid.Column="0" Grid.Row="0" Margin="1"
|
|
PreviewKeyDown="SearchBox_PreviewKeyDown"
|
|
Text="{Binding SearchTerm, ElementName=self}" ToolTip="Search" UpdateDelay="0:0:0.1"
|
|
WatermarkColor="Gray" WatermarkText="Search for t:TypeName, m:Member or c:Constant; use exact match (=term), 'should not contain' (-term) or 'must contain' (+term); use /reg(ular)?Ex(pressions)?/ or both - t:/Type(Name)?/..." />
|
|
<StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal">
|
|
<Label Margin="0,-1" Target="searchModeComboBox">_Search for:</Label>
|
|
<ComboBox Width="100" Name="searchModeComboBox" Margin="1"
|
|
TextSearch.TextPath="Name"
|
|
SelectionChanged="SearchModeComboBox_SelectionChanged">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Height="16" Margin="0,0,4,0" Width="16" Source="{Binding Image}" />
|
|
<TextBlock Text="{Binding Name}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
<ListView Grid.Row="1" BorderThickness="0,0,0,0" HorizontalContentAlignment="Stretch" KeyDown="ListBox_KeyDown"
|
|
MouseDoubleClick="ListBox_MouseDoubleClick" Name="listBox" SelectionMode="Single" controls:SortableGridViewColumn.SortMode="Automatic" controls:GridViewColumnAutoSize.AutoWidth="50%;50%">
|
|
<ListView.View>
|
|
<GridView AllowsColumnReorder="False">
|
|
<controls:SortableGridViewColumn Header="Name" SortBy="Name">
|
|
<controls:SortableGridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Height="16" Margin="0,0,4,0" Width="16" Source="{Binding Image}" />
|
|
<TextBlock Text="{Binding Name}" TextTrimming="CharacterEllipsis" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</controls:SortableGridViewColumn.CellTemplate>
|
|
</controls:SortableGridViewColumn>
|
|
<controls:SortableGridViewColumn Header="Location" SortBy="Location">
|
|
<controls:SortableGridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Image Height="16" Margin="4,0,4,0" Width="16" Source="{Binding LocationImage}" />
|
|
<TextBlock Text="{Binding Location}" TextTrimming="CharacterEllipsis" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</controls:SortableGridViewColumn.CellTemplate>
|
|
</controls:SortableGridViewColumn>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
</Grid>
|
|
</UserControl>
|