캔버스 안에 두 개의 이미지 요소를 배치하려하지만 예상대로 작동하지 않는 것 같습니다.두 이미지 요소를 캔버스 안에 배치하는 방법은 무엇입니까?
<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
속성을 넣을 수 없습니다 보인다.
또한 Canvas 요소가 모든 공간을 차지하는 것 같지 않습니다. 마치 요소가 HTML 용어로 "떠 다니는"것처럼 보입니다.
그에 대한 아이디어가 있습니까?