2016-09-10 5 views

답변

0

<Application.Resources> 
    <Style TargetType="{x:Type Button}"> 
     <Setter Property="Template"> 
      <Setter.Value> 
       <ControlTemplate TargetType="{x:Type Button}"> 
        <Grid> 
         <Image Source="DHXMR.jpg" /> 
         <ContentControl Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" /> 
        </Grid> 
       </ControlTemplate> 
      </Setter.Value> 
     </Setter> 
    </Style> 
</Application.Resources> 

그런 버튼을 보여 판명됩니다 app.xaml에서이 코드 조각 :

물론 enter image description here

당신이 흰색 "버튼"텍스트를 제거 할 필요를 귀하가 귀하의 링크에서 제공 한 견본 이미지에서 - 그러나 나는 당신이 스스로 할 수 있다고 생각합니다.

+0

Ok DonGru 감사합니다 .. –

+0

대답이 유용하다면 ul 당신을 위해, 당신이 클릭하여 그것을 수락하면 감사하겠습니다 "진드기" – DonGru

관련 문제