0
배경으로 사용되는이 그리드에 이미지가 있습니다. 지금까지 이미지 컨트롤을 삽입하려고 시도 할 때 이미지가 단추 위에 놓이게되는 동안 이미지를 뒤에서 볼 수있었습니다. 이미지를 배경으로 만들기 (뒷면으로 보내기)
<Page
x:Class="ZimmerFrei_v0._1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ZimmerFrei_v0._1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid >
<Button x:Name="btnNearMe"
Content="Near Me"
HorizontalAlignment="Left"
Margin="99,181,0,0" VerticalAlignment="Top"
Height="76"
Width="216"
Click="btnNearMe_Click"/>
<Button x:Name="btnBestOffers"
Content="Button"
HorizontalAlignment="Left"
Margin="99,312,0,0"
VerticalAlignment="Top"
Height="76" Width="216"
Click="Button_Click"/>
<Image />
</Grid>
는
XAML이 순서대로 렌더링됩니다. 따라서 이미지를 먼저 넣으면 단추가 그 위에 렌더링되어야합니다. –
8.1 일 경우,'Grid.Background'가 [ImageBrush] (https://msdn.microsoft.com/en-us/library/windows.ui.xaml.media.imagebrush.aspx)로 친구가되고, 8.1에 관한 것이 아니라면 [DOM]에서 이미지를 옮길 수도 있습니다 (https://msdn.microsoft.com/en-us/library/ee513983%28v=vs.110%29.aspx)를 그리드의 첫 번째 하위 항목으로 지정하고 다른 개체 뒤에 표시하여 –