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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="768" d:DesignWidth="1366" Background="#b4000000">
    <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" VerticalAlignment="Bottom" Margin="0,10,0,0">
                                <StackPanel Orientation="Horizontal" Margin="0,10,0,10">
                                    <TextBlock  Text="最小直径" Margin="5,0"  Foreground="#545454" FontSize="16" VerticalAlignment="Center"/>
                                    <Border Width="250" Height="30" BorderBrush="#999999" BorderThickness="1" CornerRadius="2">
                                        <TextBox x:Name="tbMin" BorderThickness="0"  Height="20" Margin="5,0" FontSize="16"/>
                                    </Border>
                                    <TextBlock  Text="mm"  Foreground="#545454" FontSize="18" VerticalAlignment="Center" Margin="3,0"/>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Margin="0,10,0,10">
                                    <TextBlock  Text="最大直径" Margin="5,0"  Foreground="#545454" FontSize="16" VerticalAlignment="Center"/>
                                    <Border Width="250" Height="30" BorderBrush="#999999" BorderThickness="1" CornerRadius="2">
                                        <TextBox x:Name="tbMax" BorderThickness="0"  Height="20" Margin="5,0" FontSize="16"/>
                                    </Border>
                                    <TextBlock  Text="mm"  Foreground="#545454" FontSize="16" VerticalAlignment="Center" Margin="3,0"/>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Margin="0,10,0,10">
                                    <TextBlock  Text="声       速" Margin="5,0"  Foreground="#545454" FontSize="16" VerticalAlignment="Center"/>
                                    <Border Width="250" Height="30" BorderBrush="#999999" BorderThickness="1" CornerRadius="2">
                                        <TextBox x:Name="tbSpeed" BorderThickness="0"  Height="20" Margin="5,0" FontSize="16"/>
                                    </Border>
                                    <TextBlock  Text="m/s"  Foreground="#545454" FontSize="16" VerticalAlignment="Center" Margin="3,0"/>
                                </StackPanel>  
                            </StackPanel>
                        </Grid>
                        <Grid Grid.Row="1">
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,5,0,5">
                                <Button x:Name="btnClose" Focusable="False" Content="取消" Width="100"  Margin="15,0" 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" Focusable="False" Content="接受" Foreground="White" Width="100"  Margin="15,0" 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" Background="#1a1a1a" Visibility="Collapsed" Width="318" Height="269" VerticalAlignment="Bottom" Margin="0,0,0,38">
                    <Button x:Name="btnCloseKb" HorizontalAlignment="Right" VerticalAlignment="Top" Style="{StaticResource KeyboardBtnCloseStyle}" Margin="0,15,32,0"/>
                    <WrapPanel Margin="25,40,25,0">
                        <Button x:Name="btnNum" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="7" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="8" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="9" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="4" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="5" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="6" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="1" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="2" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="3" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="0" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Content="." Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                            
                        </Button>
                        <Button Click="BtnNum_Click" Focusable="False" Background="#333333" Foreground="White" FontSize="20" Template="{StaticResource btnTemplate}" Width="82" Height="48" Margin="3">
                            <Button.Content>
                                <Image Source="/PipeGallery;component/Image/btn_back.png" Width="35"/>
                            </Button.Content>
                        </Button>
                    </WrapPanel>
                </Grid>
            </Grid>
        </Viewbox>
    </Grid>
</UserControl>