markus / KCOM / Controls / SearchPanel.xaml @ 4836261b
이력 | 보기 | 이력해설 | 다운로드 (5.25 KB)
1 | 787a4489 | KangIngu | <UserControl x:Class="KCOM.Controls.SearchPanel" |
---|---|---|---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||
6 | xmlns:local="clr-namespace:KCOM.Controls" |
||
7 | mc:Ignorable="d" Background="White" |
||
8 | d:DesignHeight="900" d:DesignWidth="300"> |
||
9 | <Grid Margin="10"> |
||
10 | <Grid.RowDefinitions>
|
||
11 | <RowDefinition Height="Auto"/> |
||
12 | <RowDefinition Height="*"/> |
||
13 | </Grid.RowDefinitions>
|
||
14 | <StackPanel Orientation="Vertical"> |
||
15 | <TextBlock Text="Search : " FontSize="15"/> |
||
16 | <Grid Margin="0,10"> |
||
17 | <Grid.ColumnDefinitions>
|
||
18 | <ColumnDefinition Width="8*"/> |
||
19 | <ColumnDefinition Width="2*"/> |
||
20 | </Grid.ColumnDefinitions>
|
||
21 | 992a98b4 | KangIngu | <TextBox Background="#FFF3F3F3" BorderThickness="0.5" VerticalContentAlignment="Center" x:Name="tbSearch"/> |
22 | 787a4489 | KangIngu | <Button Content="Search" Grid.Column="1" Padding="5" Background="#3d3d3d" Foreground="White" x:Name="btnSearch"/> |
23 | </Grid>
|
||
24 | 992a98b4 | KangIngu | <GroupBox Header="Option List"> |
25 | <StackPanel Margin="1"> |
||
26 | 1479a635 | djkim | <CheckBox Content="Current page only" Margin="3" x:Name="chkCurrentPageOnly" IsChecked="True"/> |
27 | 992a98b4 | KangIngu | </StackPanel>
|
28 | </GroupBox>
|
||
29 | <GroupBox Header="Search Mode"> |
||
30 | <StackPanel Margin="1"> |
||
31 | <RadioButton GroupName="Search" Content="None - search as substring" IsChecked="True" Margin="3" Checked="chkSelectionChangeEvent" Tag="0"/> |
||
32 | <RadioButton GroupName="Search" Content="Exact - search string as separate word" Margin="3" Checked="chkSelectionChangeEvent" Tag="1"/> |
||
33 | <RadioButton GroupName="Search" Content="Smart - find the word in various forms" Margin="3" Checked="chkSelectionChangeEvent" Tag="2"/> |
||
34 | </StackPanel>
|
||
35 | <!--<CheckBox Content="Match whole word" Margin="5"/>-->
|
||
36 | </GroupBox>
|
||
37 | 787a4489 | KangIngu | |
38 | 992a98b4 | KangIngu | <!--<TextBlock Text="Search word or phase in the current document, and list the result" Margin="20,20" TextWrapping="WrapWithOverflow" Foreground="#FF7C7C7C" FontSize="12"/>-->
|
39 | </StackPanel>
|
||
40 | d3dc9637 | humkyung | <ListBox x:Name="lstSearchWord" Grid.Row="1" BorderThickness="1" Margin="0,10" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
41 | 992a98b4 | KangIngu | ItemsSource="{Binding SearchSet}" SelectionChanged="lstSearchWord_SelectionChanged"> |
42 | d3dc9637 | humkyung | <ListBox.Template>
|
43 | <ControlTemplate>
|
||
44 | <DockPanel LastChildFill="True"> |
||
45 | <Grid DockPanel.Dock="Top" Height="30"> |
||
46 | <Grid.ColumnDefinitions>
|
||
47 | <ColumnDefinition Width="100"></ColumnDefinition> |
||
48 | <ColumnDefinition Width="*"></ColumnDefinition> |
||
49 | </Grid.ColumnDefinitions>
|
||
50 | <Label Grid.Column="0" BorderBrush="#FF0B4FC5" BorderThickness="2">Page No</Label> |
||
51 | <Label Grid.Column="1" BorderBrush="#FF0B4FC5" BorderThickness="2">Position</Label> |
||
52 | </Grid>
|
||
53 | <ItemsPresenter></ItemsPresenter> |
||
54 | </DockPanel>
|
||
55 | </ControlTemplate>
|
||
56 | </ListBox.Template>
|
||
57 | 992a98b4 | KangIngu | <ListBox.ItemTemplate>
|
58 | <DataTemplate>
|
||
59 | <StackPanel Orientation="Horizontal"> |
||
60 | <Border Background="#FF0B4FC5" Margin="0,0,5,0" MinWidth="30"> |
||
61 | <TextBlock Text="{Binding PageNo}" Padding="5" Foreground="White" HorizontalAlignment="Center"/> |
||
62 | </Border>
|
||
63 | <TextBlock Text=" Text : " FontWeight="DemiBold" VerticalAlignment="Center" Foreground="#FF0B4FC5" /> |
||
64 | <TextBlock Text="{Binding searchResult.Text}" VerticalAlignment="Center"/> |
||
65 | <TextBlock Text=" Position : " FontWeight="DemiBold" VerticalAlignment="Center" Foreground="#FF0B4FC5" /> |
||
66 | <TextBlock Text="{Binding searchResult.Left, StringFormat=N1}" VerticalAlignment="Center"/> |
||
67 | <TextBlock Text="," FontWeight="DemiBold" VerticalAlignment="Center"/> |
||
68 | <TextBlock Text="{Binding searchResult.Top, StringFormat=N1}" VerticalAlignment="Center"/> |
||
69 | </StackPanel>
|
||
70 | </DataTemplate>
|
||
71 | </ListBox.ItemTemplate>
|
||
72 | </ListBox>
|
||
73 | |||
74 | <Border Background="Black" Grid.RowSpan="2" Opacity="0.7" Margin="-10" x:Name="border_Overlap"> |
||
75 | <StackPanel VerticalAlignment="Center"> |
||
76 | <TextBlock x:Name="tlDonwloadState" Text="원활한 검색을 위해 데이터를 준비합니다" Foreground="White" HorizontalAlignment="Center" Margin="0,10" FontWeight="Bold"/> |
||
77 | <Button Content="다운로드" Margin="5" HorizontalAlignment="Center" Padding="10" Background="#FF0080FF" Foreground="White" BorderThickness="0" |
||
78 | x:Name="btnSearchPDFDownload"/> |
||
79 | </StackPanel>
|
||
80 | </Border>
|
||
81 | 787a4489 | KangIngu | </Grid>
|
82 | </UserControl> |