WinParameter.xaml 4.91 KB
<Window
    x:Class="RCS.WinClient.Views.Pages.WinParameter"
    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:local="clr-namespace:RCS.WinClient.Views.Pages"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Title="参数配置"
    Width="800"
    Height="400"
    AllowsTransparency="True"
    Background="Transparent"
    Loaded="Window_Loaded"
    ResizeMode="CanResizeWithGrip"
    WindowStartupLocation="CenterScreen"
    WindowStyle="None"
    mc:Ignorable="d">

    <WindowChrome.WindowChrome>
        <WindowChrome CaptionHeight="0" ResizeBorderThickness="2" />
    </WindowChrome.WindowChrome>

    <Border
        Background="White"
        BorderBrush="{StaticResource HHLGRed}"
        BorderThickness="1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
                <RowDefinition />
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
            </Grid.RowDefinitions>
            <Grid
                Name="Spl_title"
                Grid.Row="0"
                Grid.ColumnSpan="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="auto" />
                    <ColumnDefinition Width="auto" />
                    <ColumnDefinition Width="auto" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <TextBlock
                    HorizontalAlignment="Stretch"
                    VerticalAlignment="Center"
                    FontSize="20"
                    Foreground="{StaticResource HHAst2}"
                    MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"
                    TextAlignment="Center">
                    参 数 配 置
                </TextBlock>
                <Button
                    Name="BtnClose"
                    Grid.Column="3"
                    Width="20"
                    Margin="2"
                    Background="{StaticResource HHLGRed}"
                    Click="BtnClose_Click"
                    Foreground="White">
                    X
                </Button>
            </Grid>
            <StackPanel
                Grid.Row="1"
                Height="2"
                Background="{StaticResource HHLGRed}" />
            <Grid Grid.Row="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="auto" />
                </Grid.RowDefinitions>
                <DataGrid
                    Name="DGrid_KeyValue"
                    HorizontalAlignment="Center"
                    AutoGenerateColumns="False"
                    Background="Transparent"
                    CanUserAddRows="False"
                    CanUserDeleteRows="False"
                    GridLinesVisibility="All">
                    <DataGrid.Columns>
                        <DataGridTextColumn
                            Width="190"
                            Binding="{Binding Path=KeyVariable}"
                            CanUserSort="False"
                            Header="参数变量"
                            IsReadOnly="True" />
                        <DataGridTextColumn
                            Width="400"
                            Binding="{Binding Path=KeyDescribe}"
                            CanUserSort="False"
                            Header="变量描述"
                            IsReadOnly="True" />
                        <DataGridTextColumn
                            Width="190"
                            Binding="{Binding Path=Value}"
                            CanUserSort="False"
                            Header="参数值" />
                    </DataGrid.Columns>
                </DataGrid>
                <Button
                    Name="Btn_OK"
                    Grid.Row="1"
                    Width="200"
                    Height="50"
                    Margin="0,20,0,0"
                    Background="{StaticResource HHLGRed}"
                    Click="Btn_OK_Click"
                    FontSize="16"
                    Foreground="White">
                    更新
                </Button>
            </Grid>
            <StackPanel
                Grid.Row="3"
                Height="2"
                Background="{StaticResource HHLGRed}" />
            <TextBlock
                Grid.Row="4"
                HorizontalAlignment="Center"
                FontSize="20"
                Foreground="{StaticResource HHAst2}">
                控制台系统
            </TextBlock>
        </Grid>
    </Border>
</Window>