84 lines
3.1 KiB
XML
84 lines
3.1 KiB
XML
<UserControl
|
|
x:Class="Szmedi.CADkits.ReviewAndMatchWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Width="400"
|
|
Height="450"
|
|
mc:Ignorable="d">
|
|
<Grid Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Margin="0,0,0,10"
|
|
Text="双击列表项可定位并选中块。使用“手动匹配”按钮可重新指定标高。"
|
|
TextWrapping="Wrap" />
|
|
|
|
<ListView
|
|
x:Name="ReviewListView"
|
|
Grid.Row="1"
|
|
MouseDoubleClick="ListView_MouseDoubleClick"
|
|
SelectionMode="Single">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn
|
|
Width="100"
|
|
DisplayMemberBinding="{Binding Handle}"
|
|
Header="句柄" />
|
|
<GridViewColumn
|
|
Width="220"
|
|
DisplayMemberBinding="{Binding Position}"
|
|
Header="坐标 (X, Y)" />
|
|
<GridViewColumn Width="150" Header="匹配状态">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Status}" />
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
x:Name="LocateInListButton"
|
|
Margin="5"
|
|
Click="LocateInListButton_Click"
|
|
Content="定位选中"
|
|
ToolTip="选择点的块,快速定位到列表中的位置" />
|
|
<Button
|
|
x:Name="MatchButton"
|
|
Margin="5"
|
|
Click="MatchButton_Click"
|
|
Content="手动匹配"
|
|
FontWeight="Bold"
|
|
ToolTip="选中列表中的行,选择文字,手动匹配" />
|
|
<Button
|
|
x:Name="CleanLinesButton"
|
|
Margin="5"
|
|
Click="CleanLinesButton_Click"
|
|
Content="清理连线" />
|
|
<Button
|
|
x:Name="ConvertToPointsButton"
|
|
Margin="5"
|
|
Click="ConvertToPointsButton_Click"
|
|
Content="多段线转点"
|
|
ToolTip="将列表中所有的多段线圆弧符号转换为几何中心点" />
|
|
<!--<Button
|
|
x:Name="CloseButton"
|
|
Margin="5"
|
|
Click="CloseButton_Click"
|
|
Content="隐藏面板" />-->
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl> |