2013-11-27 2 views
0

내가 "Custom Control"Generic.xaml에, image.jpg을 호출 내가 "Themes" 폴더에 이미지를 넣어 "Custom Control"을 할 수 있습니다 만드는거야, 난이 쓴 :이미지가 표시되지 않을 [WPF]

<Button Width="30" Height="30"> 
    <Image Source="image.jpg" Width="20" Height="20"/> 
</Button> 

를 내가 재 컴파일 프로젝트, 그리고 다른 프로젝트에서 사용하면 Button이 표시되지만 이미지는 ... 내가 뭘 잘못하고 있는지 ... 또한 이미지는 해당 속성의 Resource로 설정됩니다.

답변

1

당신은 당신의 이미지 제대로

<Button Width="30" Height="30"> 
<Image Source="/WpfApplication1;component/Images/image.jpg" Width="20" Height="20"/> 
</Button> 
+0

가 대단히 감사합니다 같은 뭔가를 찾아야합니다! – jovanMeshkov

관련 문제