Windows Phone 7
[wp7] 이미지 Build Action 의 Content 와 Resource의 차이
동동(이재동)
2011. 2. 10. 13:41
Resource로 했을 때는 처음에 로딩을 다 하기 때문에 속도가 느려진다.
그래서 웬만하면 Content로 하자…더 나은 퍼포먼스가 난다.
그리고 Content와 했을때와 Resource로 했을때 이미지 source를 정의 할때
차이점 이 있다.
Content로 했을때에는
<Image Stretch="None" Source="/images/appbar.cancel.rest.png"/>
이렇게
Resource로 했을때 에는
<Image Source="/WP7SampleProject3;component/images/appbar.feature.email.rest.png"/>
이렇게 정의 한다.
behind코드도 마찬가지이다.
참고
http://www.windowsphonegeek.com/tips/wp7-working-with-images-content-vs-resource-build-action