markus / KCOM / Controls / SearchPanel.xaml @ 787a4489
이력 | 보기 | 이력해설 | 다운로드 (2.56 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 | <TextBox Background="White" BorderThickness="0.5" VerticalContentAlignment="Center" x:Name="tbSearch"/> |
||
22 | <Button Content="Search" Grid.Column="1" Padding="5" Background="#3d3d3d" Foreground="White" x:Name="btnSearch"/> |
||
23 | </Grid>
|
||
24 | <CheckBox Content="Match case" Margin="0,5"/> |
||
25 | <CheckBox Content="Match whole word" Margin="0,5"/> |
||
26 | <CheckBox Content="Current page only" Margin="0,5,0,2"/> |
||
27 | |||
28 | <TextBlock Text="Search word or phase in the current document, and list the result" Margin="20,20" TextWrapping="WrapWithOverflow" Foreground="#FF7C7C7C" FontSize="10"/> |
||
29 | </StackPanel>
|
||
30 | |||
31 | <ListBox x:Name="lstSearchWord" Grid.Row="1" BorderThickness="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled"> |
||
32 | <ListBox.ItemTemplate>
|
||
33 | <DataTemplate>
|
||
34 | <Grid Width="{Binding Width, ElementName=lstSearchWord}"> |
||
35 | <!--<StackPanel>
|
||
36 | <TextBlock Text="Page : 1" Foreground="{DynamicResource KCOMColor_MarkerBrush}" FontWeight="DemiBold"/>
|
||
37 | <TextBlock Text="Weiss Ratings"
|
||
38 | TextWrapping="Wrap" Margin="0,2"/>
|
||
39 | --><!--<TextBlock Text="{Binding}"/>--><!-- |
||
40 | </StackPanel>-->
|
||
41 | </Grid>
|
||
42 | </DataTemplate>
|
||
43 | </ListBox.ItemTemplate>
|
||
44 | <ListBox.Items>
|
||
45 | aaa |
||
46 | </ListBox.Items>
|
||
47 | </ListBox>
|
||
48 | </Grid>
|
||
49 | </UserControl> |