2012-04-12 6 views
4

내 리소스에 이미지가 있고 Windows Phone에서 내 버튼의 배경으로 제공하고 싶습니다. 어떻게 그럴 수 있습니까? 나는이 시도했지만버튼 컨트롤의 배경 이미지 제공

<Button Content="" HorizontalAlignment="Left" BorderBrush="Transparent" Margin="131,681,0,0" Name="button2" Width="81" Grid.Row="1" Click="button2_Click" Height="64" VerticalAlignment="Top" Background="Images/pause.png"/> 

답변

4

이 시도 오류를주는

<Button Content="" HorizontalAlignment="Left" Margin="114,36,0,0" Grid.Row="1" VerticalAlignment="Top"> 
     <Button.Background> 
      <ImageBrush Stretch="Fill" ImageSource="/Images/pause.png"/> 
     </Button.Background> 
    </Button>