<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBlock Text="昵称:" Style="{StaticResource InStyle_SLMTB}"/>
<Grid Margin="10,10,0,10" Width="320">
<Rectangle x:Name="rect" RadiusX="5" RadiusY="5"
StrokeThickness="2" Stroke="OrangeRed"
/>
<TextBox Text="在此处放置其他内容-"
BorderThickness="0" Background="Transparent" />
</Grid>
</StackPanel>
<Line Stroke="Gray" StrokeThickness="1" X1="0" X2="480"/>
</StackPanel>
可自动换行的button
<StackPanel Orientation="Horizontal">
<TextBlock Text="兴趣爱好" Style="{StaticResource InStyle_HabitsMTB}"/>
<Grid Margin="12,10,0,10" Width="156">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Rectangle
x:Name="rect" StrokeThickness="3" Stroke="#FFDE1C1A"/>
<TextBlock FontSize="22" Padding="2,7,0,7"
Text="选性格特征性性格特征择"
Foreground="Black" TextWrapping="Wrap" Margin="2,2,2,2"
/>
</Grid>
</StackPanel>
原文:http://www.cnblogs.com/luquanmingren/p/3574013.html