年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
4.3 KiB

6 months ago
<UserControl x:Class="Kingo.Plugin.General.View.UCWYSketch"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:btn="clr-namespace:KUI.Button;assembly=KUI"
xmlns:kui="clr-namespace:KUI;assembly=KUI"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="300">
<Grid Background="White">
<Grid x:Name="JCTBInfo" >
<kui:PagingDataGrid Grid.Row="4" x:Name="dgWYSketch" PreviewKeyDown="DgWYSketch_PreviewKeyDown" KeyUp="DgWYSketch_KeyUp" MinHeight="150" ItemsSource="{Binding WYSketch,Mode=TwoWay}" HorizontalScrollBarVisibility="Auto"
Visibility="Visible"
IsReadOnly="False"
IsShowPaging="False"
PageIndex="1" PageSize="10"
AutoGenerateColumns="False"
CanUserAddRows="False" LostFocus="TxtYPSM_LostFocus" GotFocus="TxtYPSM_GotFocus">
<kui:PagingDataGrid.Columns>
<DataGridTemplateColumn Header="操作" Width="100">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel x:Name="txt_info111" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" >
<TextBlock x:Name="txt_info" HorizontalAlignment="Center"
VerticalAlignment="Center" Tag="{Binding}" Cursor="Hand" MouseLeftButtonDown="Txt_info_MouseLeftButtonDown" Text="定位" Foreground="Blue" Margin="10,0,0,0"/>
<TextBlock x:Name="txt_delete" HorizontalAlignment="Center"
VerticalAlignment="Center" Tag="{Binding}" Cursor="Hand" MouseLeftButtonDown="Txt_delete_MouseLeftButtonDown" Text="删除" Foreground="Blue" Margin="10,0,0,0"/>
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="OID" IsReadOnly="True" Visibility="Collapsed" Binding="{Binding ObjectID}" Width="50"/>
<DataGridTextColumn Header="图斑标识码" IsReadOnly="True" Binding="{Binding TBBSM}" Width="0" Visibility="Collapsed"/>
<DataGridTextColumn Header="标注类型" IsReadOnly="True" Binding="{Binding BZLX}" Width="50"/>
<DataGridTextColumn Header="标注描述" Binding="{Binding BZMS}" Width="200" />
<DataGridTextColumn Header="图形" Binding="{Binding Geometry}" Width="0" Visibility="Collapsed"/>
</kui:PagingDataGrid.Columns>
<kui:PagingDataGrid.EditButtonList>
<dxe:ComboBoxEdit x:Name="bzType" Width="70" HorizontalAlignment="Center" SelectedIndexChanged="BzType_SelectedIndexChanged" HorizontalContentAlignment="Center" IsTextEditable="False" Height="27">
<dxe:ComboBoxEditItem Content="点标注" IsSelected="True"/>
<dxe:ComboBoxEditItem Content="线标注"/>
<dxe:ComboBoxEditItem Content="面标注"/>
</dxe:ComboBoxEdit>
<btn:KImgButton Content="添加" Height="27" Cursor="Hand" Margin="10,0" x:Name="btnAddData" Click="BtnAddData_Click"/>
<btn:KImgButton Content="清空标注" Height="27" Cursor="Hand" x:Name="btnClearData" Click="BtnClearData_Click"/>
</kui:PagingDataGrid.EditButtonList>
<!--<kui:PagingDataGrid.PageSizeItemsSource>
<sys:Int32>5</sys:Int32>
<sys:Int32>10</sys:Int32>
<sys:Int32>15</sys:Int32>
<sys:Int32>20</sys:Int32>
<sys:Int32>40</sys:Int32>
</kui:PagingDataGrid.PageSizeItemsSource>-->
</kui:PagingDataGrid>
</Grid>
</Grid>
</UserControl>