markus / KCOM / Controls / cadPanel.xaml @ b37ef4b3
이력 | 보기 | 이력해설 | 다운로드 (5.58 KB)
1 |
<UserControl x:Class="KCOM.Controls.cadPanel" |
---|---|
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="250"> |
9 |
<Grid Margin="10"> |
10 |
<Grid.RowDefinitions>
|
11 |
<RowDefinition Height="Auto"/> |
12 |
<RowDefinition Height="*"/> |
13 |
</Grid.RowDefinitions>
|
14 |
<StackPanel Orientation="Vertical" Name="ChildPanel"> |
15 |
|
16 |
|
17 |
<Grid Margin="0,10,0,0"> |
18 |
<Grid.ColumnDefinitions>
|
19 |
<ColumnDefinition Width="3.5*"/> |
20 |
<ColumnDefinition Width="6.5*"/> |
21 |
</Grid.ColumnDefinitions>
|
22 |
|
23 |
<Button Content="Left, Top" Grid.Column="0" Padding="5" Background="#3d3d3d" Foreground="White" x:Name="sp" Click="Sp_Click"/> |
24 |
<!-- -->
|
25 |
<TextBox Margin="10,0,0,0" Background="#FFF3F3F3" Grid.Column="1" BorderThickness="0.5" VerticalContentAlignment="Center" Text="(0, 0)" x:Name="spLabel" Height="28" VerticalAlignment="Top"/> |
26 |
</Grid>
|
27 |
|
28 |
<Grid Margin="0,10"> |
29 |
<Grid.ColumnDefinitions>
|
30 |
<ColumnDefinition Width="3.5*"/> |
31 |
<ColumnDefinition Width="6.5*"/> |
32 |
</Grid.ColumnDefinitions>
|
33 |
<Button Content="Right, Bottom" Grid.Column="0" Padding="5" Background="#3d3d3d" Foreground="White" x:Name="ep" Click="Ep_Click"/> |
34 |
<TextBox Margin="10,0,0,0" Background="#FFF3F3F3" Grid.Column="1" BorderThickness="0.5" VerticalContentAlignment="Center" Text="(0, 0)" x:Name="epLabel"/> |
35 |
</Grid>
|
36 |
<Grid Margin="0,0"> |
37 |
<Grid.ColumnDefinitions>
|
38 |
<ColumnDefinition Width="5*"/> |
39 |
<ColumnDefinition Width="5*"/> |
40 |
</Grid.ColumnDefinitions>
|
41 |
<Button Content="clear" Grid.Column="0" Padding="5" Background="#3d3d3d" Foreground="White" x:Name="clear" Click="Clear_Click"/> |
42 |
<Button Margin="10,0,0,0" Content="export" Grid.Column="1" Padding="5" Background="#3d3d3d" Foreground="White" x:Name="export" Click="Export_Click"/> |
43 |
</Grid>
|
44 |
</StackPanel>
|
45 |
<!--
|
46 |
<GroupBox Header="Option List">
|
47 |
<StackPanel Margin="1">
|
48 |
<CheckBox Content="Current page only" Margin="3" x:Name="chkCurrentPageOnly"/>
|
49 |
</StackPanel>
|
50 |
</GroupBox>
|
51 |
<GroupBox Header="Search Mode">
|
52 |
<StackPanel Margin="1">
|
53 |
<RadioButton GroupName="Search" Content="None - search as substring" IsChecked="True" Margin="3" Checked="chkSelectionChangeEvent" Tag="0"/>
|
54 |
<RadioButton GroupName="Search" Content="Exact - search string as separate word" Margin="3" Checked="chkSelectionChangeEvent" Tag="1"/>
|
55 |
<RadioButton GroupName="Search" Content="Smart - find the word in various forms" Margin="3" Checked="chkSelectionChangeEvent" Tag="2"/>
|
56 |
</StackPanel>
|
57 |
</GroupBox>
|
58 |
</StackPanel>
|
59 |
<ListBox x:Name="lstSearchWord" Grid.Row="1" BorderThickness="1" Margin="0,10" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
60 |
ItemsSource="{Binding SearchSet}" SelectionChanged="lstSearchWord_SelectionChanged">
|
61 |
<ListBox.Template>
|
62 |
<ControlTemplate>
|
63 |
<DockPanel LastChildFill="True">
|
64 |
<Grid DockPanel.Dock="Top" Height="30">
|
65 |
<Grid.ColumnDefinitions>
|
66 |
<ColumnDefinition Width="100"></ColumnDefinition>
|
67 |
<ColumnDefinition Width="*"></ColumnDefinition>
|
68 |
</Grid.ColumnDefinitions>
|
69 |
<Label Grid.Column="0" BorderBrush="#FF0B4FC5" BorderThickness="2">Page No</Label>
|
70 |
<Label Grid.Column="1" BorderBrush="#FF0B4FC5" BorderThickness="2">Position</Label>
|
71 |
</Grid>
|
72 |
<ItemsPresenter></ItemsPresenter>
|
73 |
</DockPanel>
|
74 |
</ControlTemplate>
|
75 |
</ListBox.Template>
|
76 |
<ListBox.ItemTemplate>
|
77 |
<DataTemplate>
|
78 |
<StackPanel Orientation="Horizontal">
|
79 |
<Border Background="#FF0B4FC5" Margin="0,0,5,0" MinWidth="30">
|
80 |
<TextBlock Text="{Binding PageNo}" Padding="5" Foreground="White" HorizontalAlignment="Center"/>
|
81 |
</Border>
|
82 |
<TextBlock Text=" Text : " FontWeight="DemiBold" VerticalAlignment="Center" Foreground="#FF0B4FC5" />
|
83 |
<TextBlock Text="{Binding searchResult.Text}" VerticalAlignment="Center"/>
|
84 |
<TextBlock Text=" Position : " FontWeight="DemiBold" VerticalAlignment="Center" Foreground="#FF0B4FC5" />
|
85 |
<TextBlock Text="{Binding searchResult.Left, StringFormat=N1}" VerticalAlignment="Center"/>
|
86 |
<TextBlock Text="," FontWeight="DemiBold" VerticalAlignment="Center"/>
|
87 |
<TextBlock Text="{Binding searchResult.Top, StringFormat=N1}" VerticalAlignment="Center"/>
|
88 |
</StackPanel>
|
89 |
</DataTemplate>
|
90 |
</ListBox.ItemTemplate>
|
91 |
</ListBox> -->
|
92 |
|
93 |
</Grid>
|
94 |
</UserControl>
|