메뉴 건너뛰기

app

[WP7] RSS Reader 구현하기

suritam92012.06.24 01:42조회 수 2403댓글 0

  • 1
    • 글자 크기

아이폰에서는 구현하기라는 말이 맞는데, 윈도우폰에서는 따라하기 정도로 하면 될지도 모른다.


별도 라이브러리를 다운 받지 않아도 되기 때문이다.


http://msdn.microsoft.com/en-us/library/hh487167(v=vs.92).aspx


위 사이트에 잘 나와 있으며, 소스코드까지 제공하므로 매우 쉽게 따라할 수 있다.


  1. From the Project menu in Visual Studio, select Add Reference, and select the Browse tab.

  2. Navigate to your Program Files directory.

  3. Navigate to Microsoft SDKs/Silverlight/v4.0/Libraries/Client/

  4. Select System.ServiceModel.Syndication.dll and click OK.

가장 중요한 건, 프로젝트 메뉴에서 참조의 Browser 탭을 눌러, 3번의 경로에서 System.ServiceModel.Syndication.dll 을 추가하는 것이라 생각한다.


이것만 추가 하면 나머지는 예제에 따라 레이아웃을 구성하고, 만든 파일(RssTextTrimmer.cs)을 이용해 MainPage.xaml.cs 에서 RSS 주소를 호출해 쉽게 리딩할 수 있다.



    <Application.Resources>

        <converter:RssTextTrimmer xmlns:converter="clr-namespace:[프로젝트명]" x:Key="RssTextTrimmer" />

    </Application.Resources


위의 App.xaml 파일에 추가할 때는, 생성한 프로젝트(솔루션) 이름으로 하면 되겠다.


처음에는 RssTextTrimmer를 찾을 수 없다는 error가 날 수 있으나, Running 하면 잘 실행이 된다.


lisp.png

suritam9 (비회원)
  • 1
    • 글자 크기

댓글 달기

suritam9
2013.12.02 조회 3162
lispro06
2017.06.22 조회 1617
suritam9
2019.04.05 조회 1850
lispro06
2013.12.10 조회 2739
lispro06
2014.02.08 조회 3806
이전 1 2 3 4 5 6 7 8 9 10... 14다음
첨부 (1)
lisp.png
252.2KB / Download 32
위로