这是我新做的WPF项目页面,功能还没有搞,只是做出一个页面。
它主要有停靠布局来做,再加上网格布局,自定义按钮,自定义表格,当当这一个页面就五百行代码,还不包过表格的。
这个页面的表格这是一个框加渐变色而已。
代码
<!--国际公务制单--><!--窗口:动画资源--><UserControl.Resources><Storyboard x:Key="UserControlClose"><!--从右侧进来--><DoubleAnimation From="0" To="1100" Storyboard.TargetName="UserControlTrans" Storyboard.TargetProperty="X" Duration="0:0:0.3" /></Storyboard></UserControl.Resources><!--定义特效--><UserControl.RenderTransform><TranslateTransform x:Name="UserControlTrans" /></UserControl.RenderTransform><!--定义触发器--><UserControl.Triggers><EventTrigger RoutedEvent="Loaded"><BeginStoryboard><Storyboard><DoubleAnimation From="1100" To="0" Storyboard.TargetName="UserControlTrans" Storyboard.TargetProperty="X" Duration="0:0:0.5" /></Storyboard></BeginStoryboard></EventTrigger></UserControl.Triggers><!--布局--><Grid Margin="3,3,3,0"><Grid.Background><LinearGradientBrush StartPoint="0,0" EndPoint="1,1"><!--使用LinearGradientBrush渐变画刷:定义一个渐变画刷,然后需要定义渐变颜色,颜色已对角线形式渐变--><!--GradientStop:定义渐变颜色与颜色渐变始点--><GradientStop Color="#f2f2f2" Offset="0"/><GradientStop Color="SkyBlue" Offset="0.2"/><GradientStop Color="#f2f2f2" Offset="1"/></LinearGradientBrush></Grid.Background><Grid.RowDefinitions><RowDefinition Height="22*"/><RowDefinition Height="55*"/><RowDefinition Height="467*"/><RowDefinition Height="30*"/><RowDefinition Height="22*"/></Grid.RowDefinitions><!--栈面板:栈面板,可以将元素排列成一行或者一列,其特点是:每个元素各占一行或者一列,Orientation属性指定排列方式:Vertical(垂直)【默认】、Horizontal(水平),默认情况下,水平排列时,每个元素都与面板一样高;垂直排列时,每个元素都与面板一样宽。如果包含的元素超过了面板空间,它只会截断多出的内容。--><DockPanel Grid.Column="0" Background="#FF2EA1E7" Margin="0,0,0,1.6"><TextBlock Text="国际公务制单" Foreground="White" FontSize="12" FontFamily="STSong" HorizontalAlignment="Center" VerticalAlignment="Center"/></DockPanel><StackPanel Grid.Row="1" Margin="0,0.4,0,3"><Border BorderBrush="#ffffff" BorderThickness="2" x:Name="grid" RenderTransformOrigin="0.5,0.5"><Border.RenderTransform><TransformGroup><ScaleTransform/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup></Border.RenderTransform><DockPanel LastChildFill="True"><Border BorderThickness="1" BorderBrush="LightGray" Background="SkyBlue"><Grid Margin="0,-1,0,-9"><Grid.Background><LinearGradientBrush StartPoint="0,0" EndPoint="1,1"><!--使用LinearGradientBrush渐变画刷:定义一个渐变画刷,然后需要定义渐变颜色,颜色已对角线形式渐变--><!--GradientStop:定义渐变颜色与颜色渐变始点--><GradientStop Color="#f2f2f2" Offset="0"/><GradientStop Color="SkyBlue" Offset="0.2"/><GradientStop Color="#f2f2f2" Offset="1"/></LinearGradientBrush></Grid.Background><GroupBox Header="国际公务制单" Foreground="#FF225ED6"><Grid Margin="0,0,0,0"><Grid.ColumnDefinitions><ColumnDefinition Width="135*"/><ColumnDefinition Width="118*"/><ColumnDefinition Width="112*"/><ColumnDefinition Width="700*"/></Grid.ColumnDefinitions><TextBlock Text="运单号" Padding="5" Width="50" Grid.Column="0" /><WrapPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Height="25" Width="96" ><TextBox x:Name="txt_Select7" Margin="0,3,0,0" Width="35" Height="20" /><TextBox x:Name="txt_Select8" Margin="0,3,0,0" Width="61" Height="20" /></WrapPanel></Grid></GroupBox></Grid></Border></DockPanel></Border></StackPanel><StackPanel Grid.Row="2" Margin="0,0,0,-0.2" Grid.RowSpan="3"><Border BorderBrush="#ffffff" BorderThickness="2" x:Name="grid2" CornerRadius="5,5,0,0" RenderTransformOrigin="0.5,0.5"><Border.RenderTransform><TransformGroup><ScaleTransform/><SkewTransform/><RotateTransform/><TranslateTransform/></TransformGroup></Border.RenderTransform><DockPanel LastChildFill="True"><Border BorderThickness="1" BorderBrush="LightGray" Background="SkyBlue"><Grid Margin="0,-1,0,-9"><Grid.Background><LinearGradientBrush StartPoint="0,0" EndPoint="1,1"><!--使用LinearGradientBrush渐变画刷:定义一个渐变画刷,然后需要定义渐变颜色,颜色已对角线形式渐变--><!--GradientStop:定义渐变颜色与颜色渐变始点--><GradientStop Color="#f2f2f2" Offset="0"/><GradientStop Color="SkyBlue" Offset="0.2"/><GradientStop Color="#f2f2f2" Offset="1"/></LinearGradientBrush></Grid.Background><GroupBox Foreground="#FF225ED6"><Grid Margin="10,10,0,0"><Grid.RowDefinitions><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/></Grid.RowDefinitions><Grid Grid.Row="0"><Grid.ColumnDefinitions><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /></Grid.ColumnDefinitions><TextBlock Text="承运人1" Padding="5" Width="70" Grid.Column="2" Grid.Row="0" /><TextBox Grid.Row="0" Grid.Column="3" x:Name="txt_Select1" Margin="0,3,0,0" Width="50" Height="15" /><TextBlock Text="承运人2" Padding="5" Width="70" Grid.Column="6" Grid.Row="0" /><TextBox Grid.Row="0" Grid.Column="7" x:Name="txt_Select10" Margin="0,3,0,0" Width="50" Height="15" /><TextBlock Text="承运人3" Padding="5" Width="70" Grid.Column="10" Grid.Row="0" /><TextBox Grid.Row="0" Grid.Column="11" x:Name="txt_Select11" Margin="0,3,0,0" Width="50" Height="15" /></Grid><Grid Grid.Row="1"><Grid.ColumnDefinitions><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /><ColumnDefinition /></Grid.ColumnDefinitions><TextBlock Text="起点站" Padding="5" Width="70" Grid.Column="0" Grid.Row="1" /><TextBox Grid.Row="1" Grid.Column="1" x:Name="txt_Select15" Margin="0,3,0,0" Width="50" Height="15" /><TextBlock Text="------------->" Padding="5" Width="100" Grid.Column="2" Grid.Row="1" Grid.ColumnSpan="2" /><TextBlock Text="到达站1" Padding="5" Width="70" Grid.Column="4" Grid.Row="1" /><TextBox Grid.Row="1" Grid.Column="5" x:Name="txt_Select16" Margin="0,3,0,0" Width="50" Height="15" /><TextBlock Text="------------->" Padding="5" Width="100" Grid.Column="6" Grid.Row="1" Grid.ColumnSpan="2" /><TextBlock Text="到达站2" Padding="5" Width="70" Grid.Column="8" Grid.Row="1" /><TextBox Grid.Row="1" Grid.Column="9" x:Name="txt_Select17" Margin="0,3,0,0" Width="50" Height="15" /><TextBlock Text="------------->" Padding="5" Width="100" Grid.Column="10" Grid.Row="1" Grid.ColumnSpan="2" /><TextBlock Text="到达站3" Padding="5" Width="70" Grid.Column="12" Grid.Row="1" /><TextBox Grid.Row="1" Grid.Column="13" x:Name="txt_Select18" Margin="0,3,0,0" Width="50" Height="15" /><TextBlock Text="------------->" Padding="5" Width="100" Grid.Column="14" Grid.Row="1" Grid.ColumnSpan="2" /><TextBlock Text="目的站" Padding="5" Width="70" Grid.Column="16" Grid.Row="1" /><TextBox Grid.Row="1" Grid.Column="17" x:Name="txt_Select19" Margin="0,3,0,0" Width="50" Height="15" /></Grid><Grid Grid.Row="2"><Grid.ColumnDefinitions><ColumnDefinition Width="56*"/><ColumnDefinition Width="116*"/><ColumnDefinition Width="36*"/><ColumnDefinition Width="302*"/><ColumnDefinition Width="52*"/><ColumnDefinition Width="135*"/><ColumnDefinition Width="52*"/><ColumnDefinition Width="216*"/></Grid.ColumnDefinitions><TextBlock Text="发货人" Padding="5" Width="50" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Height="26" Margin="0,1,0,1.8" /><TextBox Grid.Column="1" x:Name="txt_ren" Height="20" Width="100" HorizontalAlignment="Left" /><TextBlock Text="简称" Padding="5" Grid.Column="2" /><TextBox Grid.Column="3" x:Name="txt_ren1" Height="20" Width="120" HorizontalAlignment="Left"/><TextBlock Text="收货人" Padding="5" Width="50" Grid.Column="4" HorizontalAlignment="Left" Grid.ColumnSpan="2" /><TextBox Grid.Column="5" x:Name="txt_ren2" Height="20" Width="100" HorizontalAlignment="Left" /><TextBlock Text="简称" Padding="5" Grid.Column="6" Grid.ColumnSpan="2" Margin="0.2,0,144.8,-0.2" /><TextBox Grid.Column="7" x:Name="txt_ren3" Height="20" Width="150" HorizontalAlignment="Left"/></Grid><Grid Grid.Row="3"><Grid.RowDefinitions><RowDefinition/><RowDefinition/></Grid.RowDefinitions><Grid.ColumnDefinitions><ColumnDefinition Width="1*"/><ColumnDefinition Width="5*"/><ColumnDefinition Width="1*"/><ColumnDefinition Width="5*"/></Grid.ColumnDefinitions><TextBlock Text="发货人信息" Padding="5" Width="70" Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Left" /><TextBox Grid.Column="1" Name="tbMultiLine" TextWrapping="Wrap" AcceptsReturn="True" Canvas.Left="0" Canvas.Top="0" Height="70" Width="250" HorizontalAlignment="Left" /><!--VerticalScrollBarVisibility="Visible"--><TextBlock Text="收货人信息" Padding="5" Width="70" Grid.Column="2" /><TextBox Grid.Column="3" Grid.RowSpan="2" Name="tbMultiLine1" TextWrapping="Wrap" AcceptsReturn="True" Canvas.Left="0" Canvas.Top="0" Height="90" Width="320" HorizontalAlignment="Left" /><Grid Grid.Row="1" Grid.ColumnSpan="2"><Grid.ColumnDefinitions><ColumnDefinition Width="85*"/><ColumnDefinition Width="62*"/><ColumnDefinition Width="82*"/><ColumnDefinition Width="253*"/></Grid.ColumnDefinitions><TextBlock Text="选择重量单位" Padding="5" Width="80" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Height="25" /><TextBox x:Name="txt_xin8" Width="50" HorizontalAlignment="Left" Grid.Column="1" Height="20"/><TextBlock Text="选择体积单位" Padding="5" Grid.Column="2" Width="80"/><TextBox Grid.Column="3" x:Name="txt_xin4" Width="50" HorizontalAlignment="Left" Height="20"/></Grid></Grid><Grid Grid.Row="4"><Grid.ColumnDefinitions><ColumnDefinition Width="35*"/><ColumnDefinition Width="447*"/></Grid.ColumnDefinitions><TextBlock Text="货物信息" Padding="5" Grid.Column="0" Grid.Row="0" /><Border Grid.Column="1"><Grid><Grid.RowDefinitions><RowDefinition/><RowDefinition/><RowDefinition/></Grid.RowDefinitions><DataGrid Grid.Row="0" x:Name="dgTraveller" IsReadOnly="True" AutoGenerateColumns="False" CanUserResizeColumns="False" CanUserResizeRows="False" SelectionMode="Single" CanUserReorderColumns="False" AlternationCount="2" RowHeaderWidth="0" CanUserAddRows="False"Height="60" VerticalAlignment="Top" ><DataGrid.Background><LinearGradientBrush StartPoint="0,0" EndPoint="0,1"><LinearGradientBrush.GradientStops><GradientStop Color="#FFE6F2F7" Offset="0"/><GradientStop Color="White" Offset="0.1"/><GradientStop Color="White" Offset="0.4"/><GradientStop Color="#FFE6F2F7" Offset="0.81"/></LinearGradientBrush.GradientStops></LinearGradientBrush></DataGrid.Background><DataGrid.Columns ></DataGrid.Columns></DataGrid><Grid Grid.Row="1"><Grid.ColumnDefinitions><ColumnDefinition Width="90*"/><ColumnDefinition Width="91*"/><ColumnDefinition Width="50*"/><ColumnDefinition Width="174*"/><ColumnDefinition Width="50*"/><ColumnDefinition Width="146*"/><ColumnDefinition Width="98*"/><ColumnDefinition Width="98*"/><ColumnDefinition Width="98*"/></Grid.ColumnDefinitions><Button Width="80" HorizontalAlignment="Left" Margin="0,0,0,0.4">添加(A)</Button><Button Grid.Column="1" Margin="8.4,0,11.8,-0.6">移除(R)</Button><TextBlock Text="类型" Padding="5" Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="2" Margin="0.2,0,112,-0.6" /><WrapPanel Grid.Row="0" Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Center" Height="25" Width="150" Margin="0.6,3,0,2.4" ><TextBox x:Name="f5" Margin="0,3,0,0" Width="40" Height="20" /><TextBox x:Name="f9" Margin="0,3,0,0" Width="80" Height="20" /></WrapPanel><TextBlock Text="包装" Padding="5" Grid.Column="4" Grid.Row="0" Grid.ColumnSpan="3" Margin="0,0,0.4,0.4"/><WrapPanel Grid.Row="0" Grid.Column="4" HorizontalAlignment="Left" VerticalAlignment="Center" Height="25" Width="150" Grid.ColumnSpan="3" Margin="49,3,0,2.4" ><TextBox x:Name="f8" Margin="0,3,0,0" Width="40" Height="20" /><TextBox x:Name="f7" Margin="0,3,0,0" Width="80" Height="20" /></WrapPanel><Button Grid.Column="6" Margin="0,0,0.4,0.4">自动运价(O)</Button></Grid><Grid Grid.Row="2"><Grid.ColumnDefinitions><ColumnDefinition Width="43*"/><ColumnDefinition Width="36*"/><ColumnDefinition Width="98*"/><ColumnDefinition Width="50*"/><ColumnDefinition Width="56*"/><ColumnDefinition Width="70*"/><ColumnDefinition Width="58*"/><ColumnDefinition Width="43*"/><ColumnDefinition Width="68*"/><ColumnDefinition Width="34*"/><ColumnDefinition Width="58*"/><ColumnDefinition Width="69*"/><ColumnDefinition Width="34*"/><ColumnDefinition Width="64*"/><ColumnDefinition Width="90*"/><ColumnDefinition Width="24*"/></Grid.ColumnDefinitions><TextBlock Text="总计 :" Padding="5" Grid.Column="0" Grid.Row="0" Margin="0,0,0.2,-0.2" /><TextBlock Text="品名" Padding="5" Grid.Row="0" Grid.ColumnSpan="2" Margin="43,0,0.2,-0.2" /><TextBox Grid.Column="2" Margin="8.8,3,8.8,2.8" /><TextBlock Text="件数" Padding="5" Grid.Row="0" Grid.Column="3" Margin="0.2,0,0.4,-0.2" /><TextBox Grid.Column="4" Margin="5.6,3,5.4,2.8" /><TextBlock Text="SLAC件数" Padding="5" Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="2" Margin="55.6,0,0.8,-0.2" /><TextBox Grid.Column="6" Height="20" Width="50"/><TextBlock Text="重量" Padding="5" Grid.Row="0" Grid.Column="7" /><TextBox Grid.Column="8" Width="50" Height="20" /><TextBlock Text="Kg" Padding="5" Grid.Row="0" Grid.Column="9" /><TextBlock Text="体积" Padding="5" Grid.Row="0" Grid.Column="10" /><TextBox Grid.Column="11" Width="50" Height="20" /><TextBlock Text="M3" Padding="5" Grid.Row="0" Grid.Column="12" /><TextBlock Text="计费重量" Padding="5" Grid.Row="0" Grid.Column="13" /><TextBox Grid.Column="14" Width="80" Height="20" /><TextBlock Text="Kg" Padding="5" Grid.Row="0" Grid.Column="15" /></Grid></Grid></Border></Grid><Grid Grid.Row="5"><Grid.ColumnDefinitions><ColumnDefinition Width="391*"/><ColumnDefinition Width="91*"/></Grid.ColumnDefinitions><Grid Grid.Row="0"><Grid.RowDefinitions><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/></Grid.RowDefinitions><Grid Grid.Row="0" Grid.Column="0"><Grid.ColumnDefinitions><ColumnDefinition Width="79*"/><ColumnDefinition Width="107*"/><ColumnDefinition Width="96*"/><ColumnDefinition Width="254*"/><ColumnDefinition Width="83*"/><ColumnDefinition Width="162*"/></Grid.ColumnDefinitions><TextBlock Text="保险声明价值" Padding="5" Grid.Column="0" Grid.Row="0"/><TextBox Grid.Column="1" Width="90" Height="20"/><TextBlock Text="结算注意" Padding="5" Grid.Column="2" Grid.Row="0" Width="60" VerticalAlignment="Center" HorizontalAlignment="Right" Height="26" Margin="0,0,0.4,-0.4" /><TextBox Grid.Row="0" Grid.Column="3" Margin="21.6,3,22.8,2.6"/><TextBlock Text="提货营业点" Padding="5" Grid.Column="3" Grid.Row="0" Grid.ColumnSpan="3" Margin="253.6,0,161.4,-0.4"/><TextBox Grid.Row="0" Grid.Column="5" Margin="0,0,0.4,-0.4" /></Grid><Grid Grid.Row="1"><Grid.ColumnDefinitions><ColumnDefinition Width="82*"/><ColumnDefinition Width="106*"/><ColumnDefinition Width="357*"/><ColumnDefinition Width="75*"/><ColumnDefinition Width="162*"/></Grid.ColumnDefinitions><TextBlock Text="运输声明价值" Padding="5" Grid.Column="0" Grid.Row="0"/><TextBox Grid.Row="0" Grid.Column="1" Height="20" Width="90"/><TextBlock Text="安检员" Padding="5" Grid.Column="3" Grid.Row="0"/><TextBox Grid.Row="0" Grid.Column="4" Height="20"/><WrapPanel Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" Height="15" Margin="99.2,5,99.6,5.6" Width="158"><CheckBox ></CheckBox><TextBlock Text="海关监管 "></TextBlock><CheckBox ></CheckBox><TextBlock Text="是否通过安检 "></TextBlock></WrapPanel></Grid><Grid Grid.Row="2"><Grid.ColumnDefinitions><ColumnDefinition Width="78*"/><ColumnDefinition Width="112*"/><ColumnDefinition Width="71*"/><ColumnDefinition Width="115*"/><ColumnDefinition Width="70*"/><ColumnDefinition Width="98*"/><ColumnDefinition Width="74*"/><ColumnDefinition Width="162*"/></Grid.ColumnDefinitions><TextBlock Text="海关声明价值" Padding="5" Grid.Column="0" Grid.Row="0" /><TextBox Grid.Row="0" Grid.Column="1" Height="20" Width="90"/><TextBlock Grid.Column="2" Text="起点站币种" Padding="5"/><TextBox Grid.Column="3" Width="70" Height="20"></TextBox><TextBlock Grid.Column="4" Text="目的站币种" Padding="5"/><TextBox Grid.Column="5" Height="20" Width="70"/><TextBlock Grid.Column="6" Text="汇率" Padding="5"/><TextBox Grid.Column="7" Height="20" Width="70"/></Grid><Grid Grid.Row="3"><Grid.ColumnDefinitions><ColumnDefinition Width="78*"/><ColumnDefinition Width="114*"/><ColumnDefinition Width="66*"/><ColumnDefinition Width="123*"/><ColumnDefinition Width="64*"/><ColumnDefinition Width="102*"/><ColumnDefinition Width="234*"/></Grid.ColumnDefinitions><TextBlock Text="储运注意" Padding="5" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Width="60" Grid.ColumnSpan="2" Margin="0,0,113.8,-0.2"/><TextBox Grid.Column="1" Width="90" Height="20"/><TextBlock Grid.Column="2" Text="选择仓库" Padding="5" /><TextBox Grid.Column="3" Width="70" Height="20"/><TextBlock Grid.Column="4" Text="选择库位" Padding="5"/><TextBox Grid.Column="5" Width="70" Height="20"/><!--<CheckBox Grid.Column="6" HorizontalAlignment="Center">挂衣</CheckBox>--></Grid><Grid Grid.Row="4"><Grid.ColumnDefinitions><ColumnDefinition Width="81*"/><ColumnDefinition Width="106*"/><ColumnDefinition Width="86*"/><ColumnDefinition Width="131*"/><ColumnDefinition Width="96*"/><ColumnDefinition Width="142*"/><ColumnDefinition Width="140*"/></Grid.ColumnDefinitions><TextBlock Text="制单人" Padding="5" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center" Height="26" Margin="0,0,105.4,-0.4" Width="46" Grid.ColumnSpan="2"/><TextBox Grid.Column="1" Height="20" Width="90"/><TextBlock Grid.Column="2" Text="制单时间" Padding="5"/><TextBox Grid.Column="3" Width="90" Height="20"></TextBox><TextBlock Grid.Column="4" Text="制单时间" Padding="5" /><TextBox Grid.Column="5" Width="90" Height="20"></TextBox><CheckBox Grid.Column="6">到付</CheckBox></Grid><Grid Grid.Row="5"><Grid.ColumnDefinitions><ColumnDefinition Width="86*" /><ColumnDefinition Width="102*" /><ColumnDefinition Width="152*" /><ColumnDefinition Width="111*" /><ColumnDefinition Width="110*" /><ColumnDefinition Width="110*" /><ColumnDefinition Width="110*" /></Grid.ColumnDefinitions><TextBlock Text="承运人" Padding="5" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="44"/><TextBox Grid.Column="1" Height="20" Width="90"/><TextBlock Text="航班号" Padding="5" Grid.Column="2" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="44"/><TextBox Grid.Column="3" Height="20" Width="90"/><TextBlock Text="航班日期" Padding="5" Grid.Column="4" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="44"/><DatePicker Grid.Column="5" Height="20" Width="90"/></Grid></Grid><Grid Grid.Column="1"><Grid.RowDefinitions><RowDefinition Height="1*"/><RowDefinition Height="5*"/></Grid.RowDefinitions><Grid Grid.Column="0" Background="#FF1D53D0"><TextBlock Grid.Column="0" Text="其他费用" Padding="5" HorizontalAlignment="Center"></TextBlock></Grid><DataGrid Grid.Column="0" Grid.Row="1" IsReadOnly="True" AutoGenerateColumns="False" CanUserResizeColumns="False" CanUserResizeRows="False" SelectionMode="Single" CanUserReorderColumns="False" AlternationCount="2" RowHeaderWidth="0" CanUserAddRows="False"Height="100" VerticalAlignment="Top" ><DataGrid.Background><LinearGradientBrush StartPoint="0,0" EndPoint="0,1"><LinearGradientBrush.GradientStops><GradientStop Color="#FFE6F2F7" Offset="0"/><GradientStop Color="White" Offset="0.1"/><GradientStop Color="White" Offset="0.4"/><GradientStop Color="#FFE6F2F7" Offset="0.81"/></LinearGradientBrush.GradientStops></LinearGradientBrush></DataGrid.Background><DataGrid.Columns ></DataGrid.Columns></DataGrid></Grid></Grid></Grid></GroupBox></Grid></Border></DockPanel></Border></StackPanel><StackPanel Grid.Row="3"><WrapPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ><Button Width="90">保存(S)</Button><Button Width="90">下一个(N)</Button><Button Width="90">作废(C)</Button><Button Width="90">作废恢复(U)</Button><Button Width="90">运单打印(P)</Button></WrapPanel></StackPanel><StackPanel Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center"><WrapPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" ><RadioButton Width="210">保存成功后自动开始下一票运单</RadioButton><RadioButton Width="150" IsChecked="True">保存成功后自动打印</RadioButton><!--<RadioButton IsChecked="True">保存成功后等待</RadioButton>--></WrapPanel></StackPanel></Grid>