schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<UserControl x:Class="XHandler.View.MethodProperty.VariableCaculationProperty"
             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:local="clr-namespace:XHandler.View.MethodProperty"
             xmlns:str="clr-namespace:XHandler.Properties"
             xmlns:ctrls="clr-namespace:XHandler.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width=".9*"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strCommandTag}" FontSize="16"
                   VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
        <TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strCommandName}" FontSize="16" 
                   VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
        <TextBlock Grid.Row="2" Grid.Column="0" Text="{x:Static str:Resources.strExpression}" FontSize="16" 
                   VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
 
        <TextBox Grid.Row="0" Grid.Column="1" x:Name="tbxCommandLabel" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}"
                 Text="{Binding label, Mode=TwoWay}" IsEnabled="False"/>
        <TextBox Grid.Row="1" Grid.Column="1" x:Name="tbxCommandName" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}"
                 Text="{Binding name}" TextChanged="tbxCommandName_TextChanged"/>
 
        <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3">
            <ctrls:PromptTextBox x:Name="tboxResult" FontSize="16" Height="30" Width="150" VerticalContentAlignment="Center" 
                 Text="" Watermark="{x:Static str:Resources.strInputVariable}" BorderThickness="0" TextChanged="tboxResult_TextChanged"/>
            <TextBlock Text="=" FontSize="16" Margin="5 0" VerticalAlignment="Center"/>
            <ctrls:PromptTextBox x:Name="tboxValue1" FontSize="16" Height="30" Width="150" VerticalContentAlignment="Center" 
                 Text="" Watermark="{x:Static str:Resources.strInputVariableOrValue}" BorderThickness="0" TextChanged="tboxValue1_TextChanged"/>
            <ComboBox x:Name="cboxOperator" Height="30" Width="80" BorderThickness="0" Background="#FFF7F8FA" FontSize="16"
                          IsEditable="False" Margin="10 0 0 0" DisplayMemberPath="dropdown_name" SelectedValuePath="dropdown_id" SelectionChanged="cboxOperator_SelectionChanged"/>
            <ctrls:PromptTextBox x:Name="tboxValue2" FontSize="16" Height="30" Width="150" VerticalContentAlignment="Center" 
                 Text="" Watermark="{x:Static str:Resources.strInputVariableOrValue}" BorderThickness="0" TextChanged="tboxValue2_TextChanged"/>
        </StackPanel>
 
    </Grid>
</UserControl>