Newer
Older
Correlator / PipeGallery / View / SoundSpeedEditView.xaml
<UserControl
    x:Class="PipeGallery.View.SoundSpeedEditView"
    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"
    d:DesignHeight="768"
    d:DesignWidth="1366"
    Background="#b4000000"
    mc:Ignorable="d">
    <Grid>
        <Viewbox>
            <Grid
                Width="1366"
                Height="768"
                Background="Transparent">
                <Border Background="Transparent" PreviewMouseDown="Grid_PreviewMouseDown" />
                <Border
                    x:Name="bdrContent"
                    Width="650"
                    Height="280"
                    Background="White"
                    CornerRadius="10">
                    <Grid Margin="10">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="2*" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Border
                            Grid.RowSpan="2"
                            Background="Transparent"
                            PreviewMouseDown="Grid_PreviewMouseDown" />
                        <Grid>
                            <StackPanel
                                Width="440"
                                Margin="0,10,0,0"
                                VerticalAlignment="Bottom">
                                <StackPanel Margin="0,10,0,10" Orientation="Horizontal">
                                    <TextBlock
                                        Margin="5,0"
                                        VerticalAlignment="Center"
                                        FontSize="16"
                                        Foreground="#545454"
                                        Text="最小直径" />
                                    <Border
                                        Width="250"
                                        Height="30"
                                        BorderBrush="#999999"
                                        BorderThickness="1"
                                        CornerRadius="2">
                                        <TextBox
                                            x:Name="tbMin"
                                            Height="20"
                                            Margin="5,0"
                                            BorderThickness="0"
                                            FontSize="16" />
                                    </Border>
                                    <TextBlock
                                        Margin="3,0"
                                        VerticalAlignment="Center"
                                        FontSize="18"
                                        Foreground="#545454"
                                        Text="mm" />
                                </StackPanel>
                                <StackPanel Margin="0,10,0,10" Orientation="Horizontal">
                                    <TextBlock
                                        Margin="5,0"
                                        VerticalAlignment="Center"
                                        FontSize="16"
                                        Foreground="#545454"
                                        Text="最大直径" />
                                    <Border
                                        Width="250"
                                        Height="30"
                                        BorderBrush="#999999"
                                        BorderThickness="1"
                                        CornerRadius="2">
                                        <TextBox
                                            x:Name="tbMax"
                                            Height="20"
                                            Margin="5,0"
                                            BorderThickness="0"
                                            FontSize="16" />
                                    </Border>
                                    <TextBlock
                                        Margin="3,0"
                                        VerticalAlignment="Center"
                                        FontSize="16"
                                        Foreground="#545454"
                                        Text="mm" />
                                </StackPanel>
                                <StackPanel Margin="0,10,0,10" Orientation="Horizontal">
                                    <TextBlock
                                        Margin="5,0"
                                        VerticalAlignment="Center"
                                        FontSize="16"
                                        Foreground="#545454"
                                        Text="声       速" />
                                    <Border
                                        Width="250"
                                        Height="30"
                                        BorderBrush="#999999"
                                        BorderThickness="1"
                                        CornerRadius="2">
                                        <TextBox
                                            x:Name="tbSpeed"
                                            Height="20"
                                            Margin="5,0"
                                            BorderThickness="0"
                                            FontSize="16" />
                                    </Border>
                                    <TextBlock
                                        Margin="3,0"
                                        VerticalAlignment="Center"
                                        FontSize="16"
                                        Foreground="#545454"
                                        Text="m/s" />
                                </StackPanel>
                            </StackPanel>
                        </Grid>
                        <Grid Grid.Row="1">
                            <StackPanel
                                Margin="0,5,0,5"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Orientation="Horizontal">
                                <Button
                                    x:Name="btnClose"
                                    Width="100"
                                    Margin="15,0"
                                    Content="取消"
                                    Focusable="False"
                                    Style="{StaticResource BtnCommonStyle}">
                                    <Button.Background>
                                        <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_48.png" />
                                    </Button.Background>
                                    <Button.Tag>
                                        <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_21.png" />
                                    </Button.Tag>
                                </Button>
                                <Button
                                    x:Name="btnOK"
                                    Width="100"
                                    Margin="15,0"
                                    Content="接受"
                                    Focusable="False"
                                    Foreground="White"
                                    Style="{StaticResource BtnCommonStyle}">
                                    <Button.Background>
                                        <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_44.png" />
                                    </Button.Background>
                                    <Button.Tag>
                                        <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_13.png" />
                                    </Button.Tag>
                                </Button>
                            </StackPanel>
                        </Grid>
                    </Grid>
                </Border>
                <Grid
                    x:Name="gridNumKeyboard"
                    Width="318"
                    Height="269"
                    Margin="0,0,0,38"
                    VerticalAlignment="Bottom"
                    Background="#1a1a1a"
                    Visibility="Collapsed">
                    <Button
                        x:Name="btnCloseKb"
                        Margin="0,15,32,0"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Top"
                        Style="{StaticResource KeyboardBtnCloseStyle}" />
                    <WrapPanel Margin="25,40,25,0">
                        <Button
                            x:Name="btnNum"
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Content="7"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="8"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="9"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="4"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="5"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="6"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="1"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="2"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="3"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="0"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Content="."
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}" />
                        <Button
                            Width="82"
                            Height="48"
                            Margin="3"
                            Background="#333333"
                            Click="BtnNum_Click"
                            Focusable="False"
                            FontSize="20"
                            Foreground="White"
                            Template="{StaticResource btnTemplate}">
                            <Button.Content>
                                <Image Width="35" Source="/PipeGallery;component/Image/btn_back.png" />
                            </Button.Content>
                        </Button>
                    </WrapPanel>
                </Grid>
            </Grid>
        </Viewbox>
    </Grid>
</UserControl>