Silverlight를 이용한 웹 페이지 상의 이동 기능 (Navigation) 구현
클라이언트 애플리케이션에서 사용자가 필요한 기능에 접근하기 위한 방법으로 최상위에서 있는 것이 메뉴라면, 웹 페이지에서는 메뉴 혹은 네비게이션 (navigation) 이름으로 불리는 것이 그 역할을 합니다. 미국 중부 지역에서 개발자 애반젤리스트로 일하는 Jeff Blankenburg가 간단하지만 세심하게 Silverlight를 이용해 Navigation을 구성하는 방법을 블로그를,
https://jeffblankenburg.com/2009/01/tutorial-11-creating-navigation-in.aspx
, 통해 잘 설명해 놓았습니다. Silverlight을 이용해 웹페이지에 메뉴 혹은 네비게이션을 구성하려는 분들은 한번 보시기를 추천합니다. 단계별로 그림과 함께 자세히 나와 있습니다.
1. Create a new project in Visual Studio.
2. Add the web project it asks you about.
3. Make your XAML document larger.
4. Open your solution in Expression Blend.
5. Draw your navigation in Page.xaml.
6. Create the background for the buttons.
7. Position your TextBlocks.
8. We need to make the buttons change color.
9. We need some event handlers.
10. Let's write some event handler methods!
만들어진 결과물이 동작하는 것은 https://jeffblankenburg.com/codesamples/silverlightnavigation/default.html 에서 확인하실 수 있고, 소스는 https://jeffblankenburg.com/codesamples/silverlightnavigation/silverlightnavigation.zip
에 있습니다.