<TextBox x:Name="cszd" HorizontalContentAlignment="Left" //水平居左 VerticalContentAlignment="Top" //垂直居上 TextWrapping="Wrap" //换行 AcceptsReturn="True" //接收回车 VerticalScrollBarVisibility="Visible" //显示垂直滚动条 Height="Auto" //高度填充父容器
HorizontalAlignment="Stretch" //水平拉伸>