프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Controls / SearchPanel.xaml @ 62b6bcde

이력 | 보기 | 이력해설 | 다운로드 (5.75 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 136851cb djkim
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
7 787a4489 KangIngu
             xmlns:local="clr-namespace:KCOM.Controls"
8
             mc:Ignorable="d" Background="White"
9
             d:DesignHeight="900" d:DesignWidth="300">
10
    <Grid  Margin="10">
11 136851cb djkim
12 787a4489 KangIngu
        <Grid.RowDefinitions>
13
            <RowDefinition Height="Auto"/>
14
            <RowDefinition Height="*"/>
15
        </Grid.RowDefinitions>
16
        <StackPanel Orientation="Vertical">
17
            <TextBlock Text="Search : " FontSize="15"/>
18
            <Grid Margin="0,10">
19
                <Grid.ColumnDefinitions>
20
                    <ColumnDefinition Width="8*"/>
21
                    <ColumnDefinition Width="2*"/>
22
                </Grid.ColumnDefinitions>
23 992a98b4 KangIngu
                <TextBox  Background="#FFF3F3F3" BorderThickness="0.5" VerticalContentAlignment="Center" x:Name="tbSearch"/>
24 787a4489 KangIngu
                <Button Content="Search" Grid.Column="1" Padding="5" Background="#3d3d3d" Foreground="White" x:Name="btnSearch"/>
25
            </Grid>
26 992a98b4 KangIngu
            <GroupBox Header="Option List">
27
                <StackPanel Margin="1">
28 136851cb djkim
                    <CheckBox Content="Current page only" Margin="3" x:Name="chkCurrentPageOnly" IsChecked="True"/>
29 992a98b4 KangIngu
                </StackPanel>
30
            </GroupBox>
31
            <GroupBox Header="Search Mode">
32
                <StackPanel Margin="1">
33
                    <RadioButton GroupName="Search" Content="None - search as substring" IsChecked="True" Margin="3" Checked="chkSelectionChangeEvent"  Tag="0"/>
34
                    <RadioButton GroupName="Search" Content="Exact - search string as separate word" Margin="3" Checked="chkSelectionChangeEvent" Tag="1"/>
35
                    <RadioButton GroupName="Search" Content="Smart - find the word in various forms"  Margin="3" Checked="chkSelectionChangeEvent" Tag="2"/>
36
                </StackPanel>
37
                <!--<CheckBox Content="Match whole word" Margin="5"/>-->
38
            </GroupBox>
39 787a4489 KangIngu
40 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"/>-->
41
        </StackPanel>
42 136851cb djkim
43 d3dc9637 humkyung
        <ListBox x:Name="lstSearchWord" Grid.Row="1" BorderThickness="1" Margin="0,10" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
44 992a98b4 KangIngu
                 ItemsSource="{Binding SearchSet}" SelectionChanged="lstSearchWord_SelectionChanged">
45 d3dc9637 humkyung
            <ListBox.Template>
46
                <ControlTemplate>
47
                    <DockPanel LastChildFill="True">
48
                        <Grid DockPanel.Dock="Top" Height="30">
49
                            <Grid.ColumnDefinitions>
50
                                <ColumnDefinition Width="100"></ColumnDefinition>
51
                                <ColumnDefinition Width="*"></ColumnDefinition>
52
                            </Grid.ColumnDefinitions>
53
                            <Label Grid.Column="0" BorderBrush="#FF0B4FC5" BorderThickness="2">Page No</Label>
54
                            <Label Grid.Column="1" BorderBrush="#FF0B4FC5" BorderThickness="2">Position</Label>
55
                        </Grid>
56
                        <ItemsPresenter></ItemsPresenter>
57
                    </DockPanel>
58
                </ControlTemplate>
59
            </ListBox.Template>
60 992a98b4 KangIngu
            <ListBox.ItemTemplate>
61
                <DataTemplate>
62
                    <StackPanel Orientation="Horizontal">
63
                        <Border Background="#FF0B4FC5" Margin="0,0,5,0" MinWidth="30">
64
                            <TextBlock Text="{Binding PageNo}" Padding="5" Foreground="White" HorizontalAlignment="Center"/>
65
                        </Border>
66
                        <TextBlock Text="  Text : "  FontWeight="DemiBold" VerticalAlignment="Center" Foreground="#FF0B4FC5" />
67
                        <TextBlock Text="{Binding searchResult.Text}" VerticalAlignment="Center"/>
68
                        <TextBlock Text="  Position : "  FontWeight="DemiBold" VerticalAlignment="Center" Foreground="#FF0B4FC5" />
69
                        <TextBlock Text="{Binding searchResult.Left, StringFormat=N1}" VerticalAlignment="Center"/>
70
                        <TextBlock Text=","  FontWeight="DemiBold" VerticalAlignment="Center"/>
71
                        <TextBlock Text="{Binding searchResult.Top, StringFormat=N1}" VerticalAlignment="Center"/>
72
                    </StackPanel>
73
                </DataTemplate>
74
            </ListBox.ItemTemplate>
75
        </ListBox>
76
77
        <Border Background="Black" Grid.RowSpan="2"  Opacity="0.7" Margin="-10" x:Name="border_Overlap">
78
            <StackPanel VerticalAlignment="Center">
79
                <TextBlock x:Name="tlDonwloadState" Text="원활한 검색을 위해 데이터를 준비합니다" Foreground="White" HorizontalAlignment="Center" Margin="0,10" FontWeight="Bold"/>
80
                <Button Content="다운로드" Margin="5" HorizontalAlignment="Center" Padding="10" Background="#FF0080FF" Foreground="White" BorderThickness="0"
81
                        x:Name="btnSearchPDFDownload"/>
82
            </StackPanel>
83
        </Border>
84 136851cb djkim
        <telerik:RadBusyIndicator x:Name="searchIndicator" 
85
                                  FontSize="20" 
86
                                  Grid.RowSpan="2"
87
                                  DisplayAfter="0"
88
                                  IsBusy="False" 
89
                                  telerik:StyleManager.Theme="Office2016"                                                  
90
                                  BusyContent="Searching..."/>
91
92 787a4489 KangIngu
    </Grid>
93
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)