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.
		
		
		
		
		
			
		
			
				
					
					
						
							91 lines
						
					
					
						
							6.7 KiB
						
					
					
				
			
		
		
	
	
							91 lines
						
					
					
						
							6.7 KiB
						
					
					
				<windows:BaseWindow  xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"    | 
						|
             x:Class="Kingo.Plugin.MapView.Views.UCFieldCalculator" | 
						|
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | 
						|
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | 
						|
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  | 
						|
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  | 
						|
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" | 
						|
             xmlns:btn="clr-namespace:KUI.Button;assembly=KUI" | 
						|
             xmlns:local="clr-namespace:Kingo.Plugin.MapView.Views" | 
						|
            mc:Ignorable="d"   | 
						|
            Height="600" Width="510" Title="字段计算器"> | 
						|
    <Grid> | 
						|
        <Grid.RowDefinitions> | 
						|
            <RowDefinition Height="70"/> | 
						|
            <RowDefinition Height="200"/> | 
						|
            <RowDefinition Height="60"/> | 
						|
            <RowDefinition /> | 
						|
            <RowDefinition Height="50"/> | 
						|
        </Grid.RowDefinitions> | 
						|
         | 
						|
        <GroupBox x:Name="groupBox" Grid.Row="0" Header="解析程序" HorizontalAlignment="Left" Height="60" VerticalAlignment="Top" Width="200" Margin="20,0"> | 
						|
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center"> | 
						|
                <RadioButton x:Name="python" IsChecked="True" Content="Python" Margin="5,0" Checked="Python_Checked"/> | 
						|
                <RadioButton x:Name="vb" Margin="5,0" Content="VB脚本" Checked="VB_Checked"/> | 
						|
            </StackPanel> | 
						|
        </GroupBox> | 
						|
        <Grid Grid.Row="1"> | 
						|
            <Grid.ColumnDefinitions> | 
						|
                <ColumnDefinition Width="240"/> | 
						|
                <ColumnDefinition Width="90"/> | 
						|
                <ColumnDefinition Width="160"/> | 
						|
            </Grid.ColumnDefinitions> | 
						|
            <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="0"> | 
						|
                <Label Content="字段:" Height="30" Margin="20,0"/> | 
						|
                <ListBox x:Name="fieldListBox" Margin="20,0" MaxHeight="160" Width="200" SelectionChanged="FieldListBox_SelectionChanged"> | 
						|
                </ListBox> | 
						|
                 | 
						|
            </StackPanel> | 
						|
            <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="1"> | 
						|
                <Label Content="类型:" Height="30"/> | 
						|
                <StackPanel Orientation="Vertical" HorizontalAlignment="Left"> | 
						|
                    <RadioButton x:Name="stringRadioButton" IsChecked="True" Content="字符串(T)" Margin="0,5" Checked="StringRadioButton_Checked"/> | 
						|
                    <RadioButton x:Name="figureRadioButton" Margin="0,5" Content="数字" Checked="FigureRadioButton_Checked"/> | 
						|
                    <RadioButton x:Name="dateRadioButton" Content="日期(D)" Margin="0,5" Checked="DateRadioButton_Checked"/> | 
						|
                </StackPanel> | 
						|
            </StackPanel> | 
						|
            <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="2"> | 
						|
                <Label Content="功能:" Height="30" Margin="0,0"/> | 
						|
                <ListBox x:Name="functionListBox" Margin="0,0" MaxHeight="160" Width="150" SelectionChanged ="FunctionListBox_SelectionChanged"> | 
						|
                    <ListBoxItem Content="Abs ( )"/> | 
						|
                    <ListBoxItem Content="Atn ( )"/> | 
						|
                    <ListBoxItem Content="Cos ( )"/> | 
						|
                    <ListBoxItem Content="Exp ( )"/> | 
						|
                    <ListBoxItem Content="Fix ( )"/> | 
						|
                    <ListBoxItem Content="Int ( )"/> | 
						|
                    <ListBoxItem Content="Log ( )"/> | 
						|
                    <ListBoxItem Content="Sin ( )"/> | 
						|
                    <ListBoxItem Content="Sqr ( )"/> | 
						|
                    <ListBoxItem Content="Tan ( )"/> | 
						|
                </ListBox> | 
						|
            </StackPanel> | 
						|
        </Grid> | 
						|
        <Grid Grid.Row="2"> | 
						|
            <Grid.ColumnDefinitions> | 
						|
                <ColumnDefinition Width="200"/> | 
						|
                <ColumnDefinition Width="300"/> | 
						|
            </Grid.ColumnDefinitions> | 
						|
            <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="0"> | 
						|
                <!--<CheckBox Content="显示代码块" Name="isShowCODE" IsChecked="False" Margin="20,0,0,0" Width="100" Height="30" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center"/>--> | 
						|
                <Label Name="fieldLabel" Content=" = " HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="100" Height="30" Margin="20,0"/> | 
						|
            </StackPanel> | 
						|
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="10,0"> | 
						|
                <Button x:Name="multiplicationBt" Content="*" HorizontalAlignment="Center" Margin="5,0" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="35" Height="30" Click="BtnMultiplication_Click"/> | 
						|
                <Button x:Name="divideBt" Content="/" HorizontalAlignment="Center" Margin="5,0" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="35" Height="30"  Click="BtnDivide_Click"/> | 
						|
                <Button x:Name="withBt" Content="&" HorizontalAlignment="Center" Margin="5,0" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="35" Height="30"  Click="BtnWith_Click"/> | 
						|
                <Button x:Name="addBt" Content="+" HorizontalAlignment="Center" Margin="5,0" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="35" Height="30"  Click="BtnAdd_Click"/> | 
						|
                <Button x:Name="subtractBt" Content="-" HorizontalAlignment="Center" Margin="5,0" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="35" Height="30"  Click="BtnSubtract_Click"/> | 
						|
                <Button x:Name="equalBt" Content="=" HorizontalAlignment="Center" Margin="5,0" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="35" Height="30"  Click="BtnEqual_Click"/> | 
						|
            </StackPanel> | 
						|
        </Grid> | 
						|
        <Grid Grid.Row="3"> | 
						|
            <TextBox x:Name="contentBlock" Text="" Width="460" Height="180" Margin="20,0" VerticalAlignment="Top" HorizontalAlignment="Left" VerticalContentAlignment="Top"   AcceptsReturn="True" TextWrapping="Wrap" IsReadOnly="False" TextChanged="ContentBlock_TextChanged"></TextBox> | 
						|
        </Grid> | 
						|
        <Grid Grid.Row="4"> | 
						|
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> | 
						|
                <btn:KImgButton Content="确  定" Width="90" Height="30" x:Name="btnOK" Click="BtnOK_Click" Margin="20,0"/> | 
						|
                <btn:KImgButton Content="取  消" Width="90" Height="30" x:Name="btnCancel" Click="BtnCancel_Click" Margin="20,0"/> | 
						|
            </StackPanel> | 
						|
        </Grid> | 
						|
    </Grid> | 
						|
</windows:BaseWindow>
 | 
						|
 |