0
かなりストレートです。私はそれの上にラベルが付いた矩形を持っています。私はテキストに合わせて矩形を拡大する方法を知りたいです。Silverlight - ラベルのテキストを収めるために拡大/縮小する矩形を作成する
私のXAML:
<Grid x:Name="LayoutRoot" Background="White" Height="158" Width="264">
<Rectangle Height="22" HorizontalAlignment="Left" Name="rectangle1" Stroke="Black" MinWidth="40" StrokeThickness="1" VerticalAlignment="Top" RadiusX="6" RadiusY="6" Fill="#1b6487" Width="64"></Rectangle>
<sdk:Label Margin="9,3,209,0" Name="label1" VerticalAlignment="Top" Content="$999.99" />
</Grid>