作業中のプロジェクトがあり、グリッドの背景として画像を設定する必要があります。画像を設定することはできますが、グリッドの全幅と全高をカバーしていません。
以下は私のXAMLです。
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.Background>
<ImageBrush ImageSource="Images/pt.png" Stretch="UniformToFill"/>
</Grid.Background>
</Grid>
これをグリッドの全幅と高さでカバーするにはどうすればよいですか?助けてくれてありがとう。