<UserControl x:Class="PipeGallery.View.PipeLengthEditView" 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" xmlns:local="clr-namespace:ONIX.Control" 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="662" Height="330" Background="White" CornerRadius="10"> <Grid Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="*"/> <RowDefinition Height="1.5*"/> </Grid.RowDefinitions> <Border Grid.RowSpan="3" Background="Transparent" PreviewMouseDown="Grid_PreviewMouseDown"> <Label/> </Border> <Grid> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> <Button x:Name="btnReturn" Focusable="False" Margin="30,0" Style="{StaticResource BtnReturnStyle}" /> <Grid> <Grid.RowDefinitions> <RowDefinition Height="1.1*"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <TextBlock Text="输入管段长度" Foreground="#545454" FontSize="18" VerticalAlignment="Bottom"/> <TextBlock Text="Pipe length" Grid.Row="1" Foreground="#cecece" FontSize="16" VerticalAlignment="Top"/> </Grid> </StackPanel> <StackPanel Visibility="Collapsed" HorizontalAlignment="Right" Orientation="Horizontal" Margin="20,0,0,0"> <Button Content="多段编辑" Width="100" Margin="10,0" Style="{StaticResource BtnCommonStyle}" > <Button.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_40.png" /> </Button.Background> <Button.Tag> <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_05.png" /> </Button.Tag> </Button> <Button Content="开始关联" Width="100" Margin="10,0" Style="{StaticResource BtnCommonStyle}" > <Button.Background> <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_41.png" /> </Button.Background> <Button.Tag> <ImageBrush ImageSource="/PipeGallery;component/Image/tubiao_07.png" /> </Button.Tag> </Button> </StackPanel> </Grid> <Grid Grid.Row="1"> <StackPanel Width="360" VerticalAlignment="Bottom"> <Border Width="360" Height="50" Background="#f7f7f7" BorderBrush="#d2d2d2" BorderThickness="1" CornerRadius="5"> <Grid> <local:WatermarkTextBox x:Name="txtNum" Watermark="请输入管段长度数值,单位m" Background="#f7f7f7" BorderThickness="0" Height="25" Margin="5,0,30,0" FontSize="18"/> <Button x:Name="btnClear" HorizontalAlignment="Right" Margin="5,0" Style="{StaticResource BtnCloseStyle}" /> </Grid> </Border> <TextBlock Foreground="#666666" FontSize="14" Margin="0,3" VerticalAlignment="Center"> <Run Text="管材:"/><Run x:Name="rMaterialName"/> <Run Text=" 管径大小:" /><Run x:Name="rPipeDiameterName"/><Run Text="mm" /> </TextBlock> </StackPanel> </Grid> <Grid Grid.Row="2"> <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>