キャンバス内に2つの画像要素を配置しようとしていますが、期待通りに動作しないようです。2つのイメージ要素をキャンバス内に配置する方法は?
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<StackPanel>
<Canvas>
<Image Source="testImage.png" Height="240"/>
<Image Source="championPortaitHolder.png" Height="240" />
</Canvas>
<TextBlock>This is some random text.</TextBlock>
</StackPanel>
</Grid>
</Window>
私が、私はそれを表示する方法を正確に画像を配置何ができるか、私は画像の上にTop
プロパティを置くことができないようです。
また、キャンバス要素はすべての領域を占有していないようです。あたかも要素がHTML用語で浮かんでいるかのようです。
これに関するアイデアもありますか?